/* =========================================================
   NAVNIT BLISTER - GLOBAL APPLICATION CSS
   File: style.css

   Prefixes:
   nb-app-*   -> application shell / sidebar / common
   nb-home-*  -> homepage
   nb-login-* -> login page
   ========================================================= */

/* =========================================================
   1. ROOT / GLOBAL
   ========================================================= */

[ng-cloak] {
  display: none !important;
}

.nb-app-route-loading {
  position: fixed;
  z-index: 2000;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  background: #ffffff;
  color: #364452;
  font-size: 14px;
  font-weight: 600;
}

.nb-app-route-loading-spinner {
  width: 38px;
  height: 38px;
  border: 4px solid #e5e9ed;
  border-top-color: #f58220;
  border-radius: 50%;
  animation: nb-app-route-loading-spin 0.75s linear infinite;
}

@keyframes nb-app-route-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  background: #f5f6f8;
  color: #29323d;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

a,
a:hover,
a:focus {
  outline: none;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

/* Shared page frame, navigation bar, buttons and controls */
.nb-body-container {
  display: flex;
  width: 100%;
  height: calc(100vh - 8px);
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-radius: 10px;
  background: #fff;
  box-sizing: border-box;
}

.nb-app-bar {
  position: sticky;
  top: 4px;
  z-index: 1000;
  display: flex;
  flex: 0 0 45px;
  height: 45px;
  min-height: 45px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 3px 8px;
  border-bottom: 1px solid #e6e9ed;
  background: #fff;
  box-sizing: border-box;
}

.nb-app-bar-left,
.nb-app-bar-right,
.nb-app-toolbar {
  display: flex;
  align-items: center;
  min-width: 0;
}

.nb-app-bar-left { gap: 14px; }
.nb-app-bar-right,
.nb-app-toolbar { justify-content: flex-end; gap: 10px; }
.nb-app-toolbar-search { width: 250px; }

.nb-app-back-button {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #000;
  font-size: 18px;
  text-decoration: none;
}

.nb-app-page-title {
  margin: 0;
  color: #303a45;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}

.nb-app-page-subtitle {
  display: block;
  margin-top: 0;
  color: #929aa3;
  font-size: 9px;
  line-height: 1.1;
}

.nb-app-bar .btn {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  gap: 7px;
  white-space: nowrap;
}

.btn-primary {
  border-color: #f58220;
  background: #f58220;
  color: #fff;
}

.btn-primary:hover,
.btn-primary:focus {
  border-color: #df6d0d;
  background: #df6d0d;
  color: #fff;
}

.form-control {
  width: 100%;
  height: 35px;
  padding: 4px 8px;
  border: 1px solid #d1d8df;
  border-radius: 2px;
  background: #fff;
  color: #414b55;
  font-family: inherit;
  font-size: 14px;
  box-shadow: none;
}

textarea.form-control {
  min-height: 100px;
  height: auto;
  resize: vertical;
}

.form-control:focus {
  border-color: #ca7124;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(202, 113, 36, 0.1);
}

.form-control:disabled,
.form-control[readonly],
.form-control[aria-readonly='true'] {
  background: #eef1f4;
  color: #6f7c89;
}

@media (max-width: 1024px) {
  .nb-app-bar-left { gap: 8px; }
  .nb-app-bar-right,
  .nb-app-toolbar { max-width: 52%; flex: 0 1 auto; gap: 6px; }
  .nb-app-toolbar-search { width: 150px; min-width: 0; flex: 1 1 150px; }
}

@media (max-width: 767px) {
  .nb-body-container { height: auto; min-height: 0; overflow: visible; border-radius: 0; }
  .nb-app-bar { height: 45px; min-height: 45px; padding: 3px 8px; gap: 6px; }
  .nb-app-bar-left { flex: 1 1 auto; gap: 8px; overflow: hidden; }
  .nb-app-page-title { max-width: 32vw; overflow: hidden; font-size: 15px; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
  .nb-app-page-subtitle { font-size: 8px; }
  .nb-app-bar-right,
  .nb-app-toolbar { width: auto; min-width: 0; max-width: 52%; flex: 0 1 auto; flex-direction: row; gap: 6px; }
  .nb-app-toolbar-search { width: 125px; min-width: 0; flex: 1 1 100px; }
  .nb-app-toolbar-search .form-control { height: 34px; padding: 6px 8px; font-size: 11px; }
  .nb-app-bar .btn { height: 34px; min-height: 34px; padding: 0 8px; font-size: 10px; gap: 4px; }
}

/* =========================================================
   2. MAIN APPLICATION SHELL
   ========================================================= */

.nb-app-shell {
  display: flex;
  width: 100%;
  height: 100vh;
  min-height: 0;
  overflow: hidden;
}

.nb-app-shell-webview .nb-app-sidebar,
.nb-app-shell-webview .nb-app-bar {
  display: none;
}

.nb-app-shell-webview .nb-app-main-content {
  width: 100%;
  height: 100vh;
  margin-left: 0;
}

/* =========================================================
   APPLICATION SIDEBAR
   ========================================================= */

.nb-app-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 250px;
  background: #ffffff;
  color: #303a45;
  border-right: 1px solid #e5e8ec;
  overflow: hidden;
}

/* =========================================================
   BRAND
   ========================================================= */

.nb-app-sidebar-brand {
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 18px 20px;
  gap: 12px;
  flex: 0 0 auto;
}

.nb-app-sidebar-brand .navbar-toggle {
  display: block !important;
  margin: 0 0 0 auto;
  border-color: #d8dde3;
}

.nb-app-sidebar-brand .navbar-toggle .icon-bar {
  background-color: #65707c;
}

.nb-app-sidebar-brand-mark {
  display: flex;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f58220;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}

.nb-app-sidebar-brand-content {
  min-width: 0;
}

.nb-app-sidebar-brand-title {
  color: #303a45;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nb-app-sidebar-brand-subtitle {
  margin-top: 2px;
  color: #9aa1aa;
  font-size: 10px;
  letter-spacing: 2px;
}

.nb-app-sidebar-divider {
  height: 1px;
  margin: 0 15px;
  background: #e9ecef;
}

/* =========================================================
   NAVIGATION
   ========================================================= */

.nb-app-sidebar-nav {
  flex: 1 1 0;
  min-height: 0;
  height: 0 ;
  padding: 16px 10px 20px;
  overflow-y: auto ;
  overflow-x: hidden;
}

.nb-app-sidebar-menu-group {
  margin-bottom: 2px;
}

.nb-app-sidebar-nav-label {
  padding: 0 10px 8px;
  color: #9aa1aa;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
}

/* MENU ITEM */

.nb-app-sidebar-nav-item {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  margin-bottom: 4px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  gap: 12px;
  background: transparent;
  color: #65707c;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.nb-app-sidebar-nav-item:hover,
.nb-app-sidebar-nav-item:focus {
  background: #f7f8fa;
  color: #303a45;
  text-decoration: none;
  outline: none;
}

/* ACTIVE MENU */

.nb-app-sidebar-nav-item.active {
  background: #fff0e4;
  color: #e57214;
  font-weight: 600;
}

.nb-app-sidebar-nav-item.active .glyphicon {
  color: #f58220;
}

/* ICON */

.nb-app-sidebar-nav-item .glyphicon {
  width: 18px;
  flex: 0 0 18px;
  color: #8d96a0;
  text-align: center;
  font-size: 14px;
}

.nb-app-sidebar-nav-item:hover .glyphicon {
  color: #f58220;
}

/* =========================================================
   SIDEBAR FOOTER
   ========================================================= */
.nb-app-sidebar-footer {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 12px;
  flex: 0 0 auto;
  flex-shrink: 0;
}

.nb-app-sidebar-footer-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 6px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.nb-app-sidebar-footer-btn:hover {
  text-decoration: none;
}

.nb-app-sidebar-footer .nb-app-sidebar-nav-item {
  margin-bottom: 1px;
}

.nb-app-sidebar-footer .nb-app-sidebar-nav-item:last-child {
  margin-bottom: 0;
}

/* LOGOUT */

.nb-app-sidebar-logout {
  color: #b65a5a;
}

.nb-app-sidebar-logout .glyphicon {
  color: #c46b6b;
}

.nb-app-sidebar-logout:hover,
.nb-app-sidebar-logout:focus {
  background: #fff5f5;

  color: #b34d4d;
}

.nb-app-sidebar-logout:hover .glyphicon {
  color: #b34d4d;
}

@media (min-width: 768px) {
  .nb-app-sidebar {
    transition: width 0.2s ease;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) {
    width: 72px;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-brand {
    justify-content: center;
    padding-right: 6px;
    padding-left: 6px;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-brand-mark,
  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-brand-content {
    display: none;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .navbar-toggle {
    margin: 0;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-nav-label,
  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-nav-item > span:not(.glyphicon),
  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-footer-btn > span:not(.glyphicon) {
    display: none;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-nav-item {
    justify-content: center;
    padding-right: 0;
    padding-left: 0;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-footer {
    flex-direction: column;
    gap: 6px;
    padding: 8px;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-footer-btn {
    min-height: 38px;
    padding-right: 0;
    padding-left: 0;
  }

}

/* =========================================================
   MOBILE SIDEBAR
   ========================================================= */

@media (max-width: 767px) {
  .nb-app-shell {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    flex-direction: column;
    overflow: visible;
  }

  .nb-app-sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
    flex: 0 0 auto;
    border-right: 0;
    border-bottom: 1px solid #e5e8ec;
  }

  .nb-app-sidebar-brand {
    justify-content: flex-start;
  }

  .nb-app-sidebar-brand .navbar-toggle {
    margin: 0 0 0 auto;
    border-color: #d8dde3;
  }

  .nb-app-sidebar-brand .navbar-toggle .icon-bar {
    background-color: #65707c;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-divider,
  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-nav,
  .nb-app-sidebar:not(.nb-app-sidebar-open) .nb-app-sidebar-footer {
    display: none;
  }

  .nb-app-sidebar-open .nb-app-sidebar-divider,
  .nb-app-sidebar-open .nb-app-sidebar-nav,
  .nb-app-sidebar-open .nb-app-sidebar-footer {
    display: flex;
  }

  .nb-app-sidebar-open .nb-app-sidebar-nav {
    height: auto;
    max-height: calc(100vh - 150px);
    max-height: calc(100dvh - 150px);
    flex: 0 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nb-app-sidebar-brand {
    min-height: 65px;
  }

  .nb-app-sidebar-nav {
    padding: 10px;
  }

  .nb-app-sidebar-menu-group {
    margin-bottom: 12px;
  }

  .nb-app-sidebar-footer {
    display: flex;
    padding: 8px 10px;
    gap: 6px;
  }

  .nb-app-sidebar-footer .nb-app-sidebar-nav-item {
    flex: 1;
    justify-content: center;
  }

}

/* =========================================================
   5. MAIN CONTENT
   ========================================================= */

.nb-app-main-content {
  height: 100vh;
  width: calc(100% - 250px);
  min-width: 0;
  flex: 0 0 auto;
  min-height: 0;
  margin-left: 250px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  background: #e0e0e0;
}

@media (min-width: 768px) {
  .nb-app-main-content {
    transition:
      width 0.2s ease,
      margin-left 0.2s ease;
  }

  .nb-app-sidebar:not(.nb-app-sidebar-open) + .nb-app-main-content {
    width: calc(100% - 72px);
    margin-left: 72px;
  }
}

.nb-app-content-inner {
  width: 100%;
  padding: 4px;
  overflow-x: clip;
}

@media (max-width: 767px) {
  .nb-app-main-content {
    width: 100%;
    height: auto;
    min-height: 0;
    flex: 0 0 auto;
    margin-left: 0;
    overflow: visible;
  }
}

/* =========================================================
   HOMEPAGE / CONTROL CENTER
   Matches current nb-app-* HTML
   ========================================================= */

/* PAGE */

.nb-app-home {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
}

.nb-app-control-center {
  width: 100%;
}

/* ERROR */

.nb-app-home-error {
  margin: 0 0 18px;
  border: 1px solid #efc5c5;
  border-radius: 8px;
  background: #fff5f5;
  color: #b74a4a;
}

/* =========================================================
   HERO
   ========================================================= */

.nb-app-control-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 180px;
  margin-bottom: 22px;
  padding: 30px;
  border-radius: 14px;
  background: linear-gradient(135deg, #263240 0%, #374657 100%);
  color: #ffffff;
  gap: 24px;
}

.nb-app-eyebrow {
  margin: 0 0 7px;
  color: #f8a45c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  line-height: 1.2;
}

.nb-app-control-hero h1 {
  margin: 0;

  color: #ffffff;

  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
}

.nb-app-hero-copy {
  max-width: 560px;
  margin: 8px 0 0;
  color: #c5ccd4;
  font-size: 14px;
  line-height: 1.6;
}

.nb-app-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nb-app-primary-action,
.nb-app-secondary-action {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 8px;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nb-app-primary-action {
  background: #f58220;
  color: #ffffff;
}

.nb-app-primary-action:hover,
.nb-app-primary-action:focus {
  background: #df6c0b;
  color: #ffffff;
  text-decoration: none;
}

.nb-app-secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nb-app-secondary-action:hover,
.nb-app-secondary-action:focus {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  text-decoration: none;
}

/* =========================================================
   QUICK STATS
   ========================================================= */

.nb-app-quick-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.nb-app-quick-stat {
  position: relative;
  min-width: 0;
  padding: 20px;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.nb-app-stat-label {
  margin: 0;
  color: #7b8490;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.nb-app-stat-value {
  margin: 8px 0 0;
  color: #29323d;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.nb-app-stat-line {
  display: block;
  width: 45px;
  height: 3px;
  margin-top: 14px;
  border-radius: 5px;
  background: #f58220;
}

/* =========================================================
   MAIN CONTROL GRID
   ========================================================= */

.nb-app-control-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    minmax(280px, 340px);

  align-items: start;
  gap: 22px;
}

.nb-app-control-main,
.nb-app-control-side {
  min-width: 0;
}

/* =========================================================
   COMMON CONTROL CARD
   ========================================================= */

.nb-app-control-card {
  margin-bottom: 22px;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}

.nb-app-control-card:last-child {
  margin-bottom: 0;
}

.nb-app-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  gap: 16px;
}

.nb-app-section-heading h2 {
  margin: 0;
  color: #303a45;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.nb-app-section-hint {
  color: #8b939c;
  font-size: 11px;
  white-space: nowrap;
}

.nb-app-compact-heading {
  padding-bottom: 8px;
}

/* =========================================================
   QUICK ACTIONS
   ========================================================= */

.nb-app-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 20px;
  gap: 12px;
}

.nb-app-control-action {
  display: flex;
  min-width: 0;
  min-height: 74px;
  align-items: center;
  padding: 13px;
  border: 1px solid #e6e9ed;
  border-radius: 10px;
  gap: 12px;
  background: #ffffff;
  color: #36414c;
  text-decoration: none;
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.nb-app-control-action:hover,
.nb-app-control-action:focus {
  border-color: #f3b27a;
  color: #36414c;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(30, 40, 50, 0.06);
}

.nb-app-action-icon {
  display: flex;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff3e8;
  color: #f58220;
}

.nb-app-action-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
}

.nb-app-action-copy strong {
  display: block;
  overflow: hidden;
  color: #36414c;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-app-action-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #8a929b;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-app-action-arrow {
  flex: 0 0 auto;
  color: #b0b7c0;
  font-size: 11px;
}

/* =========================================================
   ACTIVITY
   ========================================================= */

.nb-app-activity-list {
  padding: 20px;
}

.nb-app-activity-item {
  display: flex;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f2;
  gap: 12px;
}

.nb-app-activity-item:first-child {
  padding-top: 0;
}

.nb-app-activity-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.nb-app-activity-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #f58220;
}

.nb-app-activity-item > div {
  min-width: 0;
}

.nb-app-activity-item strong {
  display: block;
  color: #36404a;
  font-size: 13px;
  font-weight: 600;
}

.nb-app-activity-item p {
  margin: 4px 0 0;
  color: #89919a;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================================
   ATTENTION CARD
   ========================================================= */

.nb-app-attention-card {
  margin-bottom: 22px;
  padding: 22px;
  border-radius: 12px;
  background: #303d4d;
  color: #ffffff;
}

.nb-app-eyebrow-light {
  color: #f7a35c;
}

.nb-app-attention-card h2 {
  margin: 8px 0;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

.nb-app-attention-copy {
  margin: 0;
  color: #c7ced6;
  font-size: 12px;
  line-height: 1.6;
}

.nb-app-attention-list {
  margin-top: 20px;
}

.nb-app-attention-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  gap: 12px;
}

.nb-app-attention-list > div:last-child {
  border-bottom: 0;
}

.nb-app-attention-list span {
  color: #c8cfd6;
  font-size: 12px;
}

.nb-app-attention-list strong {
  color: #f7a35c;
  font-size: 11px;
}

/* =========================================================
   PROFILE CARD
   ========================================================= */

.nb-app-profile-card {
  margin-bottom: 22px;
  padding: 20px;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  background: #ffffff;
}

.nb-app-profile-card h3 {
  margin: 7px 0;
  color: #303a45;
  font-size: 16px;
  font-weight: 700;
}

.nb-app-profile-card > p:not(.nb-app-eyebrow) {
  margin: 4px 0;
  color: #818a94;
  font-size: 12px;
  word-break: break-word;
}

/* =========================================================
   TEAM USERS
   ========================================================= */

.nb-app-users-card {
  padding-bottom: 10px;
  border: 1px solid #e7eaee;
  border-radius: 12px;
  background: #ffffff;
}

.nb-app-team-user {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0 20px;
  padding: 14px 0;
  border-bottom: 1px solid #edf0f2;
  gap: 10px;
}

.nb-app-team-user:last-child {
  border-bottom: 0;
}

.nb-app-user-avatar {
  display: flex;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff1e4;
  color: #e57214;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.nb-app-team-user > div {
  min-width: 0;
  flex: 1;
}

.nb-app-team-user strong,
.nb-app-team-user small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nb-app-team-user strong {
  color: #39434d;
  font-size: 12px;
  font-weight: 600;
}

.nb-app-team-user small {
  margin-top: 3px;
  color: #9aa1a9;
  font-size: 10px;
}

.nb-app-status-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 20px;
  background: #f2f4f6;
  color: #858e98;
  font-size: 9px;
  text-transform: capitalize;
}

.nb-app-status-active {
  background: #eaf7ed;
  color: #3c9650;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {
  .nb-app-quick-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nb-app-control-grid {
    grid-template-columns: 1fr;
  }

  .nb-app-control-side {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 22px;
  }

  .nb-app-attention-card,
  .nb-app-profile-card,
  .nb-app-users-card {
    margin-bottom: 0;
  }

  .nb-app-users-card {
    grid-column: 1 / -1;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .nb-app-control-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: auto;
    padding: 22px;
  }

  .nb-app-control-hero h1 {
    font-size: 25px;
  }

  .nb-app-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .nb-app-quick-stats {
    grid-template-columns: 1fr;
  }

  .nb-app-control-side {
    grid-template-columns: 1fr;
  }

  .nb-app-users-card {
    grid-column: auto;
  }

  .nb-app-action-grid {
    grid-template-columns: 1fr;
  }

  .nb-app-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .nb-app-section-hint {
    white-space: normal;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .nb-app-control-hero {
    padding: 18px;
  }

  .nb-app-primary-action,
  .nb-app-secondary-action {
    width: 100%;
  }

  .nb-app-quick-stat {
    padding: 16px;
  }

  .nb-app-section-heading {
    padding: 16px 16px 0;
  }

  .nb-app-action-grid,
  .nb-app-activity-list {
    padding: 16px;
  }

  .nb-app-attention-card,
  .nb-app-profile-card {
    padding: 18px;
  }

  .nb-app-team-user {
    margin: 0 16px;
  }
}

/* =========================================================
   LOGIN CARD
   ========================================================= */

body.nb-app-login-page {
  min-height: 100vh;
  background: #f4f6f8;
}

.nb-app-auth-shell {
  display: flex;
  width: 100%;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 48px);
}

.nb-app-login {
  position: relative;
  display: flex;
  width: 100%;
  min-height: calc(100vh - clamp(32px, 8vw, 96px));
  align-items: center;
  justify-content: center;
  padding: 16px;
  isolation: isolate;
}

.nb-app-bg-cliparts {
  display: none;
}

.nb-app-auth-card {
  position: relative;
  display: grid;
  width: min(100%, 980px);
  max-width: 980px;
  min-height: 560px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 22px 65px rgba(32, 42, 53, 0.15);
  z-index: 1;
}

/* =========================================================
   LEFT VISUAL PANEL
   ========================================================= */

.nb-app-auth-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 50px;
  overflow: hidden;
  background: linear-gradient(145deg, #263241, #344454);
  color: #ffffff;
}

.nb-app-visual-mark {
  position: absolute;
  top: 28px;
  left: 30px;
  display: flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #f58220;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
}

/* =========================================================
   VISUAL CLIPART
   ========================================================= */

.nb-app-visual-clipart {
  position: relative;
  width: 100%;
  height: 210px;
  margin-bottom: 28px;
}

.nb-app-clip-bubble {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #ffffff;
}

.nb-app-clip-bubble-main {
  top: 24px;
  left: 50%;
  width: 125px;
  height: 125px;
  background: #f58220;
  font-size: 46px;
  transform: translateX(-50%);
}

.nb-app-clip-bubble-chat {
  top: 22px;
  right: 18%;
  width: 56px;
  height: 56px;
  background: #ffffff;
  color: #f58220;
  font-size: 22px;
}

.nb-app-clip-bubble-gear {
  bottom: 22px;
  left: 17%;
  width: 58px;
  height: 58px;
  background: #405366;
  color: #f4a15d;
  font-size: 23px;
}

.nb-app-clip-ground {
  position: absolute;
  right: 15%;
  bottom: 0;
  left: 15%;
  height: 8px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
}

.nb-app-visual-title {
  margin: 0;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
}

.nb-app-visual-text {
  max-width: 360px;
  margin: 10px 0 0;
  color: #c7ced6;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   RIGHT LOGIN FORM
   ========================================================= */

.nb-app-auth-form-pane {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 55px;
  background: #ffffff;
}

.nb-app-login-avatar-wrap {
  display: flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #fff0e3;
  color: #f58220;
  font-size: 20px;
}

.nb-app-login-title {
  margin: 0;
  color: #303a45;
  font-size: 27px;
  font-weight: 700;
}

.nb-app-login-subtitle {
  margin: 7px 0 30px;
  color: #8b939d;
  font-size: 13px;
}

/* BOOTSTRAP FORM OVERRIDES - SCOPED ONLY TO LOGIN */

.nb-app-auth-form-pane .form-group {
  margin-bottom: 14px;
}

.nb-app-auth-form-pane label {
  display: block;
  margin-bottom: 7px;
  color: #59636e;
  font-size: 12px;
  font-weight: 400;
}

.nb-app-auth-form-pane .form-control {
  width: 100%;
  height: 44px;
  padding: 10px 12px;
  border: 1px solid #dce1e6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
  color: #303a45;
  font-size: 12px;
}

.nb-app-auth-form-pane .form-control:focus {
  border: 1.5px solid #ca7124;
  box-shadow: 0 0 0 3px rgba(202, 113, 36, 0.1);
}

.nb-app-login-submit-btn {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: #f58220;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.nb-app-login-submit-btn:hover,
.nb-app-login-submit-btn:focus {
  background: #df6c0b;
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.nb-app-login-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .nb-app-auth-card {
    max-width: 760px;
    min-height: 520px;
  }

  .nb-app-auth-visual,
  .nb-app-auth-form-pane {
    padding: 40px;
  }

  .nb-app-visual-clipart {
    height: 180px;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {
  .nb-app-auth-shell {
    align-items: flex-start;
    padding: 12px;
  }

  .nb-app-login {
    align-items: flex-start;
    min-height: 0;
    padding: 0;
  }

  .nb-app-auth-card {
    display: block;
    width: min(100%, 520px);
    min-height: auto;
    margin: 0 auto;
  }

  .nb-app-auth-visual {
    min-height: 0;
    padding: 24px;
  }

  .nb-app-auth-form-pane {
    padding: 30px 24px;
  }

  .nb-app-visual-clipart {
    height: 125px;
    margin-bottom: 14px;
  }

  .nb-app-clip-bubble-main {
    top: 8px;
    width: 92px;
    height: 92px;
    font-size: 34px;
  }

  .nb-app-clip-bubble-chat {
    top: 8px;
    right: 18%;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .nb-app-clip-bubble-gear {
    bottom: 8px;
    left: 18%;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .nb-app-visual-title {
    font-size: 22px;
  }

  .nb-app-bg-clip {
    display: none;
  }

  .nb-app-visual-mark {
    top: 18px;
    left: 18px;
    width: 38px;
    height: 38px;
  }
}

/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {
  .nb-app-login {
    padding: 0;
  }

  .nb-app-auth-card {
    border-radius: 14px;
  }

  .nb-app-auth-visual {
    padding: 20px;
  }

  .nb-app-auth-form-pane {
    padding: 26px 20px;
  }

  .nb-app-login-subtitle {
    margin-bottom: 22px;
  }

  .nb-app-auth-form-pane form > div[style] {
    height: auto !important;
    min-height: 24px;
  }

  .nb-app-login-title {
    font-size: 23px;
  }
}

body.nb-app-mobile-webview {
  min-height: 100vh;
  background: #fff;
}

body.nb-app-mobile-webview .nb-app-mobile-view {
  width: 100%;
  min-height: 100vh;
}

body.nb-app-mobile-webview .nb-app-bar,
body.nb-app-mobile-webview .header,
body.nb-app-mobile-webview .nb-app-sidebar {
  display: none !important;
}

body.nb-app-mobile-webview .nb-body-container {
  width: 100%;
  min-height: 100vh;
  height: auto;
  overflow: visible;
  border-radius: 0;
}
