/**
 * User Management Admin Screen Stylesheet
 * 
 * Purpose: Styling for the User Management admin interface
 * Includes: Table layout, controls, buttons, modals, pagination
 * 
 * @package VantageIt
 * @since 2026-06-01
 */

/* ===========================================================================================
   MAIN CONTAINER
   =========================================================================================== */

.rdg-user-management-container {
  padding: 20px;
  background-color: #ffffff;
  border-radius: 8px;
}

/* ===========================================================================================
   BREADCRUMBS
   =========================================================================================== */

.rdg-breadcrumbs {
  padding: 12px 0;
  margin-bottom: 20px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rdg-breadcrumb-link {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.rdg-breadcrumb-link:hover {
  color: #0056b3;
  text-decoration: underline;
}

.rdg-breadcrumb-separator {
  color: #a0aec0;
  font-weight: 400;
}

.rdg-breadcrumb-current {
  color: #718096;
  font-weight: 400;
}

/* ===========================================================================================
   HEADER SECTION
   =========================================================================================== */

.rdg-user-management-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  gap: 20px;
  flex-wrap: wrap;
}

.rdg-um-title-section h2 {
  margin: 0 0 5px 0;
  font-size: 24px;
  color: #1a202c;
  font-weight: 600;
}

.rdg-um-subtitle {
  margin: 0;
  font-size: 14px;
  color: #718096;
}

/* Add User Button */
.rdg-um-btn-add-user {
  background-color: #007bff !important;
  color: white !important;
  border: none !important;
  padding: 10px 20px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: background-color 0.2s ease !important;
  white-space: nowrap !important;
}

.rdg-um-btn-add-user:hover {
  background-color: #0056b3 !important;
}

.rdg-um-btn-add-user:active {
  transform: scale(0.98) !important;
}

/* ===========================================================================================
   CONTROLS SECTION (Search & Filters)
   =========================================================================================== */

.rdg-user-management-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
  align-items: center;
  flex-wrap: wrap;
}

/* Search Box */
.rdg-um-search-box {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  min-width: 250px;
}

.rdg-um-search-box i {
  position: absolute;
  left: 12px;
  color: #cbd5e0;
  pointer-events: none;
  font-size: 14px;
}

.rdg-um-search-input {
  width: 100% !important;
  padding: 10px 12px 10px 38px !important;
  border: 1px solid #c2cbd8 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease !important;
  color: #2d3748 !important;
  height: auto !important;
  line-height: 1.5 !important;
}

.rdg-um-search-input::placeholder {
  color: #cbd5e0 !important;
}

.rdg-um-search-input:focus {
  outline: none !important;
  border-color: #3182ce !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
  background-color: #ffffff !important;
}

/* Filter Controls */
.rdg-um-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.rdg-um-filter-select {
  padding: 10px 30px 10px 12px !important;
  border: 1px solid #c2cbd8 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background-color: white !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  flex: 1 !important;
  min-width: 150px !important;
  color: #4a5568 !important;
  line-height: 1.5 !important;
  appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5568' 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") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 20px !important;
  padding-right: 30px !important;
}

.rdg-um-filter-select:focus {
  outline: none !important;
  border-color: #3182ce !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
}

/* Reset Filters Button */
.rdg-um-btn-reset-filters {
  padding: 10px 15px !important;
  border: 1px solid #c2cbd8 !important;
  border-radius: 6px !important;
  background-color: #f7fafc !important;
  cursor: pointer !important;
  font-size: 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  color: #4a5568 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.rdg-um-btn-reset-filters:hover {
  background-color: #edf2f7 !important;
  border-color: #a0aec0 !important;
  box-shadow: none !important;
}

.rdg-um-btn-reset-filters:active {
  background-color: #e2e8f0 !important;
}

/* Filter Button - HIDDEN */
.rdg-um-btn-filter {
  display: none !important;
  padding: 10px 15px !important;
  border: 1px solid #c2cbd8 !important;
  border-radius: 6px !important;
  background-color: white !important;
  cursor: pointer !important;
  font-size: 14px !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  white-space: nowrap !important;
  color: #4a5568 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.rdg-um-btn-filter:hover {
  background-color: #f7fafc !important;
  border-color: #c2cbd8 !important;
  box-shadow: none !important;
}

