/**
 * @file
 * Styles for landlord property requests table and actions.
 */

/* Toast Notification - Upper Right Corner */
#iom-toast.iom-toast {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 99999 !important;
  display: flex !important;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
  pointer-events: none;
  margin: 0 !important;
  padding: 0 !important;
  left: auto !important;
  bottom: auto !important;
  width: auto !important;
  height: auto !important;
}

body #iom-toast.iom-toast,
html #iom-toast.iom-toast {
  position: fixed !important;
  top: 1rem !important;
  right: 1rem !important;
  z-index: 99999 !important;
  left: auto !important;
  bottom: auto !important;
}

.iom-toast__item {
  background: #0f172a;
  color: #fff;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  border-left: 6px solid #38bdf8;
  opacity: 0.95;
  pointer-events: auto;
}

.iom-toast__item--error { 
  border-color: #ef4444; 
}

.iom-toast__item--warning { 
  border-color: #f59e0b; 
}

.iom-toast__item--status { 
  border-color: #22c55e; 
}

.iom-toast__icon { 
  margin-top: 2px; 
}

.iom-toast__text { 
  line-height: 1.4; 
}

/* Enhanced Table Styles */
.iom-properties-card--enhanced {
  padding: 32px;
}

.iom-table-wrapper--enhanced {
  overflow-x: auto;
  margin-top: 8px;
}

.iom-data-table--landlord-requests {
  min-width: 100%;
}

.iom-data-table--landlord-requests thead th {
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 14px 10px;
  background: #0033A0 !important;
}

.iom-data-table--landlord-requests tbody td {
  padding: 14px 10px;
  vertical-align: middle;
  border-bottom: 1px solid #e5e7eb;
}

/* Case File column: keep on one line */
.iom-data-table--landlord-requests thead th:nth-child(3),
.iom-data-table--landlord-requests tbody td:nth-child(3) {
  white-space: nowrap;
}

.iom-data-table--landlord-requests tbody tr:hover {
  background: rgba(11, 106, 176, 0.04);
}

/* Property Cell */
.iom-property-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.iom-property-cell .iom-property-title {
  font-weight: 600;
  color: #0b3f6f;
  font-size: 15px;
  text-decoration: none;
  transition: color 0.2s ease;
}

.iom-property-cell .iom-property-title:hover {
  color: #0b6ab0;
  text-decoration: underline;
}

.iom-property-cell .iom-property-title--link {
  text-decoration: none;
}

.iom-property-cell .iom-property-title--link:hover {
  color: #0b6ab0;
  text-decoration: underline;
}

.iom-property-cell .iom-property-updated {
  font-size: 12px;
  color: #94a3b8;
}

/* Property Fields with Icons */
.iom-property-beneficiary,
.iom-property-location,
.iom-property-bedrooms,
.iom-property-rent,
.iom-ngo-partner-name,
.iom-landlord-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
}

.iom-property-beneficiary i,
.iom-property-location i,
.iom-property-bedrooms i,
.iom-property-rent i,
.iom-ngo-partner-name i,
.iom-landlord-name i {
  font-size: 13px;
  color: #64748b;
  width: 16px;
  text-align: center;
}

/* Rejection Reason Cell in Table */
.iom-rejection-reason-cell {
  max-width: 300px;
  padding: 12px;
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  border-left: 3px solid #dc2626;
  border-radius: 6px;
}

.iom-rejection-reason-cell .rejection-reason-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #991b1b;
  font-weight: 600;
}

.iom-rejection-reason-cell .rejection-reason-header i {
  font-size: 12px;
  color: #dc2626;
  width: auto;
}

.iom-rejection-reason-cell .rejection-reason-text {
  margin: 0;
  font-size: 13px;
  color: #7f1d1d;
  line-height: 1.5;
  font-style: italic;
}

.iom-rejection-reason-empty {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 13px;
  font-style: italic;
}

.iom-rejection-reason-empty i {
  font-size: 12px;
  color: #cbd5e1;
  width: auto;
}

/* Property Status Badge in Table */
.iom-property-status-badge {
  margin-top: 6px;
}

.iom-property-status-badge .iom-badge {
  font-size: 11px;
  padding: 4px 8px;
}

/* Assign Properties Styles */
.assigned-beneficiaries {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.assigned-beneficiary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #0b3f6f;
  background: #e0f2fe;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
}

