form {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px;
    background-color: #FEFEFE;
}

/* Entity form styling */
.entity-form {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #333;
}

/* Form sections */
.entity-form .tab {
    margin-bottom: 20px;
}

.entity-form .section {
    margin-bottom: 30px;
}

.entity-form .cell {
    padding: 8px 0;
}

/* Form labels */
.entity-form .field-label {
    font-size: 14px;
    font-weight: 500;
    color: #4A4A4A;
    margin-bottom: 6px;
}

/* Form inputs */
.entity-form .form-control {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
}

/* Section headings */
.entity-form h2.tab-title {
    font-size: 28px;
    font-weight: 500;
    color: #333;
    margin: 30px 0 20px;
}

/* Section headings */
.entity-form h3.section-title {
    font-size: 20px;
    font-weight: 500;
    color: #4A4A4A;
    margin: 25px 0 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #dee2e6;
}

/* Required field indicators */
.entity-form .required {
    color: #d9534f;
    font-weight: bold;
}


/* 
********************************************************************************
Entity List Styling 
********************************************************************************
*/
/* Base Container Styles */
.entitylist {
    padding: 1rem;
    background: #fff;
  }
  
  /* Grid Toolbar */
  .entitylist .view-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
  }
  
  .entitylist .btn {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
  }
  
  .entitylist .btn-primary {
    background: #0d6efd;
    color: white;
    border: none;
  }
  
  .entitylist .btn-primary:hover {
    background: #0b5ed7;
  }
  
  /* Column Headers */
  .entitylist th {
    padding: 0.75rem;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    font-size: 0.8rem;
    border-bottom: 1px solid #dee2e6;
    background: #fff;
    text-align: left;
  }
  
  /* Link Colors */
  .entitylist td a {
    color: #557f33;  /* Olive green color for links */
    text-decoration: none;
  }
  
  .entitylist td a:hover {
    text-decoration: underline;
  }
  
  /* Table Styles */
  .entitylist .table {
    width: 100%;
    margin-bottom: 1rem;
    background-color: transparent;
  }
  
  .entitylist .table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9;
  }
  
  .entitylist tr {
    border-bottom: 1px solid #dee2e6;
  }
  
  .entitylist td {
    padding: 0.75rem;
    vertical-align: middle;
    color: #333;
  }
  
  /* Action Column */
  .entitylist .dropdown.action {
    text-align: right;
  }
  
  .entitylist .dropdown.action button {
    background: transparent;
    border: none;
    color: #666;
    padding: 0.25rem 0.5rem;
  }
  
  .entitylist .dropdown.action button:hover {
    background: #f8f9fa;
  }
  
  /* Pagination */
  .entitylist .view-pagination {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
  }
  
  .entitylist .pagination {
    display: flex;
    gap: 0.25rem;
    align-items: center;
  }
  
  .entitylist .page-item .page-link {
    padding: 0.375rem 0.75rem;
    color: #666;
    background-color: #fff;
    border: 1px solid #dee2e6;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    min-height: 2rem;
  }
  
  .entitylist .page-item.active .page-link {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
  }
  
  .entitylist .page-item .page-link:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
  }
  
  /* View AI Insights Button */
  .entitylist .aiSummary {
    background: transparent;
    border: 1px solid #0d6efd;
    color: #0d6efd;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.5rem;
  }
  
  .entitylist .aiSummary:hover {
    background: #f8f9fa;
  }
  
  /* Column Sort Indicators */
  .entitylist th[aria-sort] {
    cursor: pointer;
  }
  
  .entitylist th[aria-sort="descending"]::after {
    content: "↓";
    margin-left: 0.5rem;
    opacity: 0.5;
  }
  
  .entitylist th[aria-sort="ascending"]::after {
    content: "↑";
    margin-left: 0.5rem;
    opacity: 0.5;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .entitylist td, 
    .entitylist th {
      padding: 0.5rem;
    }
    
    .entitylist .toolbar-actions {
      flex-direction: column;
      gap: 0.5rem;
    }
  }

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.loading-overlay.active {
  display: flex;
}

.loading-content {
  text-align: center;
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #557f33;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Custom form styling */
.form-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.form-section {
  padding: 1rem;
  margin-bottom: 1.5rem;
  background-color: #f8f9fa;
  border-radius: 0.25rem;
}

.form-section h3 {
  margin-bottom: 1rem;
}

@media (max-width: 576px) {
  .form-section {
    padding: 0.75rem;
  }
  
  .form-group {
    margin-bottom: 0.75rem;
  }
}


/* Custom SSN input styling - with enhanced specificity */
table tr#custom_ssn_row td .control .input-group {
  display: flex !important;
  flex-wrap: nowrap !important;
}

