/* Add Font Awesome import */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css");

.unicodeProfileIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f007";
}

.unicodeCalendarIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f133";
}

.unicodeSearchIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f002";
}

.unicodeClearIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f057";
}

.unicodeEditIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f044";
}

/* Add Check icon helper */
.unicodeCheckIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f00c";
}

/* Add Bulk Edit icon helper */
.unicodeBulkEditIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f303";
}

.unicodeDeleteIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f1f8";
}

.unicodeOpenWindowIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f35d";
}

.unicodeSaveIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0c7";
}

/* Pin icon helper */
.unicodePinIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f08d"; /* thumbtack */
}

.unicodeBizClientIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f1ad";
}

.unicodeDeafClientIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2a4";
}

.unicodeUserIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f007";
}

.unicodeLocationIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f3c5";
}

.unicodeContactIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2b9";
}

.unicodeHomeIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f015";
}

.unicodeFolderIt::before, .dropdown-toggle::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f07b";
}

.unicodeHomeItHover::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f015";
}

.unicodeDashboardIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f3fd";
}

.unicodeNotesIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f249";
}

.unicodeAppointmentIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f46d";
}

.unicodeEmailIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0e0";
}

.unicodeLogoutIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f2f5";
}

/* Add Help icon helper */
.unicodeHelpIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f059";
}

/* Add Admin icon helper */
.unicodeAdminIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f013";
}

/* Add Report icon helper */
.unicodeReportIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f080"; /* bar chart icon */
}

/* Dev environment indicator (use to show development environment) */
.unicodeDevIt::before {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  content: "\f0c3"; /* flask icon */
}

/* Optional badge styling to visually flag dev environment */
.devEnvBadge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #c0392b; /* dev red */
  color: #ffffff;
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.devEnvBadge .unicodeDevIt::before {
  margin-right: 0;
}

/* Add spacing between icon and following text */
[class^="unicode"][class$="It"]::before, .dropdown-toggle::before, .logo::before {
  margin-right: 0.5em;
}

.checkBoxListIt {
  list-style: none;
  margin-left: 5px;
}

.checkBoxListIt input {
  display: inline-block;
}

.unlistIt {
  list-style: none;
  margin: 0;
  padding: 0;
}

.accentIt {
  color: var(--primary);
}

.spoiler,
.blurIt {
  filter: blur(0.3125rem);
  transition: filter var(--transition-duration)
    var(--transition-timing-function);
}

.spoiler:hover,
.blurIt:hover {
  filter: none;
}

.roundIt {
  border-radius: var(--border-radius);
}

.centerIt {
  text-align: center;
}

.bulletIt {
  padding: 0.4375rem 1.5625rem 0.4375rem 0.4375rem;
  border-width: 0.3125rem;
  border-style: groove;
  border-color: var(--border-color);
  border-radius: 1.25rem 6.25rem 6.25rem 1.25rem;
}

.underlineIt {
  border-bottom: 0.0625rem solid var(--text-color);
}

.strikeIt {
  text-decoration: line-through;
}

.helpIt {
  cursor: help;
}

.thinIt {
  border: none;
  height: 1px;           /* Thin line */
  background-color: #ccc; /* Light gray */
  margin: 20px 0;  
}

hr {
  border: none;
  height: 1px;           /* Thin line */
  background-color: #999; /* Light gray */
  margin: 20px 0;  
}

.flexRowIt {
  display: flex;
  flex-direction: column;
}

.flexRowIt div.border {
  margin: 0.25rem 0.3rem 0 0;
  padding: 0.25rem;
  padding-left: 0.57rem;
  padding-right: 0.57rem;
  padding-top: 0;
  border: 0.1875rem outset var(--border-color);
  border-top: 0;
  border-bottom: 0;
  border-collapse: collapse;
  text-align: center;
  flex: 1;
  margin: 0 10px;
}

@media (min-width: 768px) {
  .flexRowIt {
    display: flex;
    flex-direction: row;
  }
}

/* Two Column Layout */
.twoCol {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.twoColLeft,
.twoColRight {
  flex: 1;
  padding: 0.9375rem;
  box-sizing: border-box;
}

a[target="_blank"]::after {
  content: " \2197";
  font-size: 0.8em;
  margin-left: 0.25rem;
  color: inherit;
}

/* Reusable loading overlay and spinner */
.loading-container { position: relative; }
.loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.loading-overlay.hidden { display: none; }
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0,0,0,0.08);
  border-left-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.loading-disabled { pointer-events: none; opacity: 0.6; }