.assigned-beneficiary-badge i {
  font-size: 11px;
  color: #0284c7;
}

.not-assigned {
  color: #94a3b8;
  font-style: italic;
  font-size: 13px;
}

/* Modal Styles for Assign Property */
.iom-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  align-items: center;
  justify-content: center;
}

.iom-modal.is-active {
  display: flex;
}

.iom-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.iom-modal__content {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 2;
}

.iom-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid #e5e7eb;
}

.iom-modal__header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0b3f6f;
}

.iom-modal__close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.iom-modal__close:hover {
  background: #f1f5f9;
  color: #0b3f6f;
}

.iom-modal__body {
  padding: 28px;
}

.iom-modal__body .form-group {
  margin-bottom: 20px;
}

.iom-modal__body label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 14px;
}

.iom-modal__body .required {
  color: #ef4444;
}

.iom-modal__body .optional {
  color: #94a3b8;
  font-weight: 400;
  font-size: 12px;
}

.iom-modal__body .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.iom-modal__body .form-control:focus {
  outline: none;
  border-color: #0133a0;
  box-shadow: 0 0 0 4px rgba(1, 51, 160, 0.1);
}

.iom-modal__body .form-control[readonly] {
  background: #f8fafc;
  cursor: not-allowed;
}

.iom-modal__body textarea.form-control {
  resize: vertical;
  min-height: 100px;
}

.iom-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
}

.iom-modal__footer .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iom-modal__footer .btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.iom-modal__footer .btn-secondary:hover {
  background: #e2e8f0;
}

.iom-modal__footer .btn-primary {
  background: #0133a0;
  color: #ffffff;
}

.iom-modal__footer .btn-primary:hover {
  background: #012280;
}

.iom-modal__footer .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.iom-property-rent {
  font-weight: 600;
  color: #0b6ab0;
  font-size: 15px;
}

