/* =========================================================
   NICE INSIGHT — LIGHT MODE DASHBOARD THEME (BS5)
   File: www/ni_light_theme.css
   Works with: page_fillable() + layout_sidebar()
   ========================================================= */


/* =========================================================
   01. THEME TOKENS
   ========================================================= */

:root{
  --ni-orange-1: #F25D27;
  --ni-orange-2: #FF572F;
  --ni-orange-3: #F58426;

  --ni-ink:      #484F60;
  --ni-bg:       #F7F8F8;
  --ni-panel:    #F2F3F4;
  --ni-line:     rgba(0,0,0,0.08);

  --ni-dark-1:   #1B1B1B;
  --ni-dark-2:   #111111;

  --ni-radius:   12px;
}


/* =========================================================
   02. GLOBAL BASE + SCROLL
   ========================================================= */

html{
  /* prevents width jump when scrollbar appears/disappears */
  scrollbar-gutter: stable;
}

html, body{
  background: var(--ni-bg) !important;
  color: var(--ni-ink);
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;

  overflow-y: scroll !important;
  overscroll-behavior-y: auto !important;

  /* prevent width stretching */
  width: 100%;
  max-width: 100%;
}

.bslib-sidebar-layout{ overflow: visible !important; }

.bslib-sidebar-layout > .main{
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}



/* =========================================================
   03. APP SHELL
   ========================================================= */

.app-shell{
  padding: 14px 14px 0px 14px;
  background: var(--ni-bg);
  min-height: 100vh;

  /* ensures padding doesn't affect width calc */
  box-sizing: border-box;
}

.app-topbar-unified{
  margin-bottom: 20px !important;
}

.bslib-sidebar-layout{
  margin-top: 0 !important;
  padding-top: 0 !important;
  border-top: none !important;
  border-right: none !important;
  border-left: none !important;
  background: var(--ni-bg) !important;
}

.bslib-sidebar-layout > .main{
  padding-top: 25px !important;
  padding-right: 0 !important;

  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;

  border-top: none !important;
  border-right: none !important;
  border-bottom: 1px solid var(--ni-line) !important;
  background: var(--ni-bg) !important;
}

.bslib-sidebar-layout > .sidebar{
  border-top: none !important;
}

.app-shell > .bslib-sidebar-layout{
  border-top: none !important;
  box-shadow: none !important;
}

.app-main{
  padding: 0 !important;
  margin: 0 !important;
  padding-bottom: 0 !important;
  background: var(--ni-bg) !important;
}

.app-main > *:first-child{
  margin-top: 0 !important;
}

.app-main > *{
  margin-right: 0 !important;
}


/* =========================================================
   04. CINEMATIC LOGIN MODAL
   ========================================================= */

/* Prevent Bootstrap modal scrollbar compensation from shifting layout */
body.modal-open{
  padding-right: 0 !important;
  overflow-y: scroll !important;
}

/* Preserve normal right-edge spacing while modal is open */
body.modal-open .app-shell{
  padding-right: 38px !important; /* normal 14px + scrollbar compensation */
}


/* Backdrop */
.modal-backdrop.show{
  opacity: 0.6 !important;
  background-color: #000 !important;
  backdrop-filter: blur(4px);
}

@supports not ((backdrop-filter: blur(1px))) {
  .modal-backdrop.show{ opacity: 0.75 !important; }
}


/* Modal container */
.modal-content{
  background: rgba(0,0,0,0) !important;
  box-shadow: none !important;
  border: none !important;
}

.modal-header{
  background: transparent !important;
  border-bottom: none !important;
  justify-content: center !important;
}

.modal-title{
  color: #FF7700 !important;
  font-size: 1.6em;
  font-weight: 700;
  text-align: center;
}

.modal-body{
  background: transparent !important;
  color: #FF7700 !important;
  display: flex !important;
  flex-direction: column;
  align-items: center !important;
  text-align: center;
  padding: 20px 30px;
}

.modal-body .form-group,
.modal-body .shiny-input-container{
  width: 100%;
  max-width: 280px;
  text-align: left;
}

.modal-body > *{ margin-bottom: 12px; }

.modal-body img{
  max-width: 260px;
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
}