table tr#custom_ssn_row td .input-group input.form-control {
  flex: 1 1 auto !important;
  width: auto !important;
}

table tr#custom_ssn_row td .input-group .btn-primary {
  margin-left: 8px !important;
}

table tr#custom_ssn_row td #ssn_lookup_status {
  margin-top: 5px !important;
  display: block !important;
}

table tr#custom_ssn_row td #ssn_lookup_status.text-success {
  color: #28a745 !important;
}

table tr#custom_ssn_row td #ssn_lookup_status.text-danger {
  color: #dc3545 !important;
}

table tr#custom_ssn_row td #ssn_lookup_status.text-primary {
  color: #007bff !important;
}

/* Add this to ensure our overlay doesn't interfere with the standard portal modals */
#ModalFlyout, #popupContainer, [role="dialog"] {
  z-index: 10000 !important; /* Higher than our overlay */
}

/* Target the specific modal shown in the screenshot */
.powerapps-lookup, .lookup-modal, .entity-lookup {
  z-index: 10000 !important;
}

/* Ensure the modal backdrop doesn't get hidden */
.modal-backdrop {
  z-index: 9998 !important;
}

/* Custom Contact Modal Styling */
#createContactModal .modal-dialog {
  max-width: 800px;
}

#createContactModal .card-header {
  background-color: #f9f9f9;
}

#createContactModal .card-header h5 {
  color: #517D35;
  font-weight: 500;
  margin: 0;
}

#createContactModal .form-label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

#createContactModal .form-label.required:after {
  content: "*";
  color: red;
  margin-left: 3px;
}

#createContactModal #fullname {
  cursor: pointer;
  background-color: #f8f9fa;
}

#createContactModal #fullname:hover {
  background-color: #e9ecef;
}

/* Create New Contact Link */
.create-new-contact-link {
  color: #517D35 !important;
  text-decoration: none !important;
  font-size: 0.9rem !important;
  display: inline-block;
  margin-left: 8px !important;
}

.create-new-contact-link:hover {
  text-decoration: underline !important;
}

/* Contact Confirmation Modal */
#contactConfirmationModal .modal-dialog {
  max-width: 500px;
}

#contactConfirmationModal .icon-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
}

#contactConfirmationModal .fa-question-circle {
  color: #517D35;
}

#contactConfirmationModal .ssn-display {
  background-color: #f8f9fa;
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 10px;
}

#contactConfirmationModal .modal-footer {
  border-top: 1px solid #e9ecef;
  padding: 1rem;
}

#contactConfirmationModal .btn-primary {
  background-color: #517D35;
  border-color: #517D35;
}

#contactConfirmationModal .btn-primary:hover {
  background-color: #3c5c28;
  border-color: #3c5c28;
}

/* Payer Type Toggle Styling */
.payer-type-toggle .btn-group {
  width: 100%;
  max-width: 300px;
}

.payer-type-toggle .btn {
  flex: 1;
  text-align: center;
}

.payer-type-toggle .btn-outline-primary {
  color: #517D35;
  border-color: #517D35;
}

.payer-type-toggle .btn-check:checked + .btn-outline-primary {
  background-color: #517D35;
  border-color: #517D35;
  color: white;
}

.payer-type-toggle .btn-outline-primary:hover {
  background-color: rgba(81, 125, 53, 0.1);
  color: #3c5c28;
}

/* Trophy form completed styles */
.completed-readonly {
    background-color: #f8f9fa;
    cursor: not-allowed;
}

button.disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

/* Dialog styling */
.custom-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.dialog-visible {
  opacity: 1;
  pointer-events: auto;
}

.dialog-closing {
  opacity: 0;
}