/* Request Status Badges */
.iom-request-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.iom-request-badge.request-status--pending {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.iom-request-badge.request-status--accepted {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #10b981;
}

.iom-request-badge.request-status--rejected {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Priority Badges */
.priority-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.priority-badge--very_urgent {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #ef4444;
}

.priority-badge--urgent {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #9a3412;
  border: 1px solid #f97316;
}

.priority-badge--moderate {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.priority-badge--medium {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

.priority-badge--low_priority {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #374151;
  border: 1px solid #9ca3af;
}

.priority-badge--not-set {
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
  color: #6b7280;
  border: 1px solid #d1d5db;
}

/* Action Buttons */
.iom-action-buttons--landlord {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

/* NGO Dashboard - Actions column: cleaner UI */
.iom-actions-cell--ngo {
  min-width: 0;
}

.iom-action-buttons--ngo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.iom-action-buttons--ngo .iom-accepted-actions {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.iom-action-buttons--ngo .iom-action-status {
  margin-right: 2px;
}

.iom-action-buttons--ngo .btn {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  min-height: 36px;
}

.iom-action-buttons--ngo .btn i {
  margin-right: 4px;
}

.iom-action-buttons--ngo .iom-upload-document-wrapper {
  display: inline-flex;
  align-items: center;
}

.iom-action-buttons--ngo .btn-upload-document,
.iom-action-buttons--ngo .btn-remove-document {
  padding: 6px 10px;
  font-size: 12px;
}

.iom-action-buttons--ngo .iom-upload-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.iom-actions-cell--ngo .iom-action-buttons {
  padding: 8px 0;
}

.iom-actions-cell--ngo .iom-action-buttons--ngo > .btn:not(:last-child),
.iom-actions-cell--ngo .iom-action-buttons--ngo > .iom-accepted-actions .btn + .btn,
.iom-actions-cell--ngo .iom-action-buttons--ngo > .iom-accepted-actions .iom-upload-document-wrapper {
  margin-left: 0;
}

.iom-action-buttons--landlord .btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.iom-action-buttons--landlord .btn i {
  font-size: 12px;
}

/* Landlord action tooltip (info icon + bubble) */
.iom-action-buttons--landlord .landlord-action-item-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  color: rgba(255, 255, 255, 0.9);
  cursor: help;
  flex-shrink: 0;
  border-radius: 50%;
  transition: color 0.2s;
}

.iom-action-buttons--landlord .btn-primary .landlord-action-item-info:hover {
  color: #fff;
}

.iom-action-buttons--landlord .btn-danger .landlord-action-item-info:hover {
  color: #fff;
}

.iom-action-buttons--landlord .landlord-action-tooltip-bubble {
  position: absolute;
  top: 50%;
  right: calc(100% + 10px);
  left: auto;
  transform: translateY(-50%) translateX(4px);
  width: 260px;
  max-width: min(260px, calc(100vw - 2rem));
  padding: 0.75rem 1rem;
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  color: #f1f5f9;
  font-size: 0.8125rem;
  line-height: 1.5;
  font-weight: 500;
  text-align: left;
  white-space: normal;
  word-wrap: break-word;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.06);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  z-index: 1100;
}

.iom-action-buttons--landlord .landlord-action-tooltip-bubble::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -6px;
  border: 6px solid transparent;
  border-left-color: #1e293b;
}

.iom-action-buttons--landlord .landlord-action-item-info:hover .landlord-action-tooltip-bubble,
.iom-action-buttons--landlord .landlord-action-item-info:focus .landlord-action-tooltip-bubble,
.iom-action-buttons--landlord .landlord-action-item-info:focus-visible .landlord-action-tooltip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

.iom-action-buttons--landlord .btn-primary .landlord-action-tooltip-bubble {
  background: linear-gradient(180deg, #1e3a5f 0%, #0f172a 100%);
  box-shadow: 0 10px 40px rgba(0, 51, 160, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.iom-action-buttons--landlord .btn-primary .landlord-action-tooltip-bubble::after {
  border-left-color: #1e3a5f;
}

.iom-action-buttons--landlord .btn-danger .landlord-action-tooltip-bubble {
  background: linear-gradient(180deg, #b91c1c 0%, #991b1b 100%);
  box-shadow: 0 10px 40px rgba(185, 28, 28, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.iom-action-buttons--landlord .btn-danger .landlord-action-tooltip-bubble::after {
  border-left-color: #b91c1c;
}

.iom-action-buttons--landlord .btn-success {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.iom-action-buttons--landlord .btn-success:hover {
  background: linear-gradient(135deg, #059669, #047857);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.iom-action-buttons--landlord .btn-success:active {
  transform: translateY(0);
}

.iom-action-buttons--landlord .btn-danger {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.iom-action-buttons--landlord .btn-danger:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.iom-action-buttons--landlord .btn-danger:active {
  transform: translateY(0);
}

.iom-action-buttons--landlord .btn-secondary {
  background: transparent;
  border: 1px solid #cbd5e1;
  color: #475569;
  padding: 8px 12px;
}

.iom-action-buttons--landlord .btn-secondary:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
}

.iom-action-buttons--landlord .btn-sm {
  padding: 6px 10px;
  font-size: 12px;
}

.iom-action-buttons--landlord .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Action Status */
.iom-action-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  white-space: nowrap;
}

.iom-action-status--accepted {
  color: #065f46;
  background: #d1fae5;
}

.iom-action-status--accepted i {
  color: #10b981;
}

.iom-action-status--rejected {
  color: #991b1b;
  background: #fee2e2;
}

.iom-action-status--rejected i {
  color: #ef4444;
}

.iom-action-status--viewing-approved {
  color: #0b3f6f;
  background: #e0f2fe;
}

.iom-action-status--viewing-approved i {
  color: #0284c7;
}

/* Loading State */
.iom-action-buttons--landlord .btn.loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.iom-action-buttons--landlord .btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Empty State Enhancement */
.iom-empty-state {
  padding: 60px 32px;
  text-align: center;
}

.iom-empty-state i {
  font-size: 14px;
  color: #cbd5e1;
  margin-bottom: 2px;
  display: block;
}

.iom-empty-state p {
  font-size: 15px;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* Case File Link Styling */
.iom-case-file-link {
  color: #007bff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: color 0.2s ease, box-shadow 0.2s ease;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 6px;
}

.iom-case-file-link:focus-visible {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

.iom-case-file-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.iom-case-file-link i {
  font-size: 0.875rem;
  color: #0056b3;
}

.iom-case-file-empty {
  color: #6c757d;
  font-style: italic;
  font-size: 14px;
}

/* Case File Link Button Styling */
.iom-case-file-link--button {
  background: none;
  border: none;
  color: #007bff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-size: inherit;
  font-family: inherit;
}

.iom-case-file-link--button:hover {
  color: #0056b3;
  text-decoration: underline;
}

.iom-case-file-link--button.loading {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Case File Modal */
.case-file-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.case-file-modal.active {
  opacity: 1;
  visibility: visible;
}

.case-file-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.case-file-modal__content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.case-file-modal.active .case-file-modal__content {
  transform: scale(1);
}

.case-file-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.case-file-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0b3f6f;
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-file-modal__title i {
  color: #0b6ab0;
}

.case-file-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.case-file-modal__close:hover {
  background: #e5e7eb;
  color: #0b3f6f;
}

.case-file-modal__body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.case-file-modal__loading {
  text-align: center;
  padding: 60px 20px;
  color: #64748b;
}

.case-file-modal__loading i {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
  color: #0b6ab0;
}

.case-file-modal__loading p {
  margin: 0;
  font-size: 16px;
}

/* Case File Details Content */
.case-file-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.case-file-details__section {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 24px;
}

.case-file-details__section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.case-file-details__section h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
}

/* Rejection Reason Modal */
.iom-rejection-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10001;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.iom-rejection-modal.active {
  display: flex;
  opacity: 1;
  visibility: visible;
}

.iom-rejection-modal__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.iom-rejection-modal__content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.95);
  transition: transform 0.3s ease;
  z-index: 2;
}

.iom-rejection-modal.active .iom-rejection-modal__content {
  transform: scale(1);
}

.iom-rejection-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.iom-rejection-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #991b1b;
  display: flex;
  align-items: center;
  gap: 10px;
}

.iom-rejection-modal__title i {
  color: #dc2626;
}

.iom-rejection-modal__close {
  background: none;
  border: none;
  font-size: 24px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.iom-rejection-modal__close:hover {
  background: #e5e7eb;
  color: #0b3f6f;
}

.iom-rejection-modal__body {
  padding: 32px;
  overflow-y: auto;
  flex: 1;
}

.iom-rejection-modal__description {
  margin: 0 0 24px 0;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.iom-rejection-form .form-group {
  margin-bottom: 24px;
}

.iom-rejection-form .form-label {
  display: block;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
  font-size: 14px;
}

.iom-rejection-form .required {
  color: #ef4444;
}

.iom-rejection-form .form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  color: #1e293b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.iom-rejection-form .form-control:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.iom-rejection-form textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.iom-rejection-form .form-text {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.iom-rejection-modal__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

.iom-rejection-modal__actions .btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.iom-rejection-modal__actions .btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.iom-rejection-modal__actions .btn-secondary:hover {
  background: #e2e8f0;
}

.iom-rejection-modal__actions .btn-danger {
  background: #dc2626;
  color: #ffffff;
}

.iom-rejection-modal__actions .btn-danger:hover {
  background: #b91c1c;
}

.iom-rejection-modal__actions .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
  font-weight: 600;
  color: #0b3f6f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.case-file-details__section h3 i {
  color: #0b6ab0;
}

.case-file-details__row {
  display: flex;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.case-file-details__row:last-child {
  border-bottom: none;
}

.case-file-details__label {
  font-weight: 600;
  color: #475569;
  min-width: 200px;
  flex-shrink: 0;
  font-size: 14px;
}

.case-file-details__value {
  color: #1e293b;
  flex: 1;
  font-size: 14px;
}

.case-file-details__value--text {
  white-space: pre-wrap;
  line-height: 1.6;
  padding-top: 8px;
}

.priority-display {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.priority-label {
  font-weight: 600;
  color: #1e293b;
}

.priority-date {
  color: #64748b;
  font-size: 13px;
  font-style: italic;
}

.case-file-status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.case-file-status-badge.status-checked_approved,
.case-file-status-badge.status-allocated {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #10b981;
}

.case-file-status-badge.status-checked_rejected {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #ef4444;
}

.case-file-status-badge.status-under_validation {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  color: #92400e;
  border: 1px solid #fbbf24;
}

.case-file-status-badge.status-archived,
.case-file-status-badge.status-unknown {
  background: linear-gradient(135deg, #e5e7eb, #d1d5db);
  color: #374151;
  border: 1px solid #9ca3af;
}

.case-file-status-badge.status-under_assistance {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #1e40af;
  border: 1px solid #3b82f6;
}

/* Responsive */
@media (max-width: 768px) {
  .case-file-modal__content {
    width: 95%;
    max-height: 95vh;
  }

  .case-file-modal__header {
    padding: 20px;
  }

  .case-file-modal__body {
    padding: 20px;
  }

  .case-file-details__row {
    flex-direction: column;
    gap: 8px;
  }

  .case-file-details__label {
    min-width: auto;
  }
}

/* Responsive */
@media (max-width: 1200px) {
  .iom-data-table--landlord-requests {
    font-size: 14px;
  }

  .iom-data-table--landlord-requests thead th,
  .iom-data-table--landlord-requests tbody td {
    padding: 14px 12px;
  }

  .iom-action-buttons--landlord {
    flex-direction: column;
    align-items: stretch;
  }

  .iom-action-buttons--landlord .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .iom-properties-card--enhanced {
    padding: 20px;
  }

  .iom-data-table--landlord-requests thead {
    display: none;
  }

  .iom-data-table--landlord-requests tbody tr {
    display: block;
    margin-bottom: 20px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    background: #fff;
  }

  .iom-data-table--landlord-requests tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
  }

  .iom-data-table--landlord-requests tbody td:last-child {
    border-bottom: none;
    padding-top: 16px;
  }

  .iom-data-table--landlord-requests tbody td[data-label]::before {
    content: attr(data-label);
    font-weight: 600;
    color: #64748b;
    margin-right: 12px;
    flex-shrink: 0;
  }

  .iom-action-buttons--landlord {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .iom-action-buttons--landlord .btn {
    flex: 1;
    min-width: 120px;
  }
}

/* Success/Error Messages */
.iom-request-message {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 16px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 10000;
  animation: slideInRight 0.3s ease;
  max-width: 400px;
}

.iom-request-message--success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #065f46;
  border: 1px solid #10b981;
}

.iom-request-message--error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #991b1b;
  border: 1px solid #ef4444;
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Locked Button Styling - Properties that cannot be edited */
.btn[disabled],
.btn.disabled {
  opacity: 0.6;
  cursor: not-allowed !important;
  pointer-events: none;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

.btn[disabled]:hover,
.btn.disabled:hover {
  transform: none !important;
  box-shadow: none !important;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%) !important;
}

/* Locked property indicator */
.iom-action-buttons .btn[disabled] {
  background: linear-gradient(135deg, #64748b 0%, #475569 100%) !important;
}

.iom-action-buttons .btn[disabled] i.fa-lock {
  color: #f1f5f9;
}

/* Simplified Assigned Properties Table Styling */
.iom-data-table--simple .iom-property-title--link {
  color: #3b82f6;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.iom-data-table--simple .iom-property-title--link:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* Assigned Beneficiary Styling */
.assigned-beneficiaries {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.assigned-beneficiary-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.assigned-beneficiary-item .name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.assigned-beneficiary-item .name-wrapper i {
  color: #3b82f6;
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.assigned-beneficiary-item .name-wrapper span {
  color: #1e293b;
  font-size: 14px;
}

.assigned-beneficiary-item .name-wrapper i.fa-envelope {
  color: #64748b;
  font-size: 12px;
}

.assigned-beneficiary-item .name-wrapper i.fa-envelope + span {
  color: #64748b;
  font-size: 13px;
}

.beneficiary-email {
  display: block;
  color: #64748b;
  font-size: 12px;
  margin-left: 20px;
}

/* NGO Partner Info Styling */
.ngo-partner-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ngo-partner-info .assigned-beneficiary-item {
  gap: 8px;
}

.ngo-partner-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #1e293b;
}

.ngo-partner-name i {
  color: #8b5cf6;
  font-size: 14px;
  width: 16px;
  flex-shrink: 0;
}

.ngo-partner-info .name-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ngo-partner-info .name-wrapper i.fa-building {
  color: #8b5cf6;
  font-size: 14px;
  width: 16px;
}

.ngo-partner-info .name-wrapper i.fa-envelope {
  color: #64748b;
  font-size: 12px;
  width: 16px;
}

.ngo-partner-info .name-wrapper span {
  font-size: 14px;
}

.ngo-partner-email {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 12px;
  margin-left: 22px;
}

.ngo-partner-email i {
  font-size: 11px;
}

/* Not Assigned Indicator */
.not-assigned {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-style: italic;
  font-size: 14px;
}

.not-assigned i {
  font-size: 12px;
}

/* Filter Tabs Styling */
.iom-filter-tabs {
  display: flex;
  gap: 8px;
  padding: 20px 24px;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-wrap: wrap;
}

.iom-filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.iom-filter-tab:hover {
  color: #3b82f6;
  border-color: #3b82f6;
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
}

.iom-filter-tab.active {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.iom-filter-tab.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.iom-filter-tab i {
  font-size: 14px;
}

/* Pagination Styling */
.iom-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-top: 2px solid #e2e8f0;
  background: #f8fafc;
  flex-wrap: wrap;
  gap: 16px;
}

.iom-pagination--enhanced {
  padding: 24px 32px;
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  border-radius: 0 0 12px 12px;
  justify-content: center;
}

.iom-pagination--enhanced .iom-pagination__wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.iom-pagination__info {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.iom-pagination__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.iom-pagination__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  color: #0133a0;
  background: #ffffff;
  border: 2px solid #0133a0;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  min-width: 100px;
  justify-content: center;
}

.iom-pagination__button:hover:not(.iom-pagination__button--disabled) {
  background: #0133a0;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.3);
}

.iom-pagination__button--disabled {
  color: #cbd5e1;
  border-color: #e2e8f0;
  background: #f1f5f9;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.6;
}

.iom-pagination__button--disabled:hover {
  transform: none;
  box-shadow: none;
}

.iom-pagination__button i {
  font-size: 12px;
}

.iom-pagination__pages {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 8px;
}

.iom-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  background: #ffffff;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.iom-pagination__page:hover {
  background: #f8fafc;
  border-color: #0133a0;
  color: #0133a0;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(1, 51, 160, 0.15);
}

.iom-pagination__page--active {
  background: linear-gradient(135deg, #0133a0 0%, #015dd1 100%);
  color: #ffffff;
  border-color: #0133a0;
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.25);
  cursor: default;
  pointer-events: none;
}

.iom-pagination__page--active:hover {
  transform: none;
  box-shadow: 0 4px 12px rgba(1, 51, 160, 0.25);
}

.iom-pagination__ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: #94a3b8;
  user-select: none;
}

.iom-pagination__current {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  padding: 0 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .iom-pagination--enhanced {
    padding: 20px 16px;
  }

  .iom-pagination--enhanced .iom-pagination__wrapper {
    gap: 6px;
  }

  .iom-pagination__button {
    padding: 8px 14px;
    font-size: 13px;
    min-width: 80px;
  }

  .iom-pagination__page {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }

  .iom-pagination__ellipsis {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .iom-pagination__pages {
    margin: 0 4px;
  }
}

/* Responsive Pagination */
@media (max-width: 768px) {
  .iom-pagination {
    flex-direction: column;
    align-items: stretch;
  }
  
  .iom-pagination__info {
    text-align: center;
  }
  
  .iom-pagination__controls {
    justify-content: center;
  }
  
  .iom-filter-tabs {
    padding: 16px;
  }
  
  .iom-filter-tab {
    flex: 1;
    justify-content: center;
  }
}

/* Upload Document Styles */
.iom-upload-document-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.iom-upload-status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.iom-upload-success {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f0fdf4;
  border: 1px solid #86efac;
  border-radius: 6px;
  color: #166534;
  font-size: 14px;
}

.iom-upload-success i.fa-check-circle {
  color: #22c55e;
  font-size: 16px;
}

.uploaded-file-name {
  font-weight: 500;
  flex: 1;
}

.view-document-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #3b82f6;
  text-decoration: none;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.view-document-link:hover {
  background: #eff6ff;
  color: #2563eb;
}

.btn-remove-document {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  color: #dc2626;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-remove-document:hover {
  background: #fecaca;
  border-color: #f87171;
  color: #b91c1c;
  transform: scale(1.1);
}

.btn-remove-document:active {
  transform: scale(0.95);
}

.btn-remove-document.loading {
  cursor: wait;
  opacity: 0.7;
}

.btn-remove-document.loading i {
  animation: spin 1s linear infinite;
}

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

.iom-upload-error {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  color: #991b1b;
  font-size: 14px;
}

.iom-upload-error i {
  color: #ef4444;
  font-size: 16px;
}

.upload-error-message {
  flex: 1;
}