/* Footer */
.modal-footer{
  background: transparent !important;
  border-top: none !important;
  justify-content: center !important;
}

.modal-footer .btn,
.modal-footer .btn-primary{
  background-color: #FF7700 !important;
  border-color: #FF7700 !important;
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
  padding: 8px 16px;
}

.modal-footer .btn:hover,
.modal-footer .btn-primary:hover{
  background-color: #cc5f00 !important;
  border-color: #cc5f00 !important;
}


/* Centering (no flex on .modal itself — important) */
.modal{
  padding-right: 0 !important;
}

.modal-dialog{
  max-width: 520px;
  margin: 1.75rem auto !important;
}

.modal.show .modal-dialog{
  display: flex;
  align-items: center;
  min-height: calc(100vh - 3.5rem);
}


/* Animation */
.modal.fade .modal-dialog{
  transform: scale(0.9);
  opacity: 0.95;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.modal.fade.show .modal-dialog{
  transform: scale(1);
  opacity: 1;
}


/* Interaction control */
.modal-backdrop{ pointer-events: none; }
.modal-backdrop.show{ pointer-events: auto; }



/* =========================================================
   05. TOPBAR — UNIFIED HEADER BAR
   ========================================================= */

.app-topbar-unified{
  position: relative;
  min-height: 64px;
  margin-bottom: 20px !important;
  padding: 0 28px;
  border-radius: 14px;
  background: linear-gradient(90deg, #D94E1F, #F25D27 32%, #F58426 100%);
  border: none;
  box-shadow: 0 12px 28px rgba(242,93,39,0.18);
}

/* LEFT: user/login */
.app-topbar-left{
  position: absolute;
  top: 52%;
  left: 28px;
  transform: translateY(-50%);
  width: 280px;
  display: flex;
  align-items: center;
}

/* CENTER: title */
.app-topbar-center{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  max-width: 760px;
  text-align: center;
}

/* RIGHT: dark mode */
.app-topbar-right{
  position: absolute;
  top: 50%;
  right: 28px;
  transform: translateY(-50%);
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.app-title{
  color: #fff !important;
  font-size: 1.25rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.3px;
  margin: 0;
  white-space: nowrap;
}

.app-theme-label-wrap{
  min-width: 82px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.app-theme-label{
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff !important;
  white-space: nowrap;
}

.app-theme-subtitle{
  font-size: 0.72rem;
  line-height: 1.05;
  opacity: 0.9;
  color: #ffffff !important;
  white-space: nowrap;
}

/* Custom theme toggle */

.ni-theme-toggle{
  position: relative;
  width: 44px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255,255,255,0.35);
  border: 1px solid rgba(255,255,255,0.55);
  cursor: pointer;
  flex: 0 0 auto;
}

.ni-theme-toggle-knob{
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffffff;
  transition: left 0.18s ease;
}

.ni-theme-toggle.is-dark .ni-theme-toggle-knob{
  left: 22px;
}

/* USER CARD */

.app-topbar-left .user-card{
  width: 100% !important;
  height: 54px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}

.app-topbar-left .user-card-body{
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px;
  overflow: visible !important;
}

.user-card-avatar{
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  object-fit: cover !important;
  border-radius: 999px !important;
  flex: 0 0 34px !important;
  display: block !important;
}

.user-card-text{
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  overflow: visible;
}

.user-card-name{
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff !important;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.user-card-title,
.user-card-subtitle{
  font-size: 0.70rem;
  line-height: 1.05;
  color: rgba(255,255,255,0.92) !important;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}



/* =========================================================
   06. SIDEBAR
   ========================================================= */

.app-sidebar,
.sidebar{
  background: var(--ni-panel) !important;
  padding: 16px !important;
  border: 1px solid var(--ni-line) !important;
  border-radius: 14px !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.04) !important;
  overflow: hidden;
}

.sidebar-header{
  padding: 0 2px 18px 2px;
  margin-bottom: 18px;
  border-bottom: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title{
  font-weight: 900;
  font-size: 0.95rem;
  color: rgba(72,79,96,0.75);
  letter-spacing: 0.2px;
  text-transform: uppercase;
  margin: 0;
  line-height: 1;
}

.app-sidebar{
  position: relative;
  padding-top: 80px !important;
}

.app-sidebar .sidebar-title{
  position: absolute;
  top: 35px;
  left: 42px;
  right: 42px;
  padding-bottom: 27px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.bslib-sidebar-layout > .collapse-toggle{
  height: 80px !important;
  min-height: 80px !important;
  display: flex !important;
  align-items: center !important;
}


.sidebar .collapse-toggle,
.sidebar [data-bs-toggle="collapse"],
.sidebar .sidebar-toggle{
  align-self: center !important;
  margin-top: 0 !important;
}

.ni-sidebar-toolbox{
  margin-top: 4px;
}

.ni-sidebar-toolbox-title{
  font-weight: 900;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: rgba(72,79,96,0.70);
  margin-bottom: 8px;
}

.sidebar hr{
  border: 0 !important;
  border-top: 1px solid rgba(0,0,0,0.08) !important;
  margin: 12px 0 !important;
}

.sidebar .nav-pills{
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  align-items: stretch;
}

.sidebar .nav-pills .nav-link{
  display: flex !important;
  align-items: center;
  justify-content: flex-start;
  width: 100% !important;
  padding: 10px 14px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(0,0,0,0.06) !important;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ni-ink) !important;
  white-space: nowrap;
  transition: none !important;
}

.sidebar .nav-pills .nav-link:hover{
  border-color: rgba(242,93,39,0.35) !important;
  background: rgba(242,93,39,0.06) !important;
}

.sidebar .nav-pills .nav-link.active{
  background: linear-gradient(90deg, var(--ni-orange-1), var(--ni-orange-3)) !important;
  border-color: var(--ni-orange-1) !important;
  color: #ffffff !important;
  box-shadow:
    inset 3px 0 0 var(--ni-orange-1),
    0 6px 16px rgba(242,93,39,0.25);
}

.sidebar .nav-pills .nav-link i{
  width: 18px;
  text-align: center;
  margin-right: 6px;
}

.sidebar, .sidebar *{
  transition: none !important;
  animation: none !important;
}

/* WIP badges */

.ni-nav-link-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.ni-nav-link-left{
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0;
}

.ni-nav-badge-wip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-width: 34px;
  height: 20px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(242,93,39,0.22);
  background: rgba(242,93,39,0.10);
  color: var(--ni-orange-1) !important;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.45px;
  line-height: 1;
  text-transform: uppercase;
}

.sidebar .nav-pills .nav-link.active .ni-nav-badge-wip{
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.28);
  color: #ffffff !important;
}


/* =========================================================
   07. CARDS + ACCORDIONS + TABS
   ========================================================= */

.card{
  border-radius: var(--ni-radius) !important;
  border: 1px solid var(--ni-line) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  background: #fff;
}

.card-header{
  background: linear-gradient(180deg, var(--ni-dark-1), var(--ni-dark-2)) !important;
  color: #fff !important;
  border-bottom: none !important;
  font-weight: 800 !important;
  position: relative;
  padding: 12px 14px !important;
}

.card-header::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--ni-orange-1);
}

