/* === Layout Adjustments === */
#mainContent.main {
    margin-left: auto;
    margin-right: auto;
}

/* === Border and Background Cleanup === */
.crmEntityFormView,
.entitylist,
.modal-content,
.popover-content {
    border: 0;
}

.entity-quick-view {
    border: none;
    background: transparent;
    box-shadow: none;
}

/* === Tab Form Customization === */
/* Hide tab names when using tab forms template */
#mainContent.tab-form .tab-title {
    display: none !important;
}

/* === Quick View Form Styling === */
.entity-quick-view .form-group {
    margin-bottom: 5px;
    padding: 0;
}

.entity-quick-view .label {
    display: none;
}

/* === Private Site Heading === */
.private-site-heading {
    display: none;
}

/* === Program Card Styling === */
.card-body.program-card {
    background-color: #009cde;
    color: #FFFFFF;
}

.card-body p,
.card-body h5 {
    color: white;
}

.card-body h5 {
    font-size: 1.2em;
}

/* === Poll Tags Styling === */
.poll.poll-tags h4 {
    font-family: Arial;
    font-weight: 700;
    font-size: 1.2em;
    color: #000024;
}

/** Hide Hidden form sections **/
.section[data-name="hidden_section"],
.section[data-name="hidden_section_2"],
.section[data-name="hidden_section_3"],
.section[data-name="hidden_section_4"],
.section[data-name="hidden_section_5"],
.section[data-name="hidden_section_6"],
.section[data-name="hidden_section_7"],
.section[data-name="hidden_section_8"],
.section[data-name="hidden_section_9"] {
    display: none !important;
}
/** Hide EIN Org Entry form **/
[aria-label="Enter in Organization Details"] {
    display: none;
}

/*12 September, 2025 start*/
/* Remove border from the outer form wrapper */
.crmEntityFormView {
  border: none;
  box-shadow: none;
  background-color: transparent;
}

/* Remove border from the main form container */
.entity-form.tab-content {
  border: none;
  box-shadow: none;
  background-color: transparent;
}

/* Remove borders from layout cells and sections */
/* .section,
.cell,
.form-control-cell,
.textarea.form-control-cell,
.tab-column,
fieldset {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
} */

/* Optional: remove borders from form controls */
/* .entity-form input,
.entity-form textarea,
.entity-form select {
  border: none !important;
  box-shadow: none !important;
  background-color: transparent !important;
} */

/* Remove border and box-shadow when readonly or disabled */
/*.entity-form textarea[readonly],
.entity-form input[readonly],
.entity-form select[readonly],
.entity-form textarea:disabled,
.entity-form input:disabled,
.entity-form select:disabled {
  border: none;
  box-shadow: none;
  background-color: #ffffff; /* or #f9f9f9 if you want a light gray */
  /*outline: none;
  /* color: #555 !important; optional: make text color less prominent */
  /*cursor: not-allowed; /* optional: show disabled cursor */
/*}

/* Optionally, keep a subtle background for disabled/read-only to indicate state */
.entity-form textarea[readonly], .entity-form textarea:disabled {
  background-color: #ffffff;
}

/* Add spacing below the form action container */
.actions {
  margin-bottom: 48px; /* Adjust this value as needed */
}

/* Optional: ensure spacing below individual buttons */
.actions .btn,
.actions input[type="button"],
.actions input[type="submit"] {
  margin-bottom: 16px;
}

/* Entity List Table Styling */
.entitylist {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #333;
}

/* Header Styling */
.entitylist th {
  font-size: 14px; /* Matches row content */
  font-weight: bold; /* Emphasis */
  text-decoration: none; /* Removes underline */
  /* background-color: #f0f0f0; */
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid #ccc;
}

.entitylist th a {
  text-decoration: none; /* Force removal of underline */
  font-weight: bold;
  font-size: 14px;
  color: inherit;
}