/* ===========================================================================================
   TABLE WRAPPER & TABLE STYLES
   =========================================================================================== */

.rdg-user-management-table-wrapper {
  overflow-x: auto;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.rdg-user-management-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
}

/* Table Header */
.rdg-user-management-table thead {
  background-color: #5b5b5b !important;
  border-bottom: 2px solid #e2e8f0;
  position: sticky;
  top: 0;
}

.rdg-user-management-table thead th {
  padding: 15px;
  text-align: left;
  font-weight: bold !important;
  color: white !important;
  font-size: 13px;
  text-transform: none !important;
  letter-spacing: 0.5px;
}

/* Table Body Rows */
.rdg-user-management-table tbody td {
  padding: 15px;
  border-bottom: 1px solid #e2e8f0;
  font-size: 14px;
  color: #2d3748;
}

.rdg-user-management-table tbody tr {
  transition: background-color 0.1s ease;
}

.rdg-user-management-table tbody tr:hover {
  background-color: #e9ecef !important;
}

.rdg-user-management-table tbody tr:last-child td {
  border-bottom: none;
}

/* Table Column Widths */
.rdg-um-col-name {
  width: 18%;
}

.rdg-um-col-email {
  width: 23%;
}

.rdg-um-col-role {
  width: 13%;
}

.rdg-um-col-client-rep {
  width: 8%;
  text-align: center;
}

.rdg-um-col-status {
  width: 11%;
}

.rdg-um-col-login {
  width: 16%;
}

.rdg-um-col-actions {
  width: 10%;
  text-align: center;
}

/* Client Rep Badge Styles */
.rdg-um-client-rep-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: 600;
}

.rdg-um-client-rep-yes {
  /* background-color: #d4edda; */
  color: #155724;
  /* border: 1px solid #c3e6cb; */
}

.rdg-um-client-rep-no {
  /* background-color: #f8d7da; */
  color: #ff0019;
  /* border: 1px solid #f5c6cb; */
}

/* ===========================================================================================
   TABLE CONTENT STYLING
   =========================================================================================== */

/* User Name Cell */
.rdg-um-col-name strong {
  display: block;
  margin-bottom: 5px;
}

/* Client Rep Badge */
.rdg-um-badge-client-rep {
  display: inline-block;
  background-color: #edf2f7;
  color: #2c5282;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  margin-left: 8px;
  text-transform: uppercase;
}

/* Status Badge */
.rdg-um-status-badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  font-size: 12px;
  text-transform: capitalize;
}

.rdg-um-status-badge.rdg-status-active {
  background-color: #198754;
  color: #fff;
}

.rdg-um-status-badge.rdg-status-inactive {
  background-color: #fed7d7;
  color: #742a2a;
}

/* ===========================================================================================
   ACTION BUTTONS
   =========================================================================================== */

.rdg-um-btn-edit,
.rdg-um-btn-more {
  background: none !important;
  border: none !important;
  cursor: pointer !important;
  font-size: 16px !important;
  color: #718096 !important;
  padding: 5px !important;
  margin: 0 3px !important;
  transition: color 0.2s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  text-decoration: none !important;
  line-height: 1 !important;
}

.rdg-um-btn-edit:hover,
.rdg-um-btn-more:hover {
  color: #3182ce !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.rdg-um-btn-edit:active,
.rdg-um-btn-more:active {
  color: #2c5aa0 !important;
  background: none !important;
}

/* ===========================================================================================
   NO RESULTS MESSAGE
   =========================================================================================== */

.rdg-um-no-results {
  text-align: center;
  padding: 40px !important;
  color: #a0aec0;
}

.rdg-um-no-results p {
  margin: 0;
  font-size: 15px;
}

/* ===========================================================================================
   PAGINATION
   =========================================================================================== */

/* Pagination Container (holds info + controls together) */
.rdg-user-management-pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 30px;
  margin-bottom: 80px;
  padding: 20px 5px;
  border-top: 1px solid #e2e8f0;
  gap: 20px;
  flex-wrap: wrap;
  width: 100%;
}

.rdg-user-management-pagination-info {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  font-size: 13px;
  color: #718096;
  padding: 0 5px;
}

.rdg-um-showing {
  font-weight: 500;
}

