/**
 * incident-list.css
 * Styles for Incident Management List View
 * 
 * @version 2.3.0
 */

/* Container */
.incident-management-container {
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

/* Header */
.im-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.im-header-left {
  flex: 1;
  min-width: 300px;
}

.im-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  margin: 0 0 8px 0;
}

.im-title svg {
  width: 32px;
  height: 32px;
  color: #6366F1;
}

.im-subtitle {
  color: #6B7280;
  font-size: 14px;
  margin: 0;
}

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

/* Stats Grid */
.im-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.im-stat-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.im-stat-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-color: #D1D5DB;
}

.im-stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.im-stat-icon svg {
  width: 24px;
  height: 24px;
}

.im-stat-icon.open {
  background: #EEF2FF;
  color: #6366F1;
}

.im-stat-icon.in-progress {
  background: #F3E8FF;
  color: #8B5CF6;
}

.im-stat-icon.overdue {
  background: #FEF2F2;
  color: #DC2626;
}

.im-stat-icon.closed {
  background: #ECFDF5;
  color: #10B981;
}

.im-stat-content {
  display: flex;
  flex-direction: column;
}

.im-stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1;
}

.im-stat-label {
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
}

/* Toolbar */
.im-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.im-view-toggle {
  display: flex;
  background: #F3F4F6;
  border-radius: 8px;
  padding: 4px;
}

.im-view-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
}

.im-view-btn:hover:not(:disabled) {
  color: #4B5563;
}

.im-view-btn.active {
  background: white;
  color: #6366F1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.im-view-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.im-view-btn svg {
  width: 16px;
  height: 16px;
}

.im-filters {
  display: flex;
  align-items: center;
  gap: 12px;
}

.im-filter-label {
  font-size: 13px;
  color: #9CA3AF;
  font-style: italic;
}

/* Empty State */
.im-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background: white;
  border: 2px dashed #E5E7EB;
  border-radius: 16px;
}

.im-empty-icon {
  width: 80px;
  height: 80px;
  background: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.im-empty-icon svg {
  width: 40px;
  height: 40px;
  color: #9CA3AF;
}

.im-empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1F2937;
  margin: 0 0 8px 0;
}

.im-empty-state p {
  font-size: 14px;
  color: #6B7280;
  margin: 0 0 24px 0;
  max-width: 400px;
}

.im-empty-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.im-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4B5563;
}

.im-feature svg {
  width: 18px;
  height: 18px;
  color: #10B981;
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary svg {
  width: 18px;
  height: 18px;
}

/* Table Container */
.im-table-container {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow-x: auto;
  overflow-y: visible;
  max-width: 100%;
  /* Custom scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

.im-table-container::-webkit-scrollbar {
  height: 8px;
}

.im-table-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 0 0 12px 12px;
}

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

.im-table-container::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Table */
.im-table {
  width: 100%;
  min-width: 1000px; /* Ensure minimum width for all columns */
  border-collapse: collapse;
  font-size: 14px;
}

.im-table thead {
  background: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
}

.im-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  color: #374151;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.im-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}

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

.im-table tbody tr:hover {
  background: #F9FAFB;
}

/* Column widths */
.im-th-checkbox,
.im-td-checkbox {
  width: 40px;
  text-align: center;
}

.im-th-id {
  width: 100px;
}

.im-th-title {
  min-width: 250px;
}

.im-th-type,
.im-th-priority,
.im-th-status {
  width: 120px;
}

.im-th-assignee {
  min-width: 180px;
}

.im-th-due {
  width: 100px;
}

.im-th-actions {
  width: 80px;
  text-align: center;
}

/* ID Link */
.im-id-link {
  color: #6366F1;
  font-weight: 600;
  text-decoration: none;
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 13px;
}

.im-id-link:hover {
  text-decoration: underline;
}

/* Title Cell */
.im-title-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.im-incident-title {
  color: #1F2937;
  font-weight: 500;
}

.im-affected-user {
  font-size: 12px;
  color: #6B7280;
}

/* Type Badge */
.im-type-badge {
  display: inline-block;
  padding: 4px 10px;
  background: #F3F4F6;
  color: #4B5563;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}


/* Priority Badges */
.im-priority-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}

.im-priority-badge.priority-critical {
  background: #FEE2E2;
  color: #DC2626;
}

.im-priority-badge.priority-high {
  background: #FFEDD5;
  color: #EA580C;
}

.im-priority-badge.priority-medium {
  background: #FEF9C3;
  color: #CA8A04;
}

.im-priority-badge.priority-low {
  background: #DCFCE7;
  color: #16A34A;
}

/* Status Badges */
.im-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.im-status-badge.status-open {
  background: #DBEAFE;
  color: #2563EB;
}

.im-status-badge.status-in-progress {
  background: #EDE9FE;
  color: #7C3AED;
}

.im-status-badge.status-pending {
  background: #FFEDD5;
  color: #EA580C;
}

.im-status-badge.status-closed {
  background: #DCFCE7;
  color: #16A34A;
}

.im-status-badge.status-cancelled {
  background: #F3F4F6;
  color: #6B7280;
}

/* Assignee */
.im-td-assignee .unassigned {
  color: #9CA3AF;
  font-style: italic;
}

/* Assignee Cell Styling */
.im-assignee-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.im-assignee-team {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #6366F1;
  font-weight: 500;
}

.im-assignee-team svg {
  width: 12px;
  height: 12px;
}

.im-assignee-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #374151;
}

.im-assignee-name svg {
  width: 14px;
  height: 14px;
  color: #9CA3AF;
}

.im-assignee-single {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #374151;
}

.im-assignee-single svg {
  width: 14px;
  height: 14px;
  color: #6366F1;
}

.im-assignee-unassigned {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #9CA3AF;
  font-style: italic;
}

.im-assignee-unassigned svg {
  width: 14px;
  height: 14px;
}

/* Due Date */
.im-td-due.overdue {
  color: #DC2626;
  font-weight: 600;
}

.im-td-due.due-soon {
  color: #EA580C;
}

/* Action Buttons */
.im-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s;
}