.card-header *{ color: #fff !important; }

.accordion-item{
  border-radius: var(--ni-radius) !important;
  overflow: hidden;
  border: 1px solid var(--ni-line) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important;
  background: #fff !important;
  margin-bottom: 14px;
}

.accordion-button{
  background: linear-gradient(180deg, var(--ni-dark-1), var(--ni-dark-2)) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 12px 14px !important;
  box-shadow: inset 0 -3px 0 var(--ni-orange-1) !important;
}

.accordion-button::after{ filter: invert(1) brightness(2); }

.accordion-body{
  background: #fff !important;
  padding: 14px !important;
}

.nav-tabs{
  border-bottom: 1px solid var(--ni-line) !important;
}

.nav-tabs .nav-link{
  font-weight: 800;
  color: var(--ni-ink) !important;
  border: none !important;
  border-bottom: 3px solid transparent !important;
}

.nav-tabs .nav-link.active{
  color: var(--ni-orange-1) !important;
  border-bottom-color: var(--ni-orange-1) !important;
  background: transparent !important;
}


/* =========================================================
   08. FORMS + CONTROLS
   ========================================================= */

.form-control{
  border-radius: 8px !important;
  border: 1px solid var(--ni-line) !important;
}

.form-control:focus{
  border-color: rgba(242,93,39,0.6) !important;
  box-shadow: 0 0 0 0.2rem rgba(242,93,39,0.18) !important;
}

.form-check-input:checked{
  background-color: var(--ni-orange-1) !important;
  border-color: var(--ni-orange-1) !important;
}

.form-check-input:focus{
  border-color: var(--ni-orange-1) !important;
  box-shadow: 0 0 0 0.2rem rgba(242,93,39,0.25) !important;
}

.form-check-input:checked + .form-check-label{
  color: var(--ni-orange-1) !important;
  font-weight: 700;
}

.shiny-input-container .checkbox input:checked,
.shiny-input-container .checkbox-inline input:checked,
.shiny-input-container .radio input:checked,
.shiny-input-container .radio-inline input:checked{
  background-color: var(--ni-orange-1) !important;
  border-color: var(--ni-orange-1) !important;
}

.shiny-input-container .checkbox input:focus,
.shiny-input-container .checkbox-inline input:focus,
.shiny-input-container .radio input:focus,
.shiny-input-container .radio-inline input:focus{
  border-color: var(--ni-orange-1) !important;
  box-shadow: 0 0 0 0.2rem rgba(242,93,39,0.25) !important;
}

.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-handle-on{
  background: var(--ni-orange-1) !important;
  border-color: var(--ni-orange-1) !important;
  color: #fff !important;
}


/* =========================================================
   09. CHECKBOXGROUP ALL/NONE ACTIONS
   ========================================================= */

.ni-checkgroup-wrap{
  position: relative;
  --ni-actions-left: 92px;
  --ni-actions-top: calc(1.25rem + 6px);
}

.ni-checkgroup-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom: 2px;
}