.rdg-user-management-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

/* Pagination Buttons */
.rdg-um-page-btn {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  font-size: 13px;
  text-decoration: none;
  color: #4a5568;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
}

.rdg-um-page-btn:hover {
  background-color: #edf2f7;
  border-color: #cbd5e0;
  color: #2d3748;
}

.rdg-um-page-btn:active {
  transform: scale(0.95);
}

/* Active Page Button */
.rdg-um-page-btn.rdg-um-page-active {
  background-color: #007bff !important;
  color: white !important;
  border-color: #007bff !important;
  font-weight: 600 !important;
}

.rdg-um-page-btn.rdg-um-page-active:hover {
  background-color: #0056b3 !important;
}

/* Pagination Dots */
.rdg-um-page-dots {
  padding: 0 5px;
  color: #cbd5e0;
  cursor: default;
}

/* Prev/Next Navigation Icons */
.rdg-um-page-prev,
.rdg-um-page-next {
  min-width: 40px;
}

/* ===========================================================================================
   RESPONSIVE DESIGN
   =========================================================================================== */

@media (max-width: 1200px) {
  .rdg-um-col-name {
    width: 17%;
  }
  
  .rdg-um-col-email {
    width: 21%;
  }
  
  .rdg-um-col-role {
    width: 12%;
  }
  
  .rdg-um-col-client-rep {
    width: 8%;
    text-align: center;
  }
  
  .rdg-um-col-status {
    width: 10%;
  }
  
  .rdg-um-col-login {
    width: 14%;
  }
  
  .rdg-um-col-actions {
    width: 8%;
  }
}

@media (max-width: 1024px) {
  .rdg-user-management-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .rdg-user-management-controls {
    flex-direction: column;
    width: 100%;
  }

  .rdg-um-search-box {
    width: 100%;
    min-width: auto;
  }

  .rdg-um-filters {
    width: 100%;
    justify-content: space-between;
  }

  .rdg-um-filter-select {
    flex: 1;
    min-width: 100px;
  }
}

@media (max-width: 768px) {
  .rdg-user-management-container {
    padding: 15px;
  }

  .rdg-user-management-header {
    flex-direction: column;
    align-items: stretch;
    margin-bottom: 20px;
  }

  .rdg-um-btn-add-user {
    width: 100%;
    justify-content: center;
  }

  .rdg-user-management-controls {
    flex-direction: column;
  }

  .rdg-um-search-box {
    width: 100%;
  }

  .rdg-um-filters {
    flex-direction: column;
  }

  .rdg-um-filter-select,
  .rdg-um-btn-filter {
    width: 100%;
  }

  /* Adjust table columns for mobile */
  .rdg-user-management-table thead th,
  .rdg-user-management-table tbody td {
    padding: 10px;
    font-size: 12px;
  }

  .rdg-user-management-table thead th {
    font-size: 11px;
  }

  .rdg-um-col-name,
  .rdg-um-col-email,
  .rdg-um-col-role,
  .rdg-um-col-status,
  .rdg-um-col-login,
  .rdg-um-col-actions {
    width: auto;
  }

  .rdg-um-badge-client-rep {
    display: block;
    margin-left: 0;
    margin-top: 3px;
  }

  .rdg-user-management-pagination {
    margin-top: 20px;
    padding-top: 15px;
  }

  .rdg-um-page-btn {
    padding: 6px 10px;
    font-size: 12px;
    min-width: 32px;
  }
}

/* ===========================================================================================
   UTILITY CLASSES
   =========================================================================================== */

.rdg-alert-warning {
  background-color: #feebc8;
  color: #7c2d12;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #ed8936;
  margin: 20px 0;
}

.rdg-alert-error {
  background-color: #fed7d7;
  color: #742a2a;
  padding: 12px;
  border-radius: 4px;
  border-left: 4px solid #f56565;
  margin: 20px 0;
}

.rdg-alert-success {
  background-color: #198754;
  color: #fff !important;
  padding: 12px;
  border-radius: 4px;
}

/* Modal-specific alert messages */
.rdg-um-form #rdg_um_create_form_message,
.rdg-um-form #rdg_um_edit_form_message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 6px;
  font-weight: 500;
  display: none;
  animation: slideDown 0.3s ease;
}