.im-action-btn:hover {
  background: #F3F4F6;
  color: #4B5563;
}

.im-action-btn svg {
  width: 16px;
  height: 16px;
}


/* Bulk Action Bar */
.im-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: 12px;
  margin-top: 16px;
  color: white;
}

.im-bulk-bar.hidden {
  display: none;
}

.im-bulk-count {
  font-weight: 600;
  font-size: 14px;
}

.im-bulk-actions {
  display: flex;
  gap: 8px;
}

.im-bulk-actions .btn-text {
  color: white;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 6px;
  padding: 8px 14px;
}

.im-bulk-actions .btn-text:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Results Count */
.im-results-count {
  font-size: 13px;
  color: #6B7280;
}

/* Toolbar right section */
.im-toolbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Clickable stat cards */
.im-stat-card.clickable {
  cursor: pointer;
}

.im-stat-card.clickable:hover {
  border-color: #6366F1;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

/* Secondary button */
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  color: #374151;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: #F9FAFB;
  border-color: #9CA3AF;
}

.btn-secondary svg {
  width: 18px;
  height: 18px;
}

/* Checkbox styling */
.im-table input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #6366F1;
}


/* Filter Bar */
.im-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.im-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  padding: 16px 20px;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  flex-wrap: wrap;
}

.im-filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.im-filter-group label {
  font-size: 11px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.im-filter-group select {
  padding: 8px 32px 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  min-width: 150px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  transition: border-color 0.2s;
}

/* Assignee filter needs more width for team names */
.im-filter-assignee select {
  min-width: 180px;
}

/* Style optgroup labels in select */
.im-filter-group select optgroup {
  font-weight: 600;
  font-style: normal;
  color: #374151;
  background: #F3F4F6;
  padding: 4px 0;
}

.im-filter-group select option {
  font-weight: 400;
  padding: 4px 8px;
}

.im-filter-group select:hover {
  border-color: #9CA3AF;
}

.im-filter-group select:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-clear-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: #6B7280;
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.15s;
  height: 38px;
}

.im-clear-filters-btn:hover {
  background: #FEE2E2;
  color: #DC2626;
  border-color: #FECACA;
}

.im-clear-filters-btn svg {
  width: 14px;
  height: 14px;
}

/* No Results Row */
.im-no-results-row td {
  padding: 40px !important;
}

.im-no-results {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: #6B7280;
}

.im-no-results svg {
  width: 40px;
  height: 40px;
  color: #D1D5DB;
}

.im-no-results span {
  font-size: 14px;
}

.im-no-results .btn-text {
  color: #6366F1;
}

