/* Opts this theme's Bootstrap 3 markup out of browsers' forced/auto dark mode, which
   repaints unstyled elements (like the light sidebar) with heuristic dark colors. */
html {
  color-scheme: light;
}

/* Sign-out button inside the topbar's Bootstrap dropdown-menu — styled to match the
   dropdown's <a> items, since Bootstrap only styles anchors there, not form buttons. */
.dropdown-menu form {
  display: block;
  margin: 0;
}

.dropdown-menu form button {
  display: block;
  width: 100%;
  padding: 3px 20px;
  clear: both;
  font: inherit;
  line-height: 1.42857143;
  color: #333;
  text-align: left;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}

.dropdown-menu form button:hover,
.dropdown-menu form button:focus {
  color: #262626;
  background-color: #f5f5f5;
}

/* Groups a row/detail page's action links+forms (Edit, Delete, Approve, ...) on one line —
   Bootstrap has no built-in helper for mixing plain buttons and one-off <form> posts this way. */
.inline-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.inline-actions form {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.inline-actions form .form-control {
  width: auto;
}

.error {
  color: #b91c1c;
}

.clickable-rows tbody tr {
  cursor: pointer;
}

.privilege-matrix .privilege-col {
  text-align: center;
  white-space: nowrap;
}

/* Category tree (Views/ResaleCategories/Index.cshtml, ~/js/site.js) — the spacer keeps leaf rows'
   names aligned with parent rows' names even though leaves have no toggle caret. Only rows with
   children (.has-children) are click-to-toggle, so only those get the pointer cursor. */
.category-tree tbody tr.has-children {
  cursor: pointer;
}

.category-tree .tree-toggle,
.category-tree .tree-toggle-spacer {
  display: inline-block;
  width: 16px;
  text-align: center;
}

.category-tree .tree-toggle {
  color: #777;
}

/* Login/Register/AccessDenied pages: the fixed navbar-brand banner now renders for signed-out
   visitors too (see _Layout.cshtml), so this clears it the same way the sidebar does
   (startmin.css's .sidebar { margin-top: 51px }) instead of letting the fixed banner overlap it. */
.public-page-body {
  padding-top: 51px;
}

.audit-info {
  color: #777;
}

.audit-info dt {
  font-weight: normal;
  color: #777;
}

.assign-actions {
  margin-bottom: 20px;
}

.email-unread td {
  font-weight: bold;
}

/* Topbar notification bell (NotificationBellViewComponent) — badge sits on the bell icon
   the same way SB-Admin-style templates do it, but this template ships no such widget of
   its own, so the badge positioning is defined here rather than pulled from startmin.css. */
.notification-badge {
  position: relative;
  top: -10px;
  left: -4px;
  padding: 1px 6px;
  background-color: #d9534f;
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
}

.dropdown-notifications {
  min-width: 220px;
}

.notification-empty {
  padding: 3px 20px;
  color: #777;
}

/* Confirm modal (~/js/site.js, #confirmModal in _Layout.cshtml) — title bar styled like
   the app's .panel-default panels (same header background/text/border colors), so it
   matches every other panel heading instead of standing out with its own color. */
#confirmModal .modal-content {
  overflow: hidden;
}

.confirm-modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #ddd;
}

.confirm-modal-header .close {
  float: none;
  order: 3;
  margin-left: auto;
}

.confirm-modal-icon {
  order: 1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(240, 173, 78, 0.15);
  color: #f0ad4e;
  font-size: 15px;
}

.confirm-modal-header .modal-title {
  order: 2;
  margin: 0;
  color: #333;
  font-weight: 600;
}

#confirmModal .modal-body {
  padding: 20px;
  font-size: 14px;
}