.rdg-um-form #rdg_um_create_form_message.rdg-alert-error,
.rdg-um-form #rdg_um_edit_form_message.rdg-alert-error {
  background-color: #fed7d7;
  color: #742a2a;
  border-left: 4px solid #f56565;
}

.rdg-um-form #rdg_um_create_form_message.rdg-alert-success,
.rdg-um-form #rdg_um_edit_form_message.rdg-alert-success {
  background-color: #198754;
  color: #fff;
  border-left: 4px solid #0d6e2d;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading States */
.rdg-um-loading {
  opacity: 0.6;
  pointer-events: none;
}

.rdg-um-disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===========================================================================================
   MODAL OVERLAY & CONTAINER
   =========================================================================================== */

.rdg-um-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5) !important;
  z-index: 999 !important;
  animation: rdg-um-fadeIn 0.3s ease !important;
}

.rdg-um-modal-overlay.active {
  display: block !important;
}

.rdg-um-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95) !important;
  z-index: 1000 !important;
  animation: rdg-um-slideIn 0.3s ease !important;
  background-color: transparent !important;
}

.rdg-um-modal.active {
  display: block !important;
}

.rdg-um-modal-content {
  background-color: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
  overflow-y: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  /* Mobile-first: default values for small screens */
  max-width: 90vw !important;
  width: 95% !important;
  max-height: 95vh !important;
}

/* ===========================================================================================
   MODAL HEADER & FOOTER
   =========================================================================================== */

.rdg-um-modal-header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-shrink: 0 !important;
  background-color: #f7fafc !important;
  border-radius: 12px 12px 0 0 !important;
}

.rdg-um-modal-header h3 {
  margin: 0 !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1a202c !important;
}

.rdg-um-modal-close {
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  cursor: pointer !important;
  color: #718096 !important;
  padding: 0 !important;
  margin: -4px -4px 0 0 !important;
  transition: color 0.2s ease !important;
}

.rdg-um-modal-close:hover {
  color: #2d3748 !important;
}

.rdg-um-modal-footer {
  padding: 16px 24px !important;
  border-top: 1px solid #e2e8f0 !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: flex-end !important;
  flex-shrink: 0 !important;
  background-color: #f7fafc !important;
  border-radius: 0 0 12px 12px !important;
}

/* ===========================================================================================
   MODAL FORM STYLES
   =========================================================================================== */

.rdg-um-form {
  padding: 24px !important;
  overflow-y: auto !important;
  flex: 1 !important;
}

.rdg-um-form-group {
  margin-bottom: 18px !important;
  display: flex !important;
  flex-direction: column !important;
}

.rdg-um-form-row {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 15px !important;
  margin-bottom: 18px !important;
}

.rdg-um-form-group label {
  margin-bottom: 6px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  color: #2d3748 !important;
}

.rdg-um-form-input {
  padding: 10px 12px !important;
  border: 1px solid #c2cbd8 !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease !important;
  color: #2d3748 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.rdg-um-form-input:focus {
  outline: none !important;
  border-color: #3182ce !important;
  box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1) !important;
  background-color: #ffffff !important;
}

.rdg-um-form-input.rdg-um-form-readonly {
  background-color: #f7fafc !important;
  cursor: not-allowed !important;
  color: #718096 !important;
}

.rdg-um-form-input::placeholder {
  color: #cbd5e0 !important;
}

.rdg-um-form-error {
  display: block !important;
  margin-top: 4px !important;
  font-size: 12px !important;
  color: #e53e3e !important;
  min-height: 14px !important;
}

.rdg-um-form-note {
  margin: 8px 0 0 0 !important;
  font-size: 12px !important;
  color: #718096 !important;
  padding: 8px 12px !important;
  background-color: #edf2f7 !important;
  border-radius: 4px !important;
  border-left: 3px solid #cbd5e0 !important;
}

/* ===========================================================================================
   CHECKBOX STYLING
   =========================================================================================== */

.rdg-um-form-checkbox {
  margin-bottom: 16px !important;
}

.rdg-um-checkbox-label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
  user-select: none !important;
}

.rdg-um-checkbox-input {
  width: 18px !important;
  height: 18px !important;
  cursor: pointer !important;
  accent-color: #007bff !important;
  flex-shrink: 0 !important;
}