.im-no-results .btn-text:hover {
  text-decoration: underline;
}

/* Filter active state indicator */
.im-filter-group select:not([value=""]):not(:invalid) {
  border-color: #6366F1;
  background-color: #EEF2FF;
}


/* Search Input */
.im-search-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 250px;
  max-width: 400px;
  background: white;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
  height: 38px;
}

.im-search-wrapper:focus-within {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-search-wrapper > svg {
  width: 18px;
  height: 18px;
  color: #9CA3AF;
  flex-shrink: 0;
}

.im-search-wrapper input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0;
  font-size: 14px;
  background: transparent;
  height: 100%;
}

.im-search-wrapper input::placeholder {
  color: #9CA3AF;
}

.im-search-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: none;
  background: #E5E7EB;
  border-radius: 50%;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s;
  padding: 0;
}

.im-search-clear:hover {
  background: #D1D5DB;
  color: #374151;
}

.im-search-clear.hidden {
  display: none;
}

.im-search-clear svg {
  width: 12px;
  height: 12px;
}

/* Adjust filter bar for search */
.im-filter-bar {
  gap: 12px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .im-filter-bar {
    flex-wrap: wrap;
  }
  
  .im-search-wrapper {
    min-width: 100%;
    max-width: 100%;
    order: -1;
  }
}


/* Pagination */
.im-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: white;
  border: 1px solid #E5E7EB;
  border-top: none;
  border-radius: 0 0 12px 12px;
  gap: 16px;
  flex-wrap: wrap;
}

.im-pagination-info {
  font-size: 13px;
  color: #6B7280;
}

.im-pagination-controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.im-page-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #E5E7EB;
  background: white;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s;
}

.im-page-nav:hover:not(:disabled) {
  background: #F3F4F6;
  border-color: #D1D5DB;
  color: #374151;
}

.im-page-nav:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.im-page-nav svg {
  width: 16px;
  height: 16px;
}

.im-page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
}

.im-page-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  transition: all 0.15s;
}

.im-page-btn:hover {
  background: #F3F4F6;
  color: #374151;
}

.im-page-btn.active {
  background: #6366F1;
  color: white;
  border-color: #6366F1;
}

.im-page-ellipsis {
  padding: 0 4px;
  color: #9CA3AF;
}

.im-page-size {
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-page-size label {
  font-size: 13px;
  color: #6B7280;
}

.im-page-size select {
  padding: 6px 28px 6px 10px;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
  font-size: 13px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 6px center;
}

.im-page-size select:hover {
  border-color: #D1D5DB;
}

.im-page-size select:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

/* Adjust table container when pagination is present */
.im-table-container {
  border-radius: 12px 12px 0 0;
}

.im-table-container:has(+ .im-bulk-bar:not(.hidden)) + .im-pagination,
.im-table-container + .im-bulk-bar.hidden + .im-pagination {
  border-radius: 0 0 12px 12px;
}


/* Actions Dropdown Menu */
.im-actions-menu {
  position: fixed;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  min-width: 180px;
  padding: 6px;
}

.im-actions-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  border-radius: 6px;
  text-align: left;
  transition: background 0.15s;
}

.im-actions-menu button:hover {
  background: #F3F4F6;
}

.im-actions-menu button.danger {
  color: #DC2626;
}

.im-actions-menu button.danger:hover {
  background: #FEE2E2;
}

.im-actions-menu button svg {
  width: 16px;
  height: 16px;
}

.im-menu-divider {
  height: 1px;
  background: #E5E7EB;
  margin: 6px 0;
}

/* Modal Styles */
.im-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.im-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.im-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
}

.im-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1F2937;
}

.im-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s;
}

.im-modal-close:hover {
  background: #F3F4F6;
  color: #374151;
}

.im-modal-close svg {
  width: 20px;
  height: 20px;
}

.im-modal-body {
  padding: 24px;
  overflow-y: auto;
}

.im-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
}

/* Form Elements */
.im-form-group {
  margin-bottom: 16px;
}

.im-form-group:last-child {
  margin-bottom: 0;
}

.im-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 6px;
}

.im-input,
.im-select,
.im-textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.im-input:focus,
.im-select:focus,
.im-textarea:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-textarea {
  resize: vertical;
  min-height: 80px;
}

.im-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

/* Row selection highlight */
.im-row.selected {
  background: #EEF2FF !important;
}