.dialog-content {
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  width: 500px;
  max-width: 90%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.dialog-visible .dialog-content {
  transform: scale(1);
}

.dialog-header {
  padding: 15px;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dialog-header h3 {
  margin: 0;
  font-size: 1.25rem;
}

.dialog-close {
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  color: #aaa;
}

.dialog-close:hover {
  color: #000;
}

.dialog-body {
  padding: 15px;
  overflow-y: auto;
  max-height: 60vh;
}

.dialog-footer {
  padding: 15px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Validation error styling */
.validation-error {
  border: 2px solid #dc3545 !important;
  background-color: rgba(220, 53, 69, 0.05) !important;
}

.validation-error:focus {
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-error-dialog .dialog-header {
  border-bottom-color: #dc3545;
}

.validation-error-dialog .dialog-header h3 {
  color: #dc3545;
}

/* Completion dialog styling */
.completion-confirm-dialog .btn-confirm {
  background-color: #28a745;
  border-color: #28a745;
}

.completion-confirm-dialog .btn-confirm:hover {
  background-color: #218838;
  border-color: #1e7e34;
}

/* PDF Modal Styling */
.modal-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 15px;
}

.modal-title-section {
  flex: 1;
}

.modal-controls-section {
  display: flex;
  align-items: center;
}

.modal-controls {
  display: flex;
  align-items: center;
}

#downloadPdf {
  margin-right: 15px;
}

.minimize-btn, .maximize-btn, .close {
  margin-left: 5px;
  cursor: pointer;
  font-size: 18px;
  display: inline-block;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
}

.minimize-btn:hover, .maximize-btn:hover, .close:hover {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
}

/* Modal minimized state */
.modal-minimized {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 4px;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1050;
  min-width: 200px;
}

/* PDF Container */
.pdf-container {
  padding: 15px;
  max-height: 80vh;
  overflow-y: auto;
}

.pdf-page-wrapper {
  margin-bottom: 20px;
  text-align: center;
}

.pdf-page-label {
  margin-bottom: 5px;
  font-size: 14px;
  color: #666;
}

.pdf-page-canvas {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  max-width: 100%;
}

.pdf-error-message {
  padding: 20px;
  text-align: center;
  color: #721c24;
  background-color: #f8d7da;
  border-radius: 4px;
}

/* Floating Toolbar Styles */
.floating-toolbar {
  position: fixed;
  top: 10px;
  right: 10px;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  padding: 10px;
  z-index: 1000;
  display: flex;
  gap: 10px;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
}

.floating-toolbar:hover {
  opacity: 1;
  transform: translateY(2px);
}

.floating-toolbar button {
  min-width: auto;
  padding: 6px 12px;
}

.floating-toolbar button i {
  margin-right: 5px;
}

/* Add responsive behavior for small screens */
@media (max-width: 768px) {
  .floating-toolbar {
    bottom: 10px;
    top: auto;
    right: 10px;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    width: 150px; /* Set a fixed width for the container */
  }
  
  .floating-toolbar button {
    padding: 6px 8px;
    font-size: 0.9rem;
    width: 100%; /* Make all buttons full width of the container */
    margin-bottom: 5px;
    text-align: center;
  }
}

/* Animation for toolbar appearance */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 0.9;
  }
}

.floating-toolbar.show {
  animation: slideIn 0.3s forwards;
}