.ni-checkgroup-label{ font-weight: 800; }

.ni-checkgroup-wrap .shiny-options-group{
  padding-left: var(--ni-actions-left);
}

.ni-checkgroup-actions{
  position: absolute;
  left: 0;
  top: var(--ni-actions-top);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  margin: 0 !important;
}

.ni-checkgroup-actions a{
  font-weight: 800;
  text-decoration: none;
  color: var(--ni-orange-1);
}

.ni-checkgroup-actions a:hover{
  text-decoration: underline;
}


/* =========================================================
   DATATABLES — CLEAN + TIGHT SPACING
   ========================================================= */

/* Base table */
table.dataTable{
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border-collapse: separate !important;
}

/* Header */
table.dataTable thead th{
  background: #FAFAFA !important;
  border-bottom: 1px solid var(--ni-line) !important;
  font-weight: 900;
}

/* Hover */
table.dataTable tbody tr:hover{
  background: rgba(242,93,39,0.06) !important;
}


/* DT CARD CONTAINER (used in your modules) */

.dt-card{
  margin-top: 0.75rem !important;
  margin-bottom: 0 !important;
}

.dt-card .card-body{
  padding: 0 !important;
}

/* Wrapper cleanup */
.dt-card .dataTables_wrapper{
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}


/* REMOVE EXTRA SPACE ABOVE TABLE  */

.dt-card .dataTables_scroll{
  margin-top: 0 !important;
}

.dt-card table.dataTable{
  margin-top: 0 !important;
}


/* SPACE BETWEEN TABLE + FOOTER (fix cramped look) */

.dt-card .dataTables_scrollBody{
  margin-bottom: 0.5rem !important;
}


/* FOOTER (INFO + PAGINATION INLINE + BALANCED) */

.dt-card .dataTables_info{
  float: left !important;
  padding-top: 0.6rem !important;
  margin-top: 0.4rem !important;
  margin-bottom: 0 !important;
}

.dt-card .dataTables_paginate{
  float: right !important;
  padding-top: 0.3rem !important;
  margin-top: 0.4rem !important;
  margin-bottom: 0 !important;
}

.dt-card .dataTables_paginate .pagination{
  margin: 0 !important;
}


/* ENTERPRISE TABLE WRAPPER (outer container)  */