.im-row-checkbox:checked ~ td {
  background: #EEF2FF;
}


/* Board View Placeholder */
.im-board-container {
  min-height: 400px;
}

.im-board-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  background: white;
  border: 2px dashed #E5E7EB;
  border-radius: 12px;
  text-align: center;
  color: #6B7280;
}

.im-board-placeholder svg {
  width: 48px;
  height: 48px;
  color: #D1D5DB;
  margin-bottom: 16px;
}

.im-board-placeholder h3 {
  margin: 0 0 8px 0;
  color: #374151;
  font-size: 18px;
}

.im-board-placeholder p {
  margin: 0;
  font-size: 14px;
}


/* ==========================================
   KANBAN BOARD STYLES
   ========================================== */

/* Board Container */
.im-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  min-height: 500px;
}

/* Column */
.im-board-column {
  display: flex;
  flex-direction: column;
  background: #F9FAFB;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  overflow: hidden;
}

/* Column Header */
.im-column-header {
  padding: 16px;
  background: white;
  border-bottom: 1px solid #E5E7EB;
}

.im-column-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-column-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.im-column-icon svg {
  width: 18px;
  height: 18px;
}

.im-column-label {
  font-weight: 600;
  font-size: 14px;
  color: #1F2937;
}

.im-column-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  background: #E5E7EB;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
}

/* Column Body */
.im-column-body {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.im-column-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  color: #9CA3AF;
  font-size: 13px;
  text-align: center;
}

/* Basic Card (placeholder - enhanced in 3.3) */
.im-board-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.im-board-card:hover {
  border-color: #D1D5DB;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.im-card-id {
  font-size: 11px;
  font-weight: 600;
  color: #6366F1;
  font-family: 'SF Mono', 'Monaco', monospace;
}