/* Control Measurement Banner */
.control-measurement-banner {
  background-color: #fff3cd;
  color: #856404;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

.control-measurement-banner .banner-content {
  display: flex;
  align-items: center;
  width: 100%;
}

.control-measurement-banner i {
  font-size: 1.5em;
  margin-right: 10px;
}

.readonly-select {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #e9ecef;
  pointer-events: none;
}

.readonly-select:focus {
  outline: none;
  box-shadow: none;
}

/* Custom CRM Symbol Font replacement */
.crmSymbolFont {
  font-family: "Font Awesome 5 Free";  /* Using Font Awesome as replacement */
  font-weight: 900;  /* Solid style */
  -webkit-font-smoothing: antialiased;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  line-height: 1;
}

/* Replace the existing confirmButtonTick classes with this simpler version */
.confirmButtonTick {
  position: relative;
  padding-left: 8px;
}

.confirmButtonTick::before {
  content: "Bekräfta";
}

/* Update the CRM symbol classes */
.crmSymbolFont.confirmButtonTick::before {
  content: "" !important;
}

.crmSymbolFont.confirmButtonTick {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 30px;
  height: 30px;
  background-color: white;
  border: 2px solid #517D35;
  border-radius: 50%;
  color: #517D35;
  position: relative;
}

.crmSymbolFont.confirmButtonTick::after {
  content: "✓";
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Add hover effect */
.crmSymbolFont.confirmButtonTick:hover {
  background-color: #f8f9fa;  /* Light gray on hover */
  transform: scale(1.1);
}

/* Add focus style for accessibility */
.crmSymbolFont.confirmButtonTick:focus {
  outline: 2px solid #517D35;
  outline-offset: 2px;
}

/* Responsive table view for mobile */
@media (max-width: 768px) {
  /* Container styling */
  .view-grid {
    padding: 0;
    margin: 0;
  }
  
  /* Hide header row */
  .view-grid thead { 
    display: none; 
  }

  /* Make table elements block-level */
  .view-grid table,
  .view-grid tbody {
    display: block;
    width: 100%;
  }
  
  /* Transform rows into cards */
  .view-grid tr {
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.2s ease;
    position: relative;
    padding: 16px; /* Add padding directly to the row */
  }
  
  .view-grid tr:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-2px);
    transition: all 0.2s ease;
  }
  
  /* Remove this problematic pseudo-element that's creating the gray background */
  .view-grid tr::before {
    content: none;
  }
  
  /* Override bootstrap table striping for mobile view */
  .view-grid .bs-table-striped-bg,
  .view-grid tr .bs-table-striped-bg {
    background-color: transparent !important;
  }
  
  /* Stronger override for Bootstrap variables */
  .view-grid tr {
    --bs-table-striped-bg: transparent !important;
  }
  
  /* Target odd rows specifically */
  .view-grid tr:nth-of-type(odd) {
    background-color: white !important;
    --bs-table-striped-bg: transparent !important;
  }
  
  /* Hide all data-th attributes */
  .view-grid td::before {
    display: none;
  }
  
  /* Base styling for all cells */
  .view-grid td {
    display: none; /* Hide all cells by default */
    background-color: transparent; /* Ensure no background color on cells */
    border: none; /* Remove any borders */
  }
  
  /* Trophy ID styling - position in top right */
  .view-grid td[data-attribute="zly_trophynumber"] {
    display: block;
    position: absolute;
    top: 16px;
    right: 16px;
    margin: 0;
    padding: 0;
    font-size: 13px;
    font-family: monospace;
    background: #f7f9f8;
    padding: 2px 6px;
    border-radius: 4px;
    border: none;
    z-index: 2;
  }
  
  .view-grid td[data-attribute="zly_trophynumber"] a {
    color: #517D35;
    font-weight: 600;
    text-decoration: none;
  }
  
  /* Trophy type styling - position as title */
  .view-grid td[data-attribute="zly_trophytype"] {
    display: block;
    position: absolute;
    top: 40px;
    left: 16px;
    margin: 0;
    padding: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    border: none;
  }
  
  /* Date styling - position at bottom with icon */
  .view-grid td[data-attribute="createdon"] {
    display: block;
    position: absolute;
    bottom: 16px;
    left: 16px;
    margin: 0;
    padding: 0;
    color: #666;
    font-size: 14px;
    border: none;
  }
  
  /* Add calendar icon before date */
  .view-grid td[data-attribute="createdon"] time {
    display: flex;
    align-items: center;
  }
  
  .view-grid td[data-attribute="createdon"] time::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='16' height='16'%3E%3Cpath d='M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.2,16.2L11,13V7H12.5V12.2L17,14.9L16.2,16.2Z' fill='%23666666'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
  }
  
  /* Actions dropdown styling */
  .view-grid td:last-child {
    display: block;
    position: absolute;
    top: 10px;
    right: 55px;
    border: none;
    background: transparent;
    padding: 0;
  }
  
  /* Style the dropdown button */
  .view-grid .dropdown.action .btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: 4px;
  }
  
  .view-grid .dropdown.action .btn:hover {
    background: #f5f5f5;
  }
  
  /* Dropdown menu styling */
  .view-grid .dropdown-menu {
    right: 0 !important;
    left: auto !important;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    border-radius: 4px;
    min-width: 120px;
    border: none;
    overflow: hidden;
    z-index: 10;
  }
  
  .view-grid .dropdown-menu .dropdown-item {
    padding: 10px 16px;
    transition: background 0.2s;
    color: #333;
  }
  
  .view-grid .dropdown-menu .dropdown-item:hover {
    background-color: #f5f5f5;
    color: #517D35;
  }
  
  /* Fix card height */
  .view-grid tr {
    min-height: 100px;
    padding-bottom: 45px; /* Space for the date at bottom */
  }
}

/* Mobile responsive layout fixes */
@media (max-width: 768px) {
  /* Fix main content layout */
  #mainContent > div > div > div > div.row.sectionBlockLayout.text-start {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
  }
  
  #mainContent > div > div > div > div.row.sectionBlockLayout.text-start > div {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  
  #mainContent > div > div > div > div.row.sectionBlockLayout.text-start > div > div {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Remove padding/margin from EntityFormPanel */
  .crmEntityFormPanel {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
  }
  
  /* Adjust entity form view */
  .entity-form-view, 
  [id^="EntityFormControl_"] {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
  }
  
  /* Adjust entity form layout */
  .entity-form {
    padding: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }
  
  /* Fix container styling */
  .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-width: 100% !important;
  }
  
  /* Fix column layout */
  .columnBlockLayout {
    padding: 0 !important;
    margin: 0 !important;
    min-width: 100% !important;
  }
  
  /* Ensure all col-* divs take full width on mobile */
  div[class^="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
    padding: 0 !important;
  }
  
  /* Ensure form content has some minimal padding */
  .entity-form .tab,
  .entity-form .section {
    padding: 5px !important;
    margin-bottom: 15px !important;
  }
}