/* Portal additions on top of FabKin (app.min.css). Team colors come from the
   --pe-primary / --brand-* variables set in base.html. */

/* Sidebar in the team's main color */
[data-bs-theme="light"] .pe-app-sidebar {
  --pe-app-sidebar-bg: var(--brand-primary);
  --pe-app-sidebar-border-color: rgba(255, 255, 255, .08);
  --pe-app-sidebar-caption-color: rgba(255, 255, 255, .5);
  --pe-app-sidebar-menu-item-color: rgba(255, 255, 255, .78);
  --pe-app-sidebar-menu-item-color-hover: #fff;
  --pe-app-sidebar-menu-item-color-active: #fff;
  background-color: var(--brand-primary);
}
[data-bs-theme="light"] .pe-app-sidebar .portal-brand-name { color: #fff; }
.pe-app-sidebar .pe-nav-link.active {
  background-color: rgba(var(--pe-primary-rgb), .22) !important;
  color: #fff !important;
}
.pe-app-sidebar .pe-nav-link.active .pe-nav-icon { color: var(--pe-primary) !important; }

/* Collapsed (icon) sidebar: hide the text next to the logo */
[data-sidebar="icon"] .portal-brand-name { display: none; }

/* Ticket status badges */
.badge-status { font-weight: 500; }
.badge-status.open { background: var(--pe-primary-bg-subtle); color: var(--pe-primary-text-emphasis); }
.badge-status.closed { background: var(--pe-success-bg-subtle); color: var(--pe-success-text-emphasis); }

/* Conversation thread */
.activity { border-left: 2px solid var(--pe-border-color); padding-left: 1rem; margin-bottom: 1rem; }
.ticket-body img { max-width: 100%; }

/* Quick-action cards on the dashboard */
.quick-card { transition: transform .15s ease, box-shadow .15s ease; }
.quick-card:hover { transform: translateY(-2px); box-shadow: 0 .5rem 1.25rem rgba(16, 24, 40, .08); }

.table-clickable tbody tr { cursor: pointer; }

/* Sign-in page (FabKin auth layout) */
.auth-shell { position: relative; min-height: 100vh; overflow: hidden; }
.auth-shell .auth-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.auth-shell .container { position: relative; }
.auth-brand-bar { height: 4px; background: linear-gradient(90deg, var(--brand-primary), var(--brand-accent)); }
