:root {
  --nvx-ca-navy: #073858;
  --nvx-ca-blue: #0788df;
  --nvx-ca-ink: #0c2f49;
  --nvx-ca-muted: #698096;
  --nvx-ca-line: #d6e5ef;
  --nvx-ca-soft: #f3f8fc;
  --nvx-ca-orange: #f47721;
}

html.nvx-ca-open,
html.nvx-ca-open body { overflow: hidden !important; }

#nvx-ca-launcher[hidden] { display: none !important; }

#nvx-ca-launcher {
  position: fixed;
  z-index: 2147483000;
  top: 13px;
  right: 326px;
  height: 46px;
  min-width: 154px;
  padding: 0 14px;
  border: 1px solid #cfe1ec;
  border-radius: 13px;
  background: #fff;
  color: var(--nvx-ca-navy);
  box-shadow: 0 8px 26px rgba(7, 56, 88, .12);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 700 13px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
#nvx-ca-launcher:hover { transform: translateY(-1px); border-color: #77b9df; box-shadow: 0 10px 30px rgba(7, 56, 88, .2); }
.nvx-ca-launch-icon { font-size: 20px; color: var(--nvx-ca-blue); }
#nvx-ca-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #e33737;
  color: #fff;
  font-size: 10px;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(227, 55, 55, .35);
}