.im-card-title {
  font-size: 13px;
  color: #374151;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Cancelled Note */
.im-board-cancelled-note {
  margin-top: 12px;
  padding: 8px 16px;
  background: #F3F4F6;
  border-radius: 6px;
  font-size: 12px;
  color: #6B7280;
  text-align: center;
}

/* Responsive */
@media (max-width: 1200px) {
  .im-board {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .im-board {
    grid-template-columns: 1fr;
  }
}


/* ==========================================
   DETAILED CARD STYLES
   ========================================== */

/* Enhanced Card */
.im-board-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.15s;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.im-board-card:hover {
  border-color: #C7D2FE;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.12);
  transform: translateY(-1px);
}

.im-board-card.overdue {
  border-left: 3px solid #DC2626;
}

/* Card Header */
.im-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.im-card-id {
  font-size: 11px;
  font-weight: 600;
  color: #6366F1;
  font-family: 'SF Mono', 'Monaco', monospace;
}

.im-card-priority {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.im-card-priority.priority-critical {
  background: #FEE2E2;
  color: #DC2626;
}

.im-card-priority.priority-high {
  background: #FFEDD5;
  color: #EA580C;
}

.im-card-priority.priority-medium {
  background: #FEF9C3;
  color: #CA8A04;
}

.im-card-priority.priority-low {
  background: #DCFCE7;
  color: #16A34A;
}

/* Card Title */
.im-card-title {
  font-size: 13px;
  font-weight: 500;
  color: #1F2937;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Card User */
.im-card-user {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
}

.im-card-user svg {
  width: 12px;
  height: 12px;
}

/* Card Footer */
.im-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
}

.im-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-card-type {
  display: flex;
  align-items: center;
  color: #9CA3AF;
}

.im-card-type svg {
  width: 14px;
  height: 14px;
}

.im-card-due {
  font-size: 11px;
  color: #6B7280;
}

.im-card-due.overdue {
  color: #DC2626;
  font-weight: 600;
}

.im-card-due.due-today {
  color: #DC2626;
  font-weight: 500;
}

.im-card-due.due-soon {
  color: #EA580C;
}

/* Card Assignee Avatar */
.im-card-assignee {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #6366F1 0%, #8B5CF6 100%);
  color: white;
  font-size: 10px;
  font-weight: 600;
  border-radius: 50%;
}


/* ==========================================
   DRAG AND DROP STYLES
   ========================================== */

/* Dragging Card */
.im-board-card[draggable="true"] {
  cursor: grab;
}

.im-board-card[draggable="true"]:active {
  cursor: grabbing;
}

.im-board-card.dragging {
  opacity: 0.5;
  transform: rotate(2deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Drop Zone Highlight */
.im-column-body.drag-over {
  background: #EEF2FF;
  border: 2px dashed #6366F1;
  border-radius: 8px;
}

.im-column-body.drag-over .im-column-empty {
  color: #6366F1;
}

/* Transition for smooth drop */
.im-board-card {
  transition: transform 0.15s, opacity 0.15s, box-shadow 0.15s;
}


/* ==========================================
   STATUS CHANGE MODAL STYLES
   ========================================== */

.im-status-change-modal {
  max-width: 420px;
}

.im-status-change-preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 20px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 16px;
}

.im-status-from,
.im-status-to {
  display: flex;
  align-items: center;
}

.im-status-arrow {
  color: #9CA3AF;
}

.im-status-arrow svg {
  width: 20px;
  height: 20px;
}

.im-status-change-preview .im-status-badge {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.im-status-incident-info {
  text-align: center;
  margin-bottom: 16px;
  color: #6B7280;
  font-size: 13px;
}

.im-status-incident-info strong {
  color: #6366F1;
  font-family: 'SF Mono', 'Monaco', monospace;
}

.im-form-help {
  margin: 6px 0 0 0;
  font-size: 12px;
  color: #9CA3AF;
}

.required {
  color: #DC2626;
}


/* ==========================================
   CREATE/EDIT MODAL STYLES
   ========================================== */

.im-create-modal {
  max-width: 600px;
}

.im-create-modal .im-modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

.im-form-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.im-form-row:last-child {
  margin-bottom: 0;
}

.im-form-group {
  flex: 1;
}

.im-form-group.im-form-full {
  flex: 1 0 100%;
}

.im-form-divider {
  display: flex;
  align-items: center;
  margin: 20px 0 16px 0;
}

.im-form-divider span {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-right: 12px;
}

.im-form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E5E7EB;
}


/* ==========================================
   TABS
   ========================================== */

.im-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid #E5E7EB;
  padding-bottom: 0;
}

.im-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #6B7280;
  cursor: pointer;
  transition: all 0.15s;
  margin-bottom: -1px;
}

.im-tab:hover {
  color: #4B5563;
  background: #F9FAFB;
}

.im-tab.active {
  color: #6366F1;
  border-bottom-color: #6366F1;
}

.im-tab svg {
  width: 18px;
  height: 18px;
}

.im-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: #6366F1;
  color: white;
  font-size: 11px;
  font-weight: 600;
  border-radius: 10px;
}

/* ==========================================
   DASHBOARD
   ========================================== */

.im-dashboard {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Summary Cards */
.im-dash-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.im-dash-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
}

.im-dash-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.im-dash-card-icon svg {
  width: 24px;
  height: 24px;
}

.im-dash-card-icon.blue {
  background: #DBEAFE;
  color: #2563EB;
}

.im-dash-card-icon.orange {
  background: #FFEDD5;
  color: #EA580C;
}

.im-dash-card-icon.green {
  background: #DCFCE7;
  color: #16A34A;
}

.im-dash-card-icon.purple {
  background: #EDE9FE;
  color: #7C3AED;
}

.im-dash-card-content {
  display: flex;
  flex-direction: column;
}

.im-dash-card-value {
  font-size: 28px;
  font-weight: 700;
  color: #1F2937;
  line-height: 1;
}

.im-dash-card-label {
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
}

/* Charts */
.im-dash-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.im-dash-chart-card {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.im-dash-chart-card h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

/* Status Bars */
.im-dash-status-bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.im-dash-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.im-dash-bar-label {
  width: 80px;
  font-size: 13px;
  color: #6B7280;
}

.im-dash-bar-track {
  flex: 1;
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}

.im-dash-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.im-dash-bar-value {
  width: 30px;
  text-align: right;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
}

/* Priority Grid */
.im-dash-priority-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.im-dash-priority-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px;
  background: #F9FAFB;
  border: 2px solid;
  border-radius: 8px;
}

.im-dash-priority-count {
  font-size: 24px;
  font-weight: 700;
}

.im-dash-priority-label {
  font-size: 12px;
  color: #6B7280;
  margin-top: 4px;
}

/* Recent Activity */
.im-dash-recent {
  background: white;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 20px;
}

.im-dash-recent h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1F2937;
}