/* Segmented button groups inside fieldsets used as icon/button containers.
   Opt-in by adding the `segmented` class to a `container-app-icon` fieldset.
   Use markup like: <fieldset class="container-app-icon segmented"><div class="app-segment">...links...</div><div class="app-segment">...links...</div></fieldset>
*/
.container-app-icon.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-start;
}

.container-app-icon.segmented .app-segment {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 0.5rem;
}

/* Visual separator between segments on larger screens */
.container-app-icon.segmented .app-segment + .app-segment {
  margin-left: 0.5rem;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}

.container-app-icon.segmented .app-icon {
  /* Preserve the site's existing `.app-icon` visual rules (defined in sys_cardsApps.css).
     Only adjust spacing for segmented layout so styles remain consistent. */
  margin: var(--spacing-small);
}

@media (max-width: 767px) {
  .container-app-icon.segmented {
    flex-direction: column;
    gap: 0.5rem;
  }
  .container-app-icon.segmented .app-segment {
    width: 100%;
    padding: 0.5rem 0.5rem;
    border-left: none;
  }
  .container-app-icon.segmented .app-segment + .app-segment {
    border-top: 1px solid var(--border-color);
    margin-left: 0;
    padding-left: 0;
  }
}

/* Pinned assets list - match breadcrumb styles used by getRecentAssets() */
.dashboard-utility-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 0.85fr) minmax(20rem, 1.15fr);
  gap: var(--spacing-base);
  align-items: start;
  margin-bottom: var(--spacing-base);
}

.dashboard-utility-grid .minimizable-section {
  min-width: 0;
  margin-bottom: 0;
}

.dashboard-quick-launch {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  gap: var(--spacing-small);
  padding: 10px;
}

.dashboard-quick-launch .buttonMimic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  margin: 0;
  text-align: center;
}

.dashboard-customize-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: var(--spacing-small);
  margin-bottom: var(--spacing-small);
}

.dashboard-widget-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--spacing-base);
}

.dashboard-widget {
  min-width: 0;
}

.dashboard-widget > .minimizable-section {
  margin-bottom: 0;
}

.dashboard-widget .section-header {
  cursor: grab;
}

.dashboard-widget-layout.is-sorting .section-header {
  cursor: grabbing;
}

.dashboard-widget-layout.layout-locked .section-header {
  cursor: pointer;
}

.dashboard-widget-placeholder {
  min-height: 4rem;
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  background: rgba(var(--color-primary-base), 0.05);
}

.dashboard-widget-control {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px 0;
}

.dashboard-widget-control label {
  margin: 0;
  white-space: nowrap;
}

.dashboard-widget-control select {
  width: auto;
  min-width: 150px;
}

@media (max-width: 900px) {
  .dashboard-utility-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-customize-bar {
    justify-content: flex-start;
  }
}

.access-profile-grid {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(18rem, 1.15fr);
  gap: var(--spacing-base);
  align-items: start;
}

.access-muted {
  color: #666;
  font-size: 0.95rem;
}

.access-checklist,
.access-source-list {
  display: grid;
  gap: 0.5rem;
  margin: 0.5rem 0;
  padding: 0;
  list-style: none;
}

.access-check-row,
.access-source-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--color-bg);
}

.access-check-row {
  justify-content: flex-start;
  cursor: pointer;
}

.access-check-row input {
  margin-top: 0.25rem;
}

.access-check-row span,
.access-source-list li {
  min-width: 0;
}

.access-check-row small,
.access-source-list small {
  display: block;
  margin-top: 0.2rem;
  color: #666;
  overflow-wrap: anywhere;
}

.access-check-row.is-inactive {
  opacity: 0.65;
}

.access-inline-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.75rem;
}

.access-capability-list {
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

@media (max-width: 900px) {
  .access-profile-grid {
    grid-template-columns: 1fr;
  }
}

.pinned-assets { margin-bottom: 0.75rem; }
.pinned-assets h4 { margin: 0 0 0.25rem 0; font-size: 0.95rem; }
.pinned-assets .pinned-list {
  list-style: none;
  padding: 0;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 0.95rem;
}
.pinned-assets .pinned-list li { display: flex; align-items: center; white-space: nowrap; margin-right: 0.75rem; }
.pinned-assets .pinned-list li a { text-decoration: none; color: var(--color-info); padding: 4px 8px; border-radius: var(--border-radius); transition: var(--transition-base); }
.pinned-assets .pinned-list li a:hover { background-color: var(--color-primary); color: var(--color-white); }