/* Row Styling */
.entitylist td {
  font-size: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

/* Subgrid Table Styling */
/* Target the subgrid's table inside .entity-grid.subgrid */
.entity-grid.subgrid .view-grid table.table.table-striped {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Segoe UI', sans-serif;
  font-size: 14px;
  color: #333;
}

/* Header cells */
.entity-grid.subgrid .view-grid table.table.table-striped th {
  font-size: 14px;
  font-weight: bold;
  text-decoration: none;
  text-align: left;
  padding: 12px;
  border-bottom: 2px solid #ccc;
}

/* Header links */
.entity-grid.subgrid .view-grid table.table.table-striped th a {
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  color: inherit;
}

/* Data cells */
.entity-grid.subgrid .view-grid table.table.table-striped td {
  font-size: 14px;
  padding: 10px 12px;
  border-bottom: 1px solid #e0e0e0;
  vertical-align: top;
}

.entity-grid.subgrid .view-grid table.table.table-striped th:hover {
  text-decoration: underline;
  cursor: pointer; /* optional, for better UX */
}

/*12 September, 2025 end*/

/*15 September, 2025 start*/

/* Hide dash in read-only date fields */
input[readonly] + div.text-muted[aria-hidden="true"],
input[readonly] ~ div.text-muted[aria-hidden="true"] {
    display: none;
}

/* Hide dash next to read-only textarea */

/* Hide all text-muted dashes that follow read-only textareas */
.textarea[readonly] ~ .text-muted[aria-hidden="true"],
.textarea[readonly] + .text-muted[aria-hidden="true"],
textarea[readonly] ~ .text-muted[aria-hidden="true"],
textarea[readonly] + .text-muted[aria-hidden="true"] {
    display: none;
}

/* Remove border, padding, and background from the iframe container */
.browserPreviewFrameBorder.tabletPortraitPreview {
    border: none !important;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: transparent;
}

/* Remove border and shadow from the iframe container */
.browserPreviewFrameBorder,
.browserPreviewFrameContainer,
.browserPreviewContent {
    border: none !important;
    box-shadow: none;
    background-color: transparent;
    padding: 0;
    margin: 0;
}

/* Remove border from the iframe itself */
iframe.browserPreviewFrame {
    border: none !important;
    background-color: transparent;
}

/* Target the iframe and apply background color and remove borders */
iframe.browserPreviewFrame.tabletPortraitPreview {
    background-color: #ffffff; 
    border: none !important;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Optional: Remove styling from the container */
.browserPreviewFrameBorder,
.browserPreviewFrameContainer,
.browserPreviewContent {
    background-color: #ffffff;
    border: none !important;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* Remove border and background when iframe is read-only or disabled */
.browserPreviewFrameBorder[aria-disabled="true"],
.browserPreviewFrameBorder[readonly],
.browserPreviewFrameBorder:has(iframe[aria-disabled="true"]),
.browserPreviewFrameBorder:has(iframe[readonly]) {
  border: none !important;
  background-color: transparent;
  box-shadow: none;
  padding: 0;
  margin: 0;
}

/*15 September, 2025 end*/

/*10 September, 2025 start - For resizing logo*/
.navbar-brand img{
  max-height: 80px;
  height: auto !important;
  width: auto !important;
}

/*10 September, 2025 end - For resizing logo*/

/*16 September, 2025 start*/

.fa-home {
    font-size: 18px;
    margin-right: 5px;
}

/*16 September, 2025 end*/

/*03 December, 2025 start */
/*
.crmEntityFormView,
.entitylist,
.modal-content,
.popover-content {
    border: none
}
    */
/*03 December, 2025 end */

/* Form control focus highlight */
/*10 September, 2025 start */
/* .form-control:focus {  
  border-color: #000 !important;
  outline: 0 !important;
  box-shadow: inset 0 1px 1px rgb(0 0 0 / 8%), 0 0 8px rgb(255, 255, 255) !important;
} */

/* Common editable table start */

/* .stars span {
    font-size: 22px;
    cursor: pointer;
    color: #ccc;
    user-select: none;
  }
  .stars span.active {
    color: #f0ad4e;
  } */
  /* Force Arial across the entire page */
  body,
  #reviewForm,
  #reviewForm * {
    font-family: Arial, Helvetica, sans-serif !important;
  }
  .readonly-field {
  background-color: #f5f5f5;
  cursor: not-allowed;
}

  .is-invalid {
  border-color: #dc3545;
}

.score-input {
  width: 80px;
  margin: 0 auto;
  text-align: center;
}

textarea {
  min-height: 80px;
}
/* Fix Power Pages tab-pane inheritance issue */
  .review-tab {
    background-color: #ffffff !important;
    color: #000000 !important;
  }

  .review-tab * {
    color: #000000 !important;
  }

  /* Table-specific polish */
  .review-table {
  table-layout: fixed;
  width: 100%;
}

.review-table td {
  word-wrap: break-word;
}

 /* Criteria – smaller */
.review-table th:nth-child(1),
.review-table td:nth-child(1) {
  width: 18%;
}

/* Instructions – wider */
.review-table th:nth-child(2),
.review-table td:nth-child(2) {
  width: 32%;
}

/* Score – small like input box */
.review-table th:nth-child(3),
.review-table td:nth-child(3) {
  width: 10%;
  text-align: center;
}

/* Comments – largest */
.review-table th:nth-child(4),
.review-table td:nth-child(4) {
  width: 40%;
}
.review-table thead th {
  background-color: #f0f2f5;   /* light grey */
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}

  .summary-card {
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    text-align: left;   /* <-- left align all cards */
  }
  .summary-card .value {
    font-size: 20px;
    font-weight: bold;
    margin-top: 5px;
  }
.instructions-cell {
  width: 150px;
  min-width: 150px;
  max-width: 150px;
}

/* Textarea styling */
.instructions-textarea {
  width: 100%;
  min-height: 40px;
  resize: vertical;
  border: none;
  outline: none;
  background: transparent;
  padding: 6px;
  font-family: inherit;
  font-size: 14px;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow: hidden;
}
.comments {
  width: 100%;
  min-height: 80px;
  padding: 8px;
  box-sizing: border-box;
}
.ai-response-box {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: #f8f9fa;
  border-left: 4px solid #0d6efd;
}

.ai-field {
  flex: 0 0 160px;
}

.ai-comment {
  flex: 1;
}

.ai-comment textarea {
  min-height: 80px;
  resize: none;
}

.view-ai-btn {
  font-size: 13px;
  color: #0d6efd;
  text-decoration: underline;
}
.action-buttons {
  margin-bottom: 20px; /* space below buttons */
}

/* common editable table end */

/* eligibility question page styling start */

.eligibility-container {
    margin-top: 50px;
}

.program-title {
    margin-bottom: 32px;
}

.question-block {
    margin-bottom: 40px;
}

.question-title {
    font-weight: 400;
    margin-bottom: 15px;
}

.question-description {
    font-size: 0.9rem;
    color: #000000;
    margin-bottom: 20px;
}

/* eligibility question page styling end*/

/* attestation css start */

/* Normalize attestation text to match form labels/text */
#attestationContainer,
#attestationContainer .ck-content,
#attestationContainer p,
#attestationContainer span {
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 1rem !important;
    font-weight: 400 !important;
    color: #000000 !important;
    background: transparent !important;
}
#attestationContainer p {
    margin: 0 0 0.75rem 0 !important;
    line-height: 1.5 !important;
}


/* attestation css end */