﻿/* =======================================================
   TOKENS / BASE
======================================================= */
:root {
  --ix-primary: #8796dd;
  --ix-accent: #23b5aa;
  --ix-ink: #1f2937;
  --ix-muted: #6b7280;
  --ix-line: #e5e7eb;
  --ix-bg: #f7f8fa;

  --ix-card: #ffffff;
  --ix-radius: 16px;
  --ix-shadow: 0 6px 24px rgba(0, 0, 0, 0.06);
  --ix-shadow-hover: 0 10px 30px rgba(0, 0, 0, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  color: var(--ix-ink);
  background: var(--ix-bg);
  margin: 0;
}

.page-wrap {
  margin-top: 0px !important;
  /* padding: 36px 16px !important; */
  padding: 14px 16px !important;
}


/* =======================================================
   HEADER + SEARCH BAR
======================================================= */
.hero {
  background: #e6e6e5;
  background-size: cover;
  width: 100%;
  margin: auto;
  display: none !important;
  position: relative;
}

.tiles-search-dd > .borderdiv > .main-title,
.header h1 {
  text-align: center;
  font-size: 36px;
  font-weight: bold;
  font-family: Neue Montreal;
  margin: 0.67em 0;
}

.search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.select-filters {
  display: flex;
  gap: 10px;
}

.search-row input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--ix-line);
  border-radius: 12px;
  font-size: 16px;
  background: #fff;
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.12);
}


.tiles-search-dd > .borderdiv {
  width: 100%;
  padding: 28px 20px;
}

/* ---- Search row: search + filters in one line ---- */
.search-row {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between; /* spread input/filters on left, count on right */
  flex-wrap: wrap; /* ensures it wraps nicely on small screens */
  margin: 0 auto;
}

.search-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1; /* let it shrink/grow */
}

.search-left input[type="search"] {
  flex: 1; /* search bar takes up remaining width */
  min-width: 240px;
}

/* Let the selects inside this wrapper become grid items */
.select-filters {
  display: contents; /* the two selects inside become siblings of the input in the grid */
}

/* Make the search a little shorter */
.search-row input[type="search"] {
  height: 42px; /* shorter bar */
  padding: 10px 14px;
  font-size: 15px;
}

/* --- Responsive tweaks --- */

/* Medium: if space tight, drop to 3 columns (search + 2 filters), the third wraps below */
@media (max-width: 1100px) {
  .search-row {
    grid-template-columns: minmax(320px, 1fr) auto auto;
  }
}

/* Small: stack search on top; put filters in a neat 2-column grid below */
@media (max-width: 760px) {



  .search-row {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 0px;
  }

  /* restore a real box so we can grid the filters under the search */
  .select-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, auto));
    gap: 10px;
    justify-content: start;
  }

  /* Make sure the standalone #typeSelect sits with them nicely */
  #typeSelect {
    justify-self: start;
  }

}

#ddExportButton {
  width: max-content;
  appearance: none;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 12px;
  padding: 10px 12px 10px 12px;
  background-color: #ccf5f3;
  color: rgba(0, 0, 0, 0.87);
  box-shadow:
    0 2px 1px -1px rgba(0, 0, 0, 0.2),
    0 1px 1px rgba(0, 0, 0, 0.14),
    0 1px 3px rgba(0, 0, 0, 0.12);
  border: none;
  height: 40px;
  padding: 10px 14px;
  font-size: 15px;
}
#ddExportButton:hover {
  background-color: #c4ebe9;
}
.tiles-search-dd > .borderdiv > .search-row > .filters {
  height: 40px;
}

.small {
  font-size: 12px;
}
.filters{
z-index: 0 !important;
}

/* =======================================================
   DATA DICTIONARY TABLE (CLEANED)
   Columns: Term | Type | Customer | Product | Summary
======================================================= */