#nvx-ca-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483100;
  padding: 18px;
  background: rgba(3, 25, 41, .58);
  backdrop-filter: blur(8px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--nvx-ca-ink);
}
#nvx-ca-overlay[hidden] { display: none !important; }
.nvx-ca-panel {
  width: min(1540px, 100%);
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  background: #f7fbfe;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 24px;
  box-shadow: 0 30px 100px rgba(0, 22, 38, .35);
}
.nvx-ca-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 28px 20px;
  background: linear-gradient(135deg, #fff 0%, #f3f9fd 64%, #e9f5fc 100%);
  border-bottom: 1px solid var(--nvx-ca-line);
}
.nvx-ca-eyebrow { margin: 0 0 5px; color: var(--nvx-ca-blue); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.nvx-ca-header h1 { margin: 0; color: var(--nvx-ca-navy); font-size: clamp(25px, 2.4vw, 38px); line-height: 1.1; letter-spacing: -.035em; }
.nvx-ca-subtitle { margin: 7px 0 0; color: var(--nvx-ca-muted); font-size: 14px; }
.nvx-ca-head-actions { display: flex; align-items: center; gap: 8px; }
#nvx-ca-sync-time { white-space: nowrap; padding: 7px 10px; border-radius: 999px; background: #e9f7ef; color: #24824d; font-size: 11px; font-weight: 800; }
.nvx-ca-icon-btn {
  width: 42px; height: 42px; border: 1px solid var(--nvx-ca-line); border-radius: 12px; background: #fff; color: var(--nvx-ca-navy);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.nvx-ca-icon-btn:hover { background: #eef7fc; border-color: #9ccbe7; }
.nvx-ca-icon-btn.spinning { animation: nvx-ca-spin 1s linear infinite; }
@keyframes nvx-ca-spin { to { transform: rotate(360deg); } }

.nvx-ca-controls {
  display: flex;
  align-items: end;
  gap: 10px;
  padding: 14px 20px;
  background: #fff;
  border-bottom: 1px solid var(--nvx-ca-line);
  overflow-x: auto;
}
.nvx-ca-controls label { display: grid; gap: 5px; min-width: 132px; color: #587086; font-size: 10px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nvx-ca-controls input {
  height: 40px; box-sizing: border-box; padding: 0 11px; border: 1px solid #cbdde8; border-radius: 10px; background: #fbfdff; color: var(--nvx-ca-ink);
  outline: none; font: 650 13px/1 Inter, ui-sans-serif, system-ui, sans-serif; text-transform: none; letter-spacing: normal;
}
.nvx-ca-controls input:focus { border-color: var(--nvx-ca-blue); box-shadow: 0 0 0 3px rgba(7, 136, 223, .1); background: #fff; }
.nvx-ca-employee-filter { min-width: 210px !important; }
.nvx-ca-search-filter { flex: 1 0 230px; }
.nvx-ca-presets { display: flex; flex: 0 0 auto; gap: 5px; padding: 4px; border-radius: 12px; background: #edf5fa; }
.nvx-ca-presets button, .nvx-ca-tabs button {
  border: 0; background: transparent; color: #587086; font-weight: 800; cursor: pointer;
}
.nvx-ca-presets button { height: 32px; padding: 0 10px; border-radius: 8px; font-size: 11px; white-space: nowrap; }
.nvx-ca-presets button.active { background: #fff; color: var(--nvx-ca-navy); box-shadow: 0 2px 10px rgba(7, 56, 88, .1); }
.nvx-ca-primary, .nvx-ca-secondary {
  height: 40px; padding: 0 18px; border-radius: 10px; font-weight: 850; cursor: pointer; white-space: nowrap;
}
.nvx-ca-primary { border: 1px solid var(--nvx-ca-navy); background: var(--nvx-ca-navy); color: #fff; }
.nvx-ca-primary:hover { background: #0c4d74; }
.nvx-ca-primary:disabled, .nvx-ca-secondary:disabled { opacity: .55; cursor: wait; }
.nvx-ca-secondary { border: 1px solid #a8cbdf; background: #fff; color: var(--nvx-ca-navy); }
.nvx-ca-secondary:hover { background: #eaf6fc; }

.nvx-ca-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  background: #fff;
  border-bottom: 1px solid var(--nvx-ca-line);
  overflow-x: auto;
}
.nvx-ca-tabs button { padding: 10px 14px; border-radius: 10px; font-size: 12px; white-space: nowrap; }
.nvx-ca-tabs button.active { background: #e8f5fc; color: #0677bc; }
.nvx-ca-tabs button span { display: inline-block; min-width: 18px; margin-left: 5px; padding: 2px 5px; border-radius: 999px; background: rgba(7, 56, 88, .08); font-size: 9px; }
.nvx-ca-tabs button[data-view="attention"] { color: #a74a16; }
.nvx-ca-tabs button[data-view="attention"].active { background: #fff1e7; color: #b34b12; }

.nvx-ca-content { overflow: auto; padding: 12px 22px 26px; outline: none; scroll-behavior: smooth; }
.nvx-ca-day { max-width: 1230px; margin: 0 auto 22px; }
.nvx-ca-day-title { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; padding: 9px 2px 7px; background: rgba(247, 251, 254, .96); backdrop-filter: blur(6px); }
.nvx-ca-day-title h2 { margin: 0; color: var(--nvx-ca-navy); font-size: 15px; }
.nvx-ca-day-title span { color: #7890a4; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.nvx-ca-day-events { display: grid; gap: 9px; }
.nvx-ca-card {
  position: relative;
  display: grid;
  grid-template-columns: 5px minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #d6e5ee;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(6, 49, 77, .045);
}
.nvx-ca-card:hover { border-color: #a9cfe4; box-shadow: 0 8px 24px rgba(6, 49, 77, .09); }
.nvx-ca-card.attention { border-color: #f3c7a9; background: linear-gradient(90deg, #fffaf6, #fff 34%); }
.nvx-ca-card-rail.lead { background: #0b8bd9; }
.nvx-ca-card-rail.project { background: #7255d9; }
.nvx-ca-card.attention .nvx-ca-card-rail { background: var(--nvx-ca-orange); }
.nvx-ca-card-main { min-width: 0; padding: 11px 13px 10px; }
.nvx-ca-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nvx-ca-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.nvx-ca-chip, .nvx-ca-status, .nvx-ca-warning, .nvx-ca-entity-id { display: inline-flex; align-items: center; min-height: 22px; padding: 0 8px; border-radius: 999px; font-size: 9px; font-weight: 900; letter-spacing: .035em; }
.nvx-ca-chip.lead { background: #e4f5ff; color: #0578bc; }
.nvx-ca-chip.project { background: #eee9ff; color: #6041bd; }
.nvx-ca-entity-id { background: #edf3f7; color: #3d596d; }
.nvx-ca-status { background: #ecf7ef; color: #2c7c4e; }
.nvx-ca-warning { background: #fff0e5; color: #b64e13; }
.nvx-ca-card-top time { white-space: nowrap; color: #7c91a3; font-size: 10px; font-weight: 750; }
.nvx-ca-card h3 { margin: 6px 0 3px; color: var(--nvx-ca-navy); font-size: 14px; line-height: 1.35; }
.nvx-ca-card h3 span { color: #4f687b; font-weight: 700; }
.nvx-ca-summary { margin: 0; color: #203e54; font-size: 13px; font-weight: 650; line-height: 1.5; white-space: pre-line; }
.nvx-ca-details { margin: 4px 0 0; color: #6a8194; font-size: 11px; line-height: 1.45; white-space: pre-line; }
.nvx-ca-meta-row { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #4a6478; font-size: 10px; }
.nvx-ca-avatar { width: 25px; height: 25px; display: inline-grid; place-items: center; border-radius: 8px; background: #e5f2f9; color: #0876b6; font-weight: 900; }
.nvx-ca-meta-row > span:nth-child(2) { display: flex; align-items: baseline; gap: 5px; }
.nvx-ca-meta-row small { color: #8da0af; font-size: 9px; }
.nvx-ca-context { max-width: 720px; margin-left: 10px; padding-left: 12px; border-left: 1px solid #dbe7ee; color: #72899b; line-height: 1.45; white-space: pre-line; }
.nvx-ca-next-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.nvx-ca-next-grid > div { min-width: 160px; max-width: 430px; padding: 8px 10px; border-radius: 9px; background: #f1f7fa; }
.nvx-ca-next-grid > div.problem { background: #fff0e8; }
.nvx-ca-next-grid span { display: block; margin-bottom: 2px; color: #7a8fa0; font-size: 8px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.nvx-ca-next-grid strong { color: #385267; font-size: 10px; line-height: 1.4; white-space: pre-line; }
.nvx-ca-next-grid .problem strong { color: #a44818; }
.nvx-ca-card-actions { display: flex; justify-content: flex-end; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e7eff4; }
.nvx-ca-view-details {
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid #9ecce5;
  border-radius: 9px;
  background: #eef8fd;
  color: #066da9;
  font: 850 10px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.nvx-ca-view-details:hover { border-color: #0788df; background: #0788df; color: #fff; }
.nvx-ca-view-details:focus-visible { outline: 3px solid rgba(7, 136, 223, .22); outline-offset: 2px; }

.nvx-ca-empty, .nvx-ca-loading { min-height: 360px; display: grid; place-content: center; justify-items: center; text-align: center; color: #72899a; }
.nvx-ca-empty-icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 17px; background: #e9f5fb; color: #0583d2; font-size: 26px; font-weight: 900; }
.nvx-ca-empty.error .nvx-ca-empty-icon { background: #fff0e8; color: #c55118; }
.nvx-ca-empty h2 { margin: 14px 0 5px; color: var(--nvx-ca-navy); font-size: 20px; }
.nvx-ca-empty p { margin: 0; max-width: 520px; font-size: 13px; }
.nvx-ca-loading { grid-template-columns: repeat(3, 9px); gap: 6px; }
.nvx-ca-loading i { width: 9px; height: 9px; border-radius: 50%; background: #178bd1; animation: nvx-ca-bounce .9s infinite alternate; }
.nvx-ca-loading i:nth-child(2) { animation-delay: .15s; }.nvx-ca-loading i:nth-child(3) { animation-delay: .3s; }
.nvx-ca-loading p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 12px; font-weight: 700; }
@keyframes nvx-ca-bounce { to { transform: translateY(-8px); opacity: .45; } }
.nvx-ca-footer { min-height: 52px; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 22px; border-top: 1px solid var(--nvx-ca-line); background: #fff; color: #7d92a3; font-size: 10px; font-weight: 700; }

.nvx-ca-detail-drawer {
  position: fixed;
  inset: 30px;
  z-index: 2147483150;
  width: min(1460px, calc(100vw - 60px));
  height: calc(100vh - 60px);
  margin: auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 22px;
  background: #f4f9fc;
  box-shadow: 0 34px 110px rgba(0, 21, 36, .48);
}
.nvx-ca-detail-drawer[hidden] { display: none !important; }
.nvx-ca-detail-header {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--nvx-ca-line);
  background: linear-gradient(135deg, #fff 0%, #f3f9fd 62%, #e6f4fb 100%);
}
.nvx-ca-detail-back {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b9d7e8;
  border-radius: 10px;
  background: #fff;
  color: var(--nvx-ca-navy);
  font: 850 11px/1 Inter, ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.nvx-ca-detail-back:hover { border-color: #0788df; background: #eef8fd; }
.nvx-ca-detail-heading { min-width: 0; }
.nvx-ca-detail-heading > p { margin: 0 0 3px; color: #0788df; font-size: 9px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.nvx-ca-detail-heading h2 { margin: 0; overflow-wrap: anywhere; color: var(--nvx-ca-navy); font-size: clamp(20px, 2.3vw, 31px); line-height: 1.12; letter-spacing: -.025em; }
#nvx-ca-detail-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
#nvx-ca-detail-badges > span {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf3f7;
  color: #476175;
  font-size: 9px;
  font-weight: 850;
}
#nvx-ca-detail-badges .nvx-ca-detail-module.lead { background: #e4f5ff; color: #0578bc; }
#nvx-ca-detail-badges .nvx-ca-detail-module.project { background: #eee9ff; color: #6041bd; }
#nvx-ca-detail-badges .status { background: #e8f7ed; color: #267a49; }
.nvx-ca-detail-body { min-height: 0; overflow: auto; padding: 18px 22px 42px; scroll-behavior: smooth; }
.nvx-ca-detail-overview,
.nvx-ca-detail-section {
  width: min(1240px, 100%);
  box-sizing: border-box;
  margin: 0 auto 14px;
  overflow: hidden;
  border: 1px solid #d4e5ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(6, 49, 77, .055);
}
.nvx-ca-detail-section-title {
  min-height: 58px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 15px;
  border-bottom: 1px solid #e0ebf2;
  background: #f9fcfe;
}
.nvx-ca-detail-section-title p { margin: 0 0 2px; color: #788fa2; font-size: 8px; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.nvx-ca-detail-section-title h3 { margin: 0; color: var(--nvx-ca-navy); font-size: 15px; }
.nvx-ca-detail-section-title > span { padding: 5px 8px; border-radius: 999px; background: #e9f5fb; color: #0876b6; font-size: 9px; font-weight: 900; }
.nvx-ca-detail-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: #e6eef3;
}
.nvx-ca-detail-field {
  min-width: 0;
  padding: 10px 12px;
  background: #fff;
}
.nvx-ca-detail-field > span { display: block; margin-bottom: 4px; color: #73899b; font-size: 8px; font-weight: 900; letter-spacing: .065em; text-transform: uppercase; }
.nvx-ca-detail-field > strong { display: block; overflow-wrap: anywhere; color: #27465b; font-size: 11px; line-height: 1.45; white-space: pre-wrap; }
.nvx-ca-detail-fields.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; background: transparent; }
.nvx-ca-detail-fields.compact .nvx-ca-detail-field { padding: 9px 10px; border: 1px solid #e4edf3; border-radius: 9px; background: #fbfdff; }
.nvx-ca-detail-history { display: grid; gap: 7px; padding: 10px; }
.nvx-ca-detail-history-item { overflow: hidden; border: 1px solid #dbe8f0; border-radius: 11px; background: #fff; }
.nvx-ca-detail-history-item[open] { border-color: #a8cfe4; box-shadow: 0 4px 14px rgba(7, 71, 110, .06); }
.nvx-ca-detail-history-item > summary {
  min-height: 52px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  list-style: none;
  cursor: pointer;
}
.nvx-ca-detail-history-item > summary::-webkit-details-marker { display: none; }
.nvx-ca-detail-history-copy { min-width: 0; display: grid; gap: 3px; }
.nvx-ca-detail-history-copy strong { overflow-wrap: anywhere; color: #214158; font-size: 12px; }
.nvx-ca-detail-history-copy small { overflow-wrap: anywhere; color: #70879a; font-size: 10px; line-height: 1.35; }
.nvx-ca-detail-history-item time { color: #6f8799; font-size: 9px; font-weight: 750; white-space: nowrap; }
.nvx-ca-detail-history-item summary i { color: #4385ad; font-size: 16px; font-style: normal; transition: transform .18s ease; }
.nvx-ca-detail-history-item[open] summary i { transform: rotate(180deg); }
.nvx-ca-detail-history-fields { padding: 0 10px 10px; border-top: 1px solid #e7eff4; }
.nvx-ca-detail-history-fields .nvx-ca-detail-fields { margin-top: 10px; }
.nvx-ca-detail-limit { margin: 0; padding: 0 14px 12px; color: #7b91a2; font-size: 9px; }
.nvx-ca-detail-muted { margin: 0; padding: 18px; color: #71889b; font-size: 11px; }
.nvx-ca-media-intro { margin: 0; padding: 11px 15px 0; color: #6c8396; font-size: 10px; }
.nvx-ca-media-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 12px 15px 16px;
}
.nvx-ca-media-open {
  min-width: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 112px minmax(0, 1fr);
  padding: 0;
  border: 1px solid #d8e6ee;
  border-radius: 12px;
  background: #fff;
  color: var(--nvx-ca-ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(6, 49, 77, .045);
}
.nvx-ca-media-open:hover { border-color: #69b1db; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(6, 49, 77, .11); }
.nvx-ca-media-open:focus-visible { outline: 3px solid rgba(7, 136, 223, .24); outline-offset: 2px; }
.nvx-ca-media-thumb { min-width: 0; display: grid; place-items: center; overflow: hidden; background: linear-gradient(145deg, #edf6fb, #f9fcfe); }
.nvx-ca-media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.nvx-ca-media-file-icon { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 15px; background: #e7f4fb; color: #0878bb; font-size: 12px; font-weight: 950; letter-spacing: .06em; }
.nvx-ca-media-file-icon.pdf { background: #ffeded; color: #c63737; }
.nvx-ca-media-file-icon.video { background: #eeeaff; color: #6447c4; }
.nvx-ca-media-file-icon.text { background: #eaf7ed; color: #2e814e; }
.nvx-ca-media-card-copy { min-width: 0; display: grid; align-content: start; gap: 4px; padding: 9px 10px 10px; }
.nvx-ca-media-card-copy strong { overflow: hidden; color: #244359; font-size: 10px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.nvx-ca-media-card-copy small { overflow: hidden; color: #758b9d; font-size: 8px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.nvx-ca-media-card-copy i { color: #0679bd; font-size: 9px; font-style: normal; font-weight: 900; }
.nvx-ca-update-attachments { margin-top: 10px; padding: 10px; border: 1px solid #cde1ec; border-radius: 10px; background: #f5fafc; }
.nvx-ca-update-attachments > p { margin: 0 0 8px; color: #567188; font-size: 9px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.nvx-ca-media-grid.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 7px; padding: 0; }
.nvx-ca-media-grid.compact .nvx-ca-media-open { grid-template-rows: 74px minmax(0, 1fr); border-radius: 9px; }
.nvx-ca-media-grid.compact .nvx-ca-media-card-copy { padding: 7px; }
.nvx-ca-media-grid.compact .nvx-ca-media-card-copy small { display: none; }
.nvx-ca-media-grid.compact .nvx-ca-media-file-icon { width: 43px; height: 43px; border-radius: 12px; font-size: 10px; }
.nvx-ca-detail-no-history {
  width: min(1240px, 100%);
  box-sizing: border-box;
  display: grid;
  gap: 3px;
  margin: 0 auto;
  padding: 16px;
  border: 1px dashed #bcd4e2;
  border-radius: 13px;
  color: #71889b;
  text-align: center;
}
.nvx-ca-detail-no-history strong { color: #31536a; font-size: 12px; }
.nvx-ca-detail-no-history span { font-size: 10px; }
.nvx-ca-detail-loading { min-height: 320px; display: grid; grid-template-columns: repeat(3, 9px); place-content: center; gap: 6px; color: #6d8497; text-align: center; }
.nvx-ca-detail-loading i { width: 9px; height: 9px; border-radius: 50%; background: #178bd1; animation: nvx-ca-bounce .9s infinite alternate; }
.nvx-ca-detail-loading i:nth-child(2) { animation-delay: .15s; }
.nvx-ca-detail-loading i:nth-child(3) { animation-delay: .3s; }
.nvx-ca-detail-loading p { grid-column: 1 / -1; margin: 8px 0 0; font-size: 11px; font-weight: 750; }
.nvx-ca-detail-error { min-height: 320px; display: grid; place-content: center; justify-items: center; color: #71889b; text-align: center; }
.nvx-ca-detail-error > div { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px; background: #fff0e8; color: #c55118; font-size: 25px; font-weight: 900; }
.nvx-ca-detail-error h3 { margin: 13px 0 4px; color: var(--nvx-ca-navy); font-size: 18px; }
.nvx-ca-detail-error p { max-width: 520px; margin: 0; font-size: 11px; }
.nvx-ca-detail-error button { min-height: 36px; margin-top: 12px; padding: 0 15px; border: 0; border-radius: 9px; background: var(--nvx-ca-navy); color: #fff; font-weight: 850; cursor: pointer; }

.nvx-ca-media-viewer {
  position: fixed;
  inset: 42px;
  z-index: 2147483180;
  width: min(1400px, calc(100vw - 84px));
  height: calc(100vh - 84px);
  box-sizing: border-box;
  margin: auto;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid rgba(255, 255, 255, .92);
  border-radius: 20px;
  background: #eef5f9;
  box-shadow: 0 40px 130px rgba(0, 16, 29, .68);
}
.nvx-ca-media-viewer[hidden] { display: none !important; }
.nvx-ca-media-viewer::before { content: ""; position: fixed; inset: 0; z-index: -1; background: rgba(2, 22, 36, .74); backdrop-filter: blur(7px); }
.nvx-ca-media-header {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 19px;
  border-bottom: 1px solid #cddfe9;
  background: #fff;
}
.nvx-ca-media-header > div:first-child { min-width: 0; }
.nvx-ca-media-header p { margin: 0 0 3px; color: #0788df; font-size: 8px; font-weight: 950; letter-spacing: .12em; }
.nvx-ca-media-header h2 { margin: 0; overflow: hidden; color: var(--nvx-ca-navy); font-size: clamp(18px, 2vw, 27px); line-height: 1.18; text-overflow: ellipsis; white-space: nowrap; }
#nvx-ca-media-meta { display: block; margin-top: 5px; color: #6d8497; font-size: 9px; font-weight: 700; }
.nvx-ca-media-actions { display: flex; align-items: center; gap: 8px; }
.nvx-ca-media-original { min-height: 40px; box-sizing: border-box; display: inline-flex; align-items: center; padding: 0 13px; border: 1px solid #a9cde1; border-radius: 10px; background: #f5fbfe; color: #076ea9; font-size: 10px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.nvx-ca-media-original:hover { border-color: #0788df; background: #e8f6fd; }
.nvx-ca-media-body { min-height: 0; overflow: auto; display: grid; grid-template-rows: minmax(0, 1fr) auto; place-items: center; gap: 12px; padding: 18px; }
.nvx-ca-media-image-wrap, .nvx-ca-media-video-wrap { width: 100%; height: 100%; min-height: 0; display: grid; place-items: center; }
.nvx-ca-media-image-wrap img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 8px 28px rgba(0, 30, 50, .15); }
.nvx-ca-media-video-wrap video { max-width: 100%; max-height: 100%; border-radius: 10px; background: #07131b; }
.nvx-ca-media-frame { width: 100%; height: 100%; min-height: 520px; border: 1px solid #cadde8; border-radius: 12px; background: #fff; }
.nvx-ca-media-document-preview { width: min(560px, 100%); box-sizing: border-box; display: grid; justify-items: center; padding: 34px; border: 1px solid #cddfe9; border-radius: 16px; background: #fff; color: #6a8194; text-align: center; box-shadow: 0 12px 38px rgba(0, 34, 55, .09); }
.nvx-ca-media-document-preview > span { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 19px; background: #e8f4fb; color: #0877b8; font-size: 15px; font-weight: 950; letter-spacing: .06em; }
.nvx-ca-media-document-preview h3 { margin: 14px 0 7px; overflow-wrap: anywhere; color: var(--nvx-ca-navy); font-size: 18px; }
.nvx-ca-media-document-preview p { margin: 0; max-width: 430px; font-size: 11px; line-height: 1.55; }
.nvx-ca-media-document-preview a { min-height: 38px; display: inline-flex; align-items: center; margin-top: 15px; padding: 0 15px; border-radius: 9px; background: var(--nvx-ca-navy); color: #fff; font-size: 10px; font-weight: 900; text-decoration: none; }
.nvx-ca-media-purpose { width: min(900px, 100%); box-sizing: border-box; margin: 0; padding: 10px 13px; border: 1px solid #d1e3ed; border-radius: 10px; background: #fff; color: #536d80; font-size: 10px; line-height: 1.5; white-space: pre-line; }
.nvx-ca-media-purpose strong { display: block; margin-bottom: 2px; color: #7a8fa0; font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }

#nvx-ca-toast { position: fixed; z-index: 2147483200; left: 50%; bottom: 30px; transform: translate(-50%, 25px); opacity: 0; pointer-events: none; max-width: min(520px, calc(100vw - 30px)); padding: 12px 18px; border-radius: 12px; background: #082f49; color: #fff; box-shadow: 0 12px 36px rgba(0,0,0,.25); font: 750 12px/1.4 Inter, system-ui, sans-serif; transition: .2s ease; }
#nvx-ca-toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1200px) {
  #nvx-ca-launcher { right: 170px; min-width: 46px; width: 46px; padding: 0; }
  .nvx-ca-launch-text { display: none; }
  .nvx-ca-controls { flex-wrap: wrap; }
  .nvx-ca-search-filter { flex-basis: 300px; }
  .nvx-ca-media-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nvx-ca-media-grid.compact { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #nvx-ca-launcher { top: auto; right: 15px; bottom: 82px; }
  #nvx-ca-overlay { padding: 0; }
  .nvx-ca-panel { border: 0; border-radius: 0; }
  .nvx-ca-header { padding: 16px; }
  .nvx-ca-subtitle { display: none; }
  #nvx-ca-sync-time { display: none; }
  .nvx-ca-controls { display: grid; grid-template-columns: 1fr 1fr; align-items: end; padding: 10px 12px; }
  .nvx-ca-presets, .nvx-ca-employee-filter, .nvx-ca-search-filter { grid-column: 1 / -1; min-width: 0 !important; }
  .nvx-ca-primary { width: 100%; }
  .nvx-ca-tabs { padding: 7px 10px; }
  .nvx-ca-content { padding: 10px 10px 24px; }
  .nvx-ca-day-title { top: 0; }
  .nvx-ca-card { grid-template-columns: 4px minmax(0, 1fr); }
  .nvx-ca-card-top { align-items: flex-start; }
  .nvx-ca-context { display: none; }
  .nvx-ca-footer { padding: 7px 12px; }
  .nvx-ca-detail-drawer { inset: 0; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
  .nvx-ca-detail-header { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .nvx-ca-detail-back { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; }
  .nvx-ca-detail-heading { grid-column: 1; grid-row: 1; }
  .nvx-ca-detail-header > .nvx-ca-icon-btn { grid-column: 2; grid-row: 1; }
  .nvx-ca-detail-body { padding: 10px 10px 28px; }
  .nvx-ca-detail-fields, .nvx-ca-detail-fields.compact { grid-template-columns: 1fr; }
  .nvx-ca-detail-history-item > summary { grid-template-columns: minmax(0, 1fr) auto; }
  .nvx-ca-detail-history-item > summary time { grid-column: 1; }
  .nvx-ca-detail-history-item > summary i { grid-column: 2; grid-row: 1 / span 2; }
  .nvx-ca-media-grid, .nvx-ca-media-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nvx-ca-media-open { grid-template-rows: 90px minmax(0, 1fr); }
  .nvx-ca-media-viewer { inset: 0; width: 100vw; height: 100vh; border: 0; border-radius: 0; }
  .nvx-ca-media-header { padding: 12px; }
  .nvx-ca-media-header h2 { max-width: calc(100vw - 150px); }
  .nvx-ca-media-original { min-height: 36px; padding: 0 9px; }
  .nvx-ca-media-body { padding: 10px; }
  .nvx-ca-media-frame { min-height: 420px; }
}