.im-dash-activity-list {
  display: flex;
  flex-direction: column;
}

.im-dash-activity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #F3F4F6;
  cursor: pointer;
  transition: background 0.15s;
}

.im-dash-activity-item:last-child {
  border-bottom: none;
}

.im-dash-activity-item:hover {
  background: #F9FAFB;
  margin: 0 -12px;
  padding: 12px;
}

.im-dash-activity-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F3F4F6;
  border-radius: 8px;
  color: #6B7280;
}

.im-dash-activity-icon svg {
  width: 18px;
  height: 18px;
}

.im-dash-activity-content {
  flex: 1;
  min-width: 0;
}

.im-dash-activity-id {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #6366F1;
  font-family: monospace;
}

.im-dash-activity-title {
  display: block;
  font-size: 13px;
  color: #4B5563;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.im-dash-activity-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.im-dash-activity-status {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 4px;
}

.im-dash-activity-time {
  font-size: 11px;
  color: #9CA3AF;
}

.im-dash-empty {
  padding: 40px;
  text-align: center;
  color: #9CA3AF;
}

/* Responsive */
@media (max-width: 1000px) {
  .im-dash-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .im-dash-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .im-dash-summary {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   INCIDENT MANAGEMENT SETTINGS (Phase 8)
   Version: 2.3.0
   ============================================================ */

/* Settings Card */
.im-settings-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  overflow: hidden;
}

.im-settings-card-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E5E7EB;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.im-settings-card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-settings-card-header h3 i {
  width: 20px;
  height: 20px;
  color: #6366F1;
}

.im-settings-card-header p {
  margin: 4px 0 0 28px;
  font-size: 13px;
  color: #6B7280;
}

.im-settings-card-body {
  padding: 24px;
}

.im-settings-card-footer {
  padding: 16px 24px;
  border-top: 1px solid #E5E7EB;
  background: #F9FAFB;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}


/* SLA Grid */
.im-sla-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.im-sla-row {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
}

.im-sla-priority {
  display: flex;
  align-items: center;
}

.im-sla-input-group label,
.im-sla-escalation label {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 4px;
  display: block;
}

.im-sla-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-sla-days-input,
.im-sla-hours-input {
  width: 80px;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
}

.im-sla-days-input:focus,
.im-sla-hours-input:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-sla-days-input:disabled,
.im-sla-hours-input:disabled {
  background: #F3F4F6;
  color: #9CA3AF;
}

.im-sla-unit {
  font-size: 13px;
  color: #6B7280;
}


.im-sla-escalation {
  display: flex;
  flex-direction: column;
}

.im-sla-escalation label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.im-sla-escalation label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366F1;
}

/* Settings Info Box */
.im-settings-info {
  display: flex;
  gap: 12px;
  padding: 16px;
  background: #EEF2FF;
  border-radius: 8px;
  border: 1px solid #C7D2FE;
}

.im-settings-info > i {
  width: 20px;
  height: 20px;
  color: #6366F1;
  flex-shrink: 0;
  margin-top: 2px;
}

.im-settings-info strong {
  display: block;
  font-size: 14px;
  color: #4338CA;
  margin-bottom: 4px;
}

.im-settings-info p {
  margin: 0;
  font-size: 13px;
  color: #4F46E5;
  line-height: 1.5;
}


/* Toggle Switch */
.im-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.im-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.im-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #D1D5DB;
  transition: 0.3s;
  border-radius: 24px;
}

.im-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.im-toggle input:checked + .im-toggle-slider {
  background-color: #6366F1;
}

.im-toggle input:checked + .im-toggle-slider:before {
  transform: translateX(20px);
}

.im-toggle input:disabled + .im-toggle-slider {
  background-color: #E5E7EB;
  cursor: not-allowed;
}

.im-settings-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
}

.im-settings-toggle span {
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}


/* Auto-Assignment Styles */
.im-auto-assign-default {
  padding: 16px;
  background: #F9FAFB;
  border-radius: 8px;
}

.im-auto-assign-default label {
  display: block;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
  margin-bottom: 8px;
}

.im-auto-assign-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.im-auto-assign-inputs input {
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
}

.im-auto-assign-inputs input:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-auto-assign-inputs input:disabled {
  background: #F3F4F6;
  color: #9CA3AF;
}