@media (max-width: 1499px) {
  .filters {
    margin-left: none !important;
  }
  .search-left,
  .search-row {
    display: block !important;
  }

  #searchInput,
  #typeSelect,
  #productSelect,
  #customerSelect,
  .filters,
  #ddExportButton,
  #audSelect {
    margin: 10px 10px 10px 0px;
  }
}

@media (max-width: 1499px) {
  .page-wrap {
    width: 90% !important;
  }
}

@media (width > 1499px) and (width < 2500px) {
  .page-wrap {
    width: 75% !important;
  }
}

@media (width >= 2500px) {
  .page-wrap {
    width: 50% !important;
  }
}

/* Wrapper follows page width */
.dd-table-wrap {
  width: 100%;
  margin: 0px 0px 16px !important;
  background: #fff;
  box-shadow: var(--ix-shadow);
  overflow: hidden;
  border-radius: 0px 0px 4px 4px !important;
  border: 1px solid var(--ix-line);
      border-top: 0;
}
.dd-table {
  width: 100%;
}

/* Sticky header row */
.dd-tr--head {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;

  position: sticky;
  top: 0;
  z-index: 2;

  background: #f6f8fb;
  border-radius: 12px;
  padding: 14px 32px 14px 52px;

  font-size: 13px;
  font-weight: 700;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

/* Body rows as cards, same grid as header */
.dd-tbody {
  display: grid;
  gap: 12px;
  padding: 14px 16px 14px 26px;
}
.dd-tbody .dd-tr.card {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: start;

  background: var(--ix-card);
  border: 1px solid var(--ix-line);
  border-radius: var(--ix-radius);
  padding: 16px;

  transition:
    box-shadow 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
  max-width: 100%;
  min-width: 0;
  grid-template-areas:
    "term type customers products"
    "blank summary summary summary";
}

.dd-tbody .dd-tr.card:focus-within {
  border-color: var(--ix-primary);
  box-shadow:
    0 0 0 3px rgba(135, 150, 221, 0.22),
    var(--ix-shadow);
}

/* Cells */
.dd-td {
  font-size: 14px;
  color: var(--ix-ink);
  max-width: 100%;
}
.dd-td.col-term .title {
  color: #1f3d0c;
  font-family: monospace;
  font-size: 13px;
  white-space: normal; /* allow wrapping */
  overflow: visible; /* no clipping */
  text-overflow: unset; /* disable ellipsis */
  word-break: break-word; /* optional: break long words if needed */
  font-weight: bolder;
}

/* Summary wraps nicely and gets most space */
.dd-td.col-summary {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  line-height: 1.55;
}

.dd-td.col-term {
  grid-area: term;
  padding: 0% 0% 0% 10px;
}
.dd-td.col-type {
  grid-area: type;
}
.dd-td.col-customers {
  grid-area: customers;
}
.dd-td.col-products {
  grid-area: products;
}
.dd-td.col-summary {
  grid-area: summary;
  border-top: 1px solid var(--ix-line);
  padding: 10px 10px 0%;
  margin-top: 10px;
}

/* Stack Type, Customer, Product pills */
.dd-td.col-type,
.dd-td.col-customers,
.dd-td.col-products {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.dd-td.col-type .badge,
.dd-td.col-customers .tag,
.dd-td.col-products .tag {
  width: auto;
  max-width: 100%;
}

/* Product pills color accents */
.audience-api {
  border-color: rgba(23, 162, 184, 0.3);
  background: rgba(23, 162, 184, 0.1);
  color: #0d6a75;
}
.audience-ui {
  border-color: rgba(135, 150, 221, 0.3);
  background: rgba(135, 150, 221, 0.1);
  color: #27317f;
}
.audience-cal {
  border-color: rgba(2, 80, 58, 0.3);
  background: rgba(2, 80, 58, 0.08);
  color: #0f3b30;
}

/* Type pills — base */
.dd-td.col-type .badge {
  font-weight: 600;
  border: 1px solid var(--ix-line);
}

.badge[data-type="dimension"] {
  border-color: rgba(52, 152, 219, 0.45); /* #3498db (blue-cyan) */
  background: rgba(52, 152, 219, 0.12);
  color: #1c4d6e; /* dark cyan-blue text */
}
.badge[data-type="measure"] {
  border-color: rgba(41, 128, 185, 0.45); /* deeper blue-cyan */
  background: rgb(185 104 41 / 12%);
  color: #163d5a;
}

/* Hide filtered rows */
#dictList [hidden] {
  display: none !important;
}

/* =======================================================
   RESPONSIVE
======================================================= */
@media (max-width: 1100px) {
  .dd-tr--head,
  .dd-tbody .dd-tr.card {
    grid-template-columns: 20% 20% 20% 25%;
    column-gap: 5%;
  }
}
@media (max-width: 900px) {
.page-wrap {
	width: 100% !important;
}

  .dd-tr--head .col-summary {
    display: none;
  }
  .dd-tr--head,
  .dd-tbody .dd-tr.card {
    grid-template-columns: 20% 20% 20% 25%;
    column-gap: 5%;
  }
  /* .dd-td.col-summary{ display:none; } */
}
@media (max-width: 640px) {
  .dd-tr--head {
    display: none;
  }
  .dd-tbody .dd-tr.card {
    grid-template-columns: 1fr;
    row-gap: 10px;
  }
  /* .dd-td.col-products .tag,
  .dd-td.col-customers .tag {
    margin-bottom: 6px;
  } */
  /* .page-wrap {
    width: 100%;
  } */
  .dd-tbody .dd-tr.card {
    grid-template-areas:
    "term term term"
    "type customers products"
    "summary summary summary";
  }
  .dd-td.col-term {
    border-bottom: 1px solid var(--ix-line);
    padding: 20px 0px 20px 5px;
  }
.dd-td.col-type, .dd-td.col-customers, .dd-td.col-products {
      margin-top: 5px;
      /* align-items: stretch; */
}
ul.navigation > li > ul.openLeft {
  justify-self: center !important; 
  /* left: 0; */
  /* right: 0 */
}
}

/* Below here are the styles for the data dictionary updates - keeping it separate for now */
/* nav.title-bar {
  background: #00132e !important;
} */
/* ul.navigation > li > a {
  color: #ffffff !important;
} */
/* .title-bar a.logo {
  background-image: url("../Images/Assets/Logos/IX_LogoSuite_Primary.svg") !important;
} */
.main-title {
  color: black !important;
  font-weight: bold;
}
.borderdiv {
  padding: 40px 0px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  width: 100% !important;  
}
.tiles-search-dd {
  margin-top: 14px;
  background-color: #fff;
  border-radius: 4px 4px 0px 0px;
  box-shadow: var(--shadow);
  padding: 0px 0px 30px !important;
  /* border-bottom: 1px solid rgba(0, 0, 0, 0.1); */
  border: 1px solid var(--ix-line);
  border-bottom: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin: 14px auto 0px;
  overflow: hidden;
}
.dd-thead {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow);
}
.tiles-search-dd > .borderdiv > .main-title > .meta-bar {
  text-align: center;
}
.meta-bar {
  text-align: center;
  gap: 8px;
  color: var(--ix-muted);
  font-size: 13px;
  display: block;
  flex-wrap: wrap;
  align-items: center;
  /* background-color: #FFFFFF; */
  width:100%;
}
#searchInput {
  box-shadow: none !important;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
  line-height: 1.3;
}
.search-row {
  width: 90%;
  padding: 16px;
  background: #fff;
  margin: 30px auto 0px;
  gap: 15px !important;
}
label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

.search-row input[type="search"] {
  box-shadow: none !important;
}

.dd-tr--head {
  border-radius: 0px !important;
}


div.MCBreadcrumbsBox_0 {
  width: 100% !important;
}
.page-wrap > .meta-bar > .meta-item{
  display: block;
}
#page-wrap > .meta-bar{
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid var(--ix-line);
    box-shadow: var(--shadow);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}