.enterprise-table-wrap{
  overflow: visible !important;
}

.enterprise-table-wrap .card-body{
  padding-bottom: 0.75rem !important;
}

.enterprise-table-wrap .dt-card{
  margin-top: 0.75rem !important;
}


/* OPTIONAL: SMALL POLISH (tighten filter row spacing) */

.dt-card .dataTables_filter,
.dt-card .dataTables_length{
  margin-bottom: 0.4rem !important;
}


/* =========================================================
   11. LANDING PAGE
   ========================================================= */

.ni-landing{
  max-width: 1600px;
  width: 100%;
  margin: 0 auto !important;
  padding: 10px 6px 0 6px !important;
  min-height: auto !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

.ni-landing-head{
  text-align: center;
  margin: 6px 0 18px 0;
}

.ni-landing-title{
  font-weight: 950;
  font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.6rem);
  letter-spacing: 0.2px;
  line-height: 1.05;
}

.ni-landing-title::after{
  content: "";
  display: block;
  width: clamp(220px, 22vw, 360px);
  height: 5px;
  margin: 10px auto 0 auto;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ni-orange-1), var(--ni-orange-3));
  box-shadow: 0 12px 26px rgba(242,93,39,0.22);
}

.ni-landing-subtitle{
  margin-top: 8px;
  font-weight: 800;
  opacity: 0.72;
  font-size: clamp(0.98rem, 0.9rem + 0.3vw, 1.15rem);
}

.ni-cover-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-content: start;
  padding: 0;
  margin: 0;
  overflow: visible;
}

.ni-cover-link{
  display: block;
  border-radius: 16px;
  outline: none;
  position: relative;
  z-index: 1;
}

.ni-cover-img{
  width: 100%;
  height: clamp(240px, 30vh, 420px);
  object-fit: cover;
  display: block;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 10px 22px rgba(0,0,0,0.12);
  transform: translate3d(0,0,0) scale(1);
  backface-visibility: hidden;
  transition: transform 130ms ease-out, box-shadow 130ms ease-out;
  will-change: transform;
}

.ni-cover-link::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 16px;
  pointer-events:none;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0.00) 0%,
    rgba(255,255,255,0.00) 40%,
    rgba(255,255,255,0.18) 52%,
    rgba(255,255,255,0.00) 64%,
    rgba(255,255,255,0.00) 100%
  );
  opacity: 0;
  transform: translate3d(-18%,0,0);
  transition: opacity 140ms ease-out, transform 220ms ease-out;
}

@media (hover: hover) and (pointer: fine){
  .ni-cover-link:hover,
  .ni-cover-link:focus-visible{
    z-index: 10;
  }

  .ni-cover-link:hover .ni-cover-img,
  .ni-cover-link:focus-visible .ni-cover-img{
    transform: translate3d(0,-8px,0) scale(1.03);
    box-shadow:
      0 0 0 3px rgba(242,93,39,0.50),
      0 0 24px rgba(242,93,39,0.35),
      0 22px 52px rgba(0,0,0,0.28);
  }

  .ni-cover-link:hover::after,
  .ni-cover-link:focus-visible::after{
    opacity: 1;
    transform: translate3d(18%,0,0);
  }
}

@media (prefers-reduced-motion: reduce){
  .ni-cover-img,
  .ni-cover-link::after{
    transition: none !important;
  }
}

.ni-landing-footnote{
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
  opacity: 0.65;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.2;
}


/* =========================================================
   12. OVERVIEW METRICS
   ========================================================= */

.ni-metric-card .card-body{
  padding: 18px 18px !important;
}

.ni-metric-wrap{
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
}

.ni-metric-icon{
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--ni-orange-1), var(--ni-orange-3));
  color: #fff;
  font-size: 1.25rem;
  box-shadow: 0 10px 22px rgba(242,93,39,0.18);
}

.ni-metric-content{
  min-width: 0;
}

.ni-metric-label{
  font-size: 0.9rem;
  font-weight: 800;
  color: rgba(72,79,96,0.72);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.1;
}

.ni-metric-value{
  margin-top: 4px;
  font-size: 2rem;
  font-weight: 900;
  color: var(--ni-ink);
  line-height: 1;
}