.rdg-um-checkbox-text {
  color: #2d3748 !important;
  font-size: 14px !important;
}

/* ===========================================================================================
   MODAL BUTTONS
   =========================================================================================== */

.rdg-um-btn-cancel,
.rdg-um-btn-submit {
  padding: 10px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  min-width: 100px !important;
}

.rdg-um-btn-cancel {
  background-color: #e2e8f0 !important;
  color: #2d3748 !important;
}

.rdg-um-btn-cancel:hover {
  background-color: #cbd5e0 !important;
}

.rdg-um-btn-cancel:active {
  transform: scale(0.98) !important;
}

.rdg-um-btn-submit {
  background-color: #007bff !important;
  color: white !important;
}

.rdg-um-btn-submit:hover {
  background-color: #0056b3 !important;
}

.rdg-um-btn-submit:active {
  transform: scale(0.98) !important;
}

.rdg-um-btn-submit:disabled {
  background-color: #cbd5e0 !important;
  cursor: not-allowed !important;
  opacity: 0.6 !important;
}

/* ===========================================================================================
   MODAL ANIMATIONS
   =========================================================================================== */

@keyframes rdg-um-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes rdg-um-slideIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

/* ===========================================================================================
   RESPONSIVE MODAL STYLES - SMALL PHONES (320px - 480px)
   =========================================================================================== */

@media (max-width: 480px) {
 .rdg-um-modal {
  width: 80% !important;
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95) !important;
  z-index: 1000 !important;
  animation: rdg-um-slideIn 0.3s ease !important;
  background-color: transparent !important;
  }
  .rdg-um-modal-content {
    max-width: 100% !important;
    max-height: 95vh !important;
    width: 95% !important;
    max-height: 95vh !important;
    border-radius: 16px !important;
  }

  .rdg-um-form-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .rdg-um-modal-header {
    padding: 18px 16px !important;
    border-radius: 16px 16px 0 0 !important;
  }

  .rdg-um-modal-header h3 {
    font-size: 18px !important;
    font-weight: 600 !important;
  }

  .rdg-um-form {
    padding: 18px 16px !important;
  }

  .rdg-um-form-group {
    margin-bottom: 16px !important;
  }

  .rdg-um-form-group label {
    font-size: 13px !important;
    margin-bottom: 6px !important;
    font-weight: 600 !important;
  }

  .rdg-um-form-input {
    padding: 10px 12px !important;
    font-size: 16px !important;
    border-radius: 6px !important;
  }

  .rdg-um-modal-footer {
    padding: 14px 16px !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .rdg-um-btn-submit,
  .rdg-um-btn-cancel {
    width: 100% !important;
    min-width: auto !important;
    padding: 12px 16px !important;
    font-size: 14px !important;
  }

  .rdg-um-checkbox-label {
    gap: 8px !important;
    font-size: 14px !important;
  }

  .rdg-um-form-note {
    font-size: 12px !important;
    padding: 8px 10px !important;
    margin: 6px 0 0 0 !important;
  }
}

/* ===========================================================================================
   RESPONSIVE MODAL STYLES - MEDIUM PHONES (481px - 768px)
   =========================================================================================== */

@media (min-width: 481px) and (max-width: 768px) {
  .rdg-um-modal-content {
    max-width: 100% !important;
    max-height: 95vh !important;
    width: 90% !important;
  }

  .rdg-um-form-row {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }

  .rdg-um-modal-header {
    padding: 18px 20px !important;
  }

  .rdg-um-modal-header h3 {
    font-size: 19px !important;
  }

  .rdg-um-form {
    padding: 20px !important;
  }

  .rdg-um-modal-footer {
    padding: 14px 20px !important;
    flex-direction: column-reverse !important;
    gap: 10px !important;
  }

  .rdg-um-btn-submit,
  .rdg-um-btn-cancel {
    width: 100% !important;
    min-width: auto !important;
  }
}

/* ===========================================================================================
   RESPONSIVE MODAL STYLES - TABLETS & ABOVE (769px+)
   =========================================================================================== */

@media (min-width: 769px) {
  .rdg-um-modal-content {
    max-width: 500px !important;
    width: 90% !important;
    max-height: 85vh !important;
  }
}