/* Type Assignment Grid */
.im-type-assign-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.im-type-assign-row {
  display: grid;
  grid-template-columns: 150px 60px 1fr;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 8px;
}

.im-type-info {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  color: #374151;
}

.im-type-info i {
  width: 18px;
  height: 18px;
  color: #6B7280;
}

.im-type-toggle {
  display: flex;
  justify-content: center;
}

.im-type-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.im-type-inputs input {
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 13px;
}

.im-type-inputs input:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-type-inputs input:disabled {
  background: #F3F4F6;
  color: #9CA3AF;
}


/* Settings Responsive */
@media (max-width: 768px) {
  .im-sla-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .im-type-assign-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .im-type-info {
    justify-content: center;
  }
  
  .im-auto-assign-inputs,
  .im-type-inputs {
    grid-template-columns: 1fr;
  }
}


/* ============================================================
   INCIDENT INTEGRATIONS (Phase 9)
   ============================================================ */

/* Integration Form */
.im-integration-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 16px;
}

.im-integration-form .im-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.im-integration-form .im-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.im-integration-form label {
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.im-integration-form input,
.im-integration-form select {
  padding: 10px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  font-size: 14px;
}

.im-integration-form input:focus,
.im-integration-form select:focus {
  outline: none;
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.im-integration-form input:disabled,
.im-integration-form select:disabled {
  background: #F3F4F6;
  color: #9CA3AF;
}


/* Sync Options */
.im-sync-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 12px;
  background: #F9FAFB;
  border-radius: 6px;
}

.im-sync-options label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
  cursor: pointer;
}

.im-sync-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #6366F1;
}

/* Integration Placeholder */
.im-integration-placeholder {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #FEF3C7;
  border-radius: 6px;
  font-size: 13px;
  color: #92400E;
}

.im-integration-placeholder i {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}


/* Webhooks */
.im-webhook-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  background: #F9FAFB;
  border-radius: 8px;
  margin-bottom: 8px;
}

.im-webhook-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.im-webhook-name {
  font-weight: 500;
  color: #111827;
}

.im-webhook-url {
  font-size: 12px;
  color: #6B7280;
  font-family: monospace;
}

.im-webhook-events {
  display: flex;
  gap: 6px;
}

.im-webhook-event {
  padding: 2px 8px;
  background: #E0E7FF;
  color: #4338CA;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
}

.im-webhook-actions {
  display: flex;
  gap: 8px;
}

.im-btn-icon {
  padding: 6px;
  background: transparent;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  cursor: pointer;
  color: #6B7280;
  transition: all 0.15s;
}

.im-btn-icon:hover {
  background: #F3F4F6;
  color: #374151;
}

.im-btn-icon.im-btn-danger:hover {
  background: #FEE2E2;
  border-color: #FECACA;
  color: #DC2626;
}

.im-btn-icon i {
  width: 16px;
  height: 16px;
}


/* Empty State */
.im-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px;
  color: #9CA3AF;
  text-align: center;
}

.im-empty-state i {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
  opacity: 0.5;
}

.im-empty-state p {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  color: #6B7280;
}

.im-empty-state span {
  font-size: 13px;
  margin-top: 4px;
}

/* Settings Actions */
.im-settings-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 24px;
}

/* Small button variant */
.im-btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.im-btn-sm i {
  width: 14px;
  height: 14px;
}


/* ============================================================
   REPORTS TAB (Phase 10)
   ============================================================ */

/* Reports Container */
.im-reports {
  padding: 0;
}

.im-reports-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

.im-reports-title h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #111827;
  display: flex;
  align-items: center;
  gap: 10px;
}

.im-reports-title h2 i {
  width: 24px;
  height: 24px;
  color: #6366F1;
}

.im-reports-title p {
  margin: 4px 0 0 34px;
  font-size: 14px;
  color: #6B7280;
}

.im-reports-actions {
  display: flex;
  gap: 8px;
}