.ni-region-summary-card .card-body{
  padding: 14px 16px !important;
}

.ni-region-row{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px solid var(--ni-line);
}

.ni-region-row:last-child{
  border-bottom: none;
}

.ni-region-block{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.ni-region-name-block{
  font-weight: 800;
}

.ni-region-inline-icon{
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(242,93,39,0.10);
  color: var(--ni-orange-1);
  font-size: 0.9rem;
}

.ni-region-name{
  font-size: 1rem;
  font-weight: 900;
  color: var(--ni-ink);
  line-height: 1.1;
}

.ni-region-metric-label{
  font-size: 0.88rem;
  font-weight: 800;
  color: rgba(72,79,96,0.72);
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.ni-region-metric-value{
  margin-left: auto;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--ni-ink);
}

.ni-regional-overview-top{
  padding-bottom: 0px !important;
}

.ni-overview-kpi-row{
  margin-bottom: 0 !important;
}

.ni-metric-card-fixed{
  min-height: 0 !important;
}

.ni-metric-card-fixed .card-body{
  min-height: 0 !important;
  padding: 16px 18px !important;
  display: flex;
  align-items: center;
}

.ni-metric-card-fixed .ni-metric-wrap{
  min-height: 84px !important;
  width: 100%;
}


/* =========================================================
   13. WIP MODULE PAGES
   ========================================================= */

.wip-page-wrap{
  min-height: calc(100vh - 240px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px 32px 16px;
}

.wip-page-inner{
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.wip-icon-wrap{
  width: 92px;
  height: 92px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(242,93,39,0.10),
    rgba(245,132,38,0.16)
  );
  border: 1px solid rgba(242,93,39,0.18);
  box-shadow: 0 10px 24px rgba(242,93,39,0.10);
}

.wip-icon{
  color: var(--ni-orange-1) !important;
}

.wip-text{
  margin: 0;
  max-width: 560px;
  font-size: 1.02rem;
  line-height: 1.7;
  font-weight: 700;
  color: rgba(72,79,96,0.82);
}


/* =========================================================
   APP FOOTER
   ========================================================= */

.app-footer{
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* keep both sides inline + centered */
.app-footer-left,
.app-footer-right,
.footer-right{
  display: flex !important;
  align-items: center !important;
  gap: 6px;
}

/* push right side over */
.app-footer-right{
  margin-left: auto !important;
}


/* =========================================================
   14. PRODUCTION JSON LOGIN USER WELCOME
   ========================================================= */

.prod-user-welcome{
  display: flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  min-height: 54px;
  color: #ffffff !important;
}

.prod-user-icon{
  width: 34px;
  height: 34px;
  min-width: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.32);
  font-size: 1.25rem;
}

.prod-user-icon i,
.prod-user-icon svg{
  color: #ffffff !important;
}

.prod-user-text{
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1.05;
}

.prod-user-label{
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255,255,255,0.90) !important;
  white-space: nowrap;
}

.prod-user-name{
  font-size: 0.88rem;
  font-weight: 900;
  color: #ffffff !important;
  white-space: nowrap;
}


/* =========================================================
   15. RESPONSIVE
   ========================================================= */

@media (max-width: 1150px){
  .ni-cover-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ni-cover-img{ height: clamp(220px, 28vh, 390px); }
}

@media (max-width: 980px){
  .app-topbar-unified{
    min-height: auto;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .app-topbar-left,
  .app-topbar-center,
  .app-topbar-right{
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
  }

  .app-topbar-center{
    text-align: center;
  }

  .app-topbar-right{
    justify-content: center;
  }

  .app-title{
    white-space: normal;
  }
}

@media (max-width: 900px){
  .ni-cover-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ni-cover-img{ height: clamp(210px, 26vh, 360px); }

  .ni-region-row{
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 2px;
  }

  .ni-region-metric-value{
    margin-left: 0;
  }
}

@media (max-width: 620px){
  .ni-cover-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ni-cover-img{ height: clamp(200px, 24vh, 330px); }
}

@media (max-width: 420px){
  .user-card-name,
  .user-card-title,
  .user-card-subtitle{
    max-width: 160px;
  }
}