/* Report Metrics */
.im-report-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.im-report-metric {
  background: white;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  gap: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.im-report-metric-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.im-report-metric-icon i {
  width: 24px;
  height: 24px;
}

.im-report-metric-icon.blue { background: #EFF6FF; color: #3B82F6; }
.im-report-metric-icon.green { background: #ECFDF5; color: #10B981; }
.im-report-metric-icon.purple { background: #F3E8FF; color: #8B5CF6; }
.im-report-metric-icon.orange { background: #FFF7ED; color: #F59E0B; }

.im-report-metric-content {
  display: flex;
  flex-direction: column;
}

.im-report-metric-value {
  font-size: 28px;
  font-weight: 700;
  color: #111827;
  line-height: 1;
}

.im-report-metric-label {
  font-size: 13px;
  color: #6B7280;
  margin-top: 4px;
}

.im-report-metric-trend {
  font-size: 12px;
  margin-top: 8px;
}

.im-report-metric-trend.up { color: #10B981; }
.im-report-metric-trend.down { color: #EF4444; }


/* Report Charts Grid */
.im-report-charts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.im-report-chart-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.im-report-chart-card.im-report-chart-wide {
  grid-column: span 2;
}

.im-report-chart-card h3 {
  margin: 0 0 16px 0;
  font-size: 15px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-report-chart-card h3 i {
  width: 18px;
  height: 18px;
  color: #6B7280;
}


/* Type Chart */
.im-report-type-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.im-report-type-label {
  width: 120px;
  font-size: 13px;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-report-type-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.im-report-type-bar-track {
  flex: 1;
  height: 8px;
  background: #F3F4F6;
  border-radius: 4px;
  overflow: hidden;
}

.im-report-type-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s;
}

.im-report-type-count {
  width: 40px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}


/* Priority Chart */
.im-report-priority-bars {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 150px;
  padding-top: 20px;
}

.im-report-priority-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.im-report-priority-bar-container {
  width: 48px;
  height: 100px;
  background: #F3F4F6;
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.im-report-priority-bar {
  width: 100%;
  border-radius: 6px;
  transition: height 0.3s;
}

.im-report-priority-label {
  font-size: 12px;
  color: #6B7280;
}

.im-report-priority-count {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}


/* Trend Chart */
.im-report-trend-bars {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 120px;
  padding: 0 20px;
}

.im-report-trend-month {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.im-report-trend-bar-group {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 100px;
}

.im-report-trend-bar {
  width: 24px;
  border-radius: 4px 4px 0 0;
  transition: height 0.3s;
  min-height: 4px;
}

.im-report-trend-bar.created { background: #3B82F6; }
.im-report-trend-bar.closed { background: #10B981; }

.im-report-trend-label {
  font-size: 12px;
  color: #6B7280;
}

.im-report-trend-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.im-report-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6B7280;
}

.im-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

.im-legend-color.created { background: #3B82F6; }
.im-legend-color.closed { background: #10B981; }


/* Status Breakdown */
.im-report-breakdown {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.im-report-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.im-report-status-info {
  width: 140px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.im-report-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.im-report-status-name {
  font-size: 13px;
  color: #374151;
}

.im-report-status-bar-track {
  flex: 1;
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
}

.im-report-status-bar {
  height: 100%;
  border-radius: 3px;
}

.im-report-status-count {
  width: 80px;
  text-align: right;
  font-size: 12px;
  color: #6B7280;
}


/* Top Assignees */
.im-report-assignee-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.im-report-assignee-rank {
  width: 24px;
  font-size: 12px;
  font-weight: 600;
  color: #9CA3AF;
}

.im-report-assignee-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366F1, #8B5CF6);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.im-report-assignee-name {
  flex: 1;
  font-size: 13px;
  color: #374151;
  font-weight: 500;
}

.im-report-assignee-bar-track {
  width: 80px;
  height: 6px;
  background: #F3F4F6;
  border-radius: 3px;
  overflow: hidden;
}

.im-report-assignee-bar {
  height: 100%;
  background: #6366F1;
  border-radius: 3px;
}

.im-report-assignee-count {
  width: 30px;
  text-align: right;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

/* Empty State */
.im-empty-state-small {
  padding: 20px;
  text-align: center;
  color: #9CA3AF;
  font-size: 13px;
}


/* Reports Responsive */
@media (max-width: 1200px) {
  .im-report-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .im-report-charts {
    grid-template-columns: 1fr;
  }
  
  .im-report-chart-card.im-report-chart-wide {
    grid-column: span 1;
  }
  
  .im-report-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .im-report-metrics {
    grid-template-columns: 1fr;
  }
  
  .im-reports-header {
    flex-direction: column;
  }
  
  .im-reports-actions {
    width: 100%;
  }
  
  .im-reports-actions .im-btn {
    flex: 1;
  }
}
