/* =========================================================================
   skyblocks-bootstrap-compat.css
   ---------------------------------------------------------------------------
   Drop-in replacement for the Bootstrap 4 grid + utility layer that used to
   ship inside `black-dashboard.css`. Provides ONLY the classes that Blade
   views actually use (see inventory) + the minimum component CSS that
   `bootstrap.min.js` depends on (modal/dropdown/collapse/fade/tab).

   Loaded BEFORE skyblocks-tokens.css and skyblocks-redesign.css so that our
   theme tokens always win the cascade.
   ========================================================================= */

/* ---- Reboot (lite) ---- */
*, *::before, *::after { box-sizing: border-box; }
html { line-height: 1.15; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(0,0,0,0); }
body { margin: 0; }
[hidden] { display: none !important; }

article, aside, figcaption, figure, footer, header, hgroup, main, nav, section { display: block; }

h1, h2, h3, h4, h5, h6 { margin-top: 0; margin-bottom: 0.5rem; }
p, ul, ol { margin-top: 0; margin-bottom: 1rem; }
ul, ol { padding-left: 2rem; }
a { background-color: transparent; }
img, svg { vertical-align: middle; }
img { max-width: 100%; height: auto; border-style: none; }
table { border-collapse: collapse; }
button, input, optgroup, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}
button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; }
button:not(:disabled), [type="button"]:not(:disabled), [type="reset"]:not(:disabled), [type="submit"]:not(:disabled) {
  cursor: pointer;
}
button::-moz-focus-inner, [type="button"]::-moz-focus-inner { padding: 0; border-style: none; }

label { display: inline-block; }

/* ============================================================
   Container
   ============================================================ */
.container, .container-fluid {
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px)  { .container { max-width: 540px; } }
@media (min-width: 768px)  { .container { max-width: 720px; } }
@media (min-width: 992px)  { .container { max-width: 960px; } }
@media (min-width: 1200px) { .container { max-width: 1140px; } }

/* ============================================================
   Grid (12-column, mobile-first)
   ============================================================ */
.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -15px;
  margin-left: -15px;
}
[class*="col-"], .col {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.col { flex-basis: 0; flex-grow: 1; max-width: 100%; }

/* mobile-first .col-{1..12} */
.col-1  { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
.col-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-3  { flex: 0 0 25%;        max-width: 25%;        }
.col-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-6  { flex: 0 0 50%;        max-width: 50%;        }
.col-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-9  { flex: 0 0 75%;        max-width: 75%;        }
.col-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-12 { flex: 0 0 100%;       max-width: 100%;       }

/* sm: ≥576px */
@media (min-width: 576px) {
  .col-sm    { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-sm-1  { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
  .col-sm-2  { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-sm-3  { flex: 0 0 25%;        max-width: 25%;        }
  .col-sm-4  { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-sm-5  { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-sm-6  { flex: 0 0 50%;        max-width: 50%;        }
  .col-sm-7  { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-sm-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-sm-9  { flex: 0 0 75%;        max-width: 75%;        }
  .col-sm-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-sm-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-sm-12 { flex: 0 0 100%;       max-width: 100%;       }
}

/* md: ≥768px */
@media (min-width: 768px) {
  .col-md     { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-md-1   { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
  .col-md-2   { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-md-3   { flex: 0 0 25%;        max-width: 25%;        }
  .col-md-4   { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-md-5   { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-md-6   { flex: 0 0 50%;        max-width: 50%;        }
  .col-md-7   { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-md-8   { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-md-9   { flex: 0 0 75%;        max-width: 75%;        }
  .col-md-10  { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-md-11  { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-md-12  { flex: 0 0 100%;       max-width: 100%;       }
  .offset-md-1  { margin-left: 8.333333%;  }
  .offset-md-2  { margin-left: 16.666667%; }
  .offset-md-3  { margin-left: 25%;        }
  .offset-md-4  { margin-left: 33.333333%; }
  .offset-md-5  { margin-left: 41.666667%; }
  .offset-md-6  { margin-left: 50%;        }
}

/* lg: ≥992px */
@media (min-width: 992px) {
  .col-lg     { flex-basis: 0; flex-grow: 1; max-width: 100%; }
  .col-lg-1   { flex: 0 0 8.333333%;  max-width: 8.333333%;  }
  .col-lg-2   { flex: 0 0 16.666667%; max-width: 16.666667%; }
  .col-lg-3   { flex: 0 0 25%;        max-width: 25%;        }
  .col-lg-4   { flex: 0 0 33.333333%; max-width: 33.333333%; }
  .col-lg-5   { flex: 0 0 41.666667%; max-width: 41.666667%; }
  .col-lg-6   { flex: 0 0 50%;        max-width: 50%;        }
  .col-lg-7   { flex: 0 0 58.333333%; max-width: 58.333333%; }
  .col-lg-8   { flex: 0 0 66.666667%; max-width: 66.666667%; }
  .col-lg-9   { flex: 0 0 75%;        max-width: 75%;        }
  .col-lg-10  { flex: 0 0 83.333333%; max-width: 83.333333%; }
  .col-lg-11  { flex: 0 0 91.666667%; max-width: 91.666667%; }
  .col-lg-12  { flex: 0 0 100%;       max-width: 100%;       }
}

/* Default (mobile) offsets used in views */
.offset-3 { margin-left: 25%; }
.offset-4 { margin-left: 33.333333%; }

/* ============================================================
   Display utilities (only what views use)
   ============================================================ */
.d-flex   { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-flex { display: inline-flex !important; }
.d-block { display: block !important; }
.d-none  { display: none !important; }

/* ============================================================
   Flex utilities
   ============================================================ */
.flex-row    { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap   { flex-wrap: wrap !important; }
.align-items-center { align-items: center !important; }
.align-items-end    { align-items: flex-end !important; }
.align-items-start  { align-items: flex-start !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-start   { justify-content: flex-start !important; }

/* ============================================================
   Spacing scale: BS4 uses 1rem (16px) base.
   0 = 0, 1 = 0.25rem, 2 = 0.5rem, 3 = 1rem, 4 = 1.5rem, 5 = 3rem.
   ============================================================ */
/* margin */
.m-0  { margin: 0 !important; }
.m-1  { margin: 0.25rem !important; }
.m-2  { margin: 0.5rem !important; }
.m-3  { margin: 1rem !important; }
.m-4  { margin: 1.5rem !important; }
.m-5  { margin: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-auto { margin-right: auto !important; }

.mx-0 { margin-left: 0 !important; margin-right: 0 !important; }
.mx-1 { margin-left: 0.25rem !important; margin-right: 0.25rem !important; }
.mx-2 { margin-left: 0.5rem !important; margin-right: 0.5rem !important; }
.mx-3 { margin-left: 1rem !important; margin-right: 1rem !important; }
.mx-4 { margin-left: 1.5rem !important; margin-right: 1.5rem !important; }
.mx-5 { margin-left: 3rem !important; margin-right: 3rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: 0.25rem !important; margin-bottom: 0.25rem !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }

/* padding */
.p-0  { padding: 0 !important; }
.p-1  { padding: 0.25rem !important; }
.p-2  { padding: 0.5rem !important; }
.p-3  { padding: 1rem !important; }
.p-4  { padding: 1.5rem !important; }
.p-5  { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pl-2 { padding-left: 0.5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: 0.25rem !important; }
.pr-2 { padding-right: 0.5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

.px-0 { padding-left: 0 !important; padding-right: 0 !important; }
.px-1 { padding-left: 0.25rem !important; padding-right: 0.25rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-4 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.px-5 { padding-left: 3rem !important; padding-right: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

/* gap */
.gap-0 { gap: 0 !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.gap-4 { gap: 1.5rem !important; }
.gap-5 { gap: 3rem !important; }

/* ============================================================
   Text
   ============================================================ */
.text-left    { text-align: left !important; }
.text-right   { text-align: right !important; }
.text-center  { text-align: center !important; }
.text-justify { text-align: justify !important; }
.text-nowrap  { white-space: nowrap !important; }
.text-wrap    { white-space: normal !important; }
.text-truncate {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.text-uppercase  { text-transform: uppercase !important; }
.text-lowercase  { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.font-weight-light    { font-weight: 300 !important; }
.font-weight-normal   { font-weight: 400 !important; }
.font-weight-bold     { font-weight: 600 !important; }
.font-weight-bolder   { font-weight: 700 !important; }
.font-italic { font-style: italic !important; }

.text-muted    { color: var(--text-tertiary) !important; }
.text-primary  { color: var(--accent) !important; }
.text-success  { color: var(--success) !important; }
.text-warning  { color: var(--warning) !important; }
.text-danger   { color: var(--danger) !important; }
.text-info     { color: var(--info) !important; }
.text-dark     { color: var(--text-primary) !important; }
.text-secondary{ color: var(--text-secondary) !important; }
.text-white    { color: #ffffff !important; }
.text-body     { color: var(--text-primary) !important; }

@media (min-width: 768px) {
  .text-md-end   { text-align: right !important; }
  .text-md-start { text-align: left !important; }
}

/* ============================================================
   Width / Height
   ============================================================ */
.w-25   { width: 25% !important; }
.w-50   { width: 50% !important; }
.w-75   { width: 75% !important; }
.w-100  { width: 100% !important; }
.w-auto { width: auto !important; }
.h-100  { height: 100% !important; }
.h-auto { height: auto !important; }
.mw-100 { max-width: 100% !important; }
.mh-100 { max-height: 100% !important; }

/* ============================================================
   Border, rounded, shadow, overflow, position
   ============================================================ */
.border          { border: 1px solid var(--border-default) !important; }
.border-top      { border-top: 1px solid var(--border-default) !important; }
.border-right    { border-right: 1px solid var(--border-default) !important; }
.border-bottom   { border-bottom: 1px solid var(--border-default) !important; }
.border-left     { border-left: 1px solid var(--border-default) !important; }
.border-0        { border: 0 !important; }
.border-success  { border-color: var(--success) !important; }
.border-danger   { border-color: var(--danger) !important; }
.border-warning  { border-color: var(--warning) !important; }

.rounded         { border-radius: var(--r-sm) !important; }
.rounded-pill    { border-radius: 50rem !important; }
.rounded-circle  { border-radius: 50% !important; }
.rounded-0       { border-radius: 0 !important; }

.shadow-none { box-shadow: none !important; }
.shadow-sm   { box-shadow: var(--shadow-sm, 0 1px 2px rgba(0,0,0,0.18)) !important; }
.shadow      { box-shadow: var(--shadow-md, 0 4px 12px rgba(0,0,0,0.22)) !important; }
.shadow-lg   { box-shadow: var(--shadow-lg, 0 12px 32px rgba(0,0,0,0.32)) !important; }

.overflow-hidden { overflow: hidden !important; }
.overflow-auto   { overflow: auto !important; }
.overflow-scroll { overflow: scroll !important; }

.position-static   { position: static !important; }
.position-relative { position: relative !important; }
.position-absolute { position: absolute !important; }
.position-fixed    { position: fixed !important; }
.position-sticky   { position: sticky !important; }
.invisible { visibility: hidden !important; }
.visible   { visibility: visible !important; }

.float-left  { float: left !important; }
.float-right { float: right !important; }
.float-none  { float: none !important; }

/* ============================================================
   Backgrounds (status, neutral)
   ============================================================ */
.bg-primary    { background-color: var(--accent) !important; color: var(--accent-fg, #fff); }
.bg-success    { background-color: var(--success) !important; color: #fff; }
.bg-danger     { background-color: var(--danger)  !important; color: #fff; }
.bg-warning    { background-color: var(--warning) !important; color: #111; }
.bg-info       { background-color: var(--info)    !important; color: #fff; }
.bg-secondary  { background-color: var(--bg-surface-2) !important; color: var(--text-primary); }
.bg-dark       { background-color: var(--bg-surface-3) !important; color: var(--text-primary); }
.bg-light      { background-color: var(--bg-surface-2) !important; color: var(--text-primary); }
.bg-white      { background-color: #fff !important; color: #111; }
.bg-transparent{ background-color: transparent !important; }

/* ============================================================
   Tables — minimal base; the rich styling comes from
   skyblocks-redesign.css. BS JS doesn't touch tables.
   ============================================================ */
table { width: 100%; }
.table {
  width: 100%;
  margin-bottom: 1rem;
  color: inherit;
  background-color: transparent;
}
.table th, .table td {
  padding: 0.75rem;
  vertical-align: top;
  border-top: 1px solid transparent;
}
.table-responsive { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ============================================================
   Forms (base only — themed in redesign.css)
   ============================================================ */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  line-height: 1.5;
  background-clip: padding-box;
  appearance: none;
}
.form-group { margin-bottom: 1rem; }
.form-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: -5px;
  margin-left: -5px;
}
.form-row > .col, .form-row > [class*="col-"] { padding-right: 5px; padding-left: 5px; }
.form-inline { display: flex; flex-flow: row wrap; align-items: center; }
.form-check { position: relative; display: block; padding-left: 1.25rem; }
.form-check-input { position: absolute; margin-top: 0.3rem; margin-left: -1.25rem; }
.form-check-label { margin-bottom: 0; }

.is-invalid { border-color: var(--danger) !important; }
.invalid-feedback {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  font-size: 0.875em;
  color: var(--danger);
}

/* ============================================================
   Input-group
   ============================================================ */
.input-group {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  width: 100%;
}
.input-group > .form-control,
.input-group > .custom-select,
.input-group > .custom-file {
  position: relative;
  flex: 1 1 auto;
  width: 1%;
  min-width: 0;
  margin-bottom: 0;
}
.input-group-prepend,
.input-group-append { display: flex; }
.input-group-text {
  display: flex;
  align-items: center;
  padding: 0.375rem 0.75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

/* ============================================================
   Buttons — base only; themed in redesign.css
   ============================================================ */
.btn {
  display: inline-block;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  vertical-align: middle;
  user-select: none;
  border: 1px solid transparent;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  border-radius: 0.25rem;
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  color: inherit;
}
.btn:disabled, .btn.disabled { opacity: 0.65; pointer-events: none; }
.btn-block { display: block; width: 100%; }

/* ============================================================
   Cards — base only; themed in redesign.css
   ============================================================ */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-clip: border-box;
}
.card-header, .card-body, .card-footer { padding: 1rem; }
.card-title { margin-bottom: 0.5rem; }

/* ============================================================
   Badge — base only
   ============================================================ */
.badge {
  display: inline-block;
  padding: 0.25em 0.4em;
  font-size: 75%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  vertical-align: baseline;
  border-radius: 0.25rem;
}

/* ============================================================
   Pagination — base only; themed in redesign.css
   ============================================================ */
.pagination { display: flex; padding-left: 0; list-style: none; }
.page-link {
  position: relative; display: block;
  padding: 0.5rem 0.75rem;
  line-height: 1.25;
  text-decoration: none;
}

/* ============================================================
   Modals — base CSS that `bootstrap.min.js` REQUIRES to render.
   Skyblocks-redesign.css overrides visuals with !important.
   ============================================================ */
.modal-open { overflow: hidden; }
.modal {
  position: fixed; top: 0; left: 0;
  z-index: 1050;
  display: none;
  width: 100%; height: 100%;
  overflow: hidden;
  outline: 0;
}
.modal.fade .modal-dialog {
  transition: transform 0.3s ease-out;
  transform: translate(0, -50px);
}
.modal.show .modal-dialog { transform: none; }
.modal-dialog {
  position: relative;
  width: auto;
  margin: 0.5rem;
  pointer-events: none;
}
.modal-content {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-clip: padding-box;
  outline: 0;
}
.modal-backdrop {
  position: fixed; top: 0; left: 0;
  z-index: 1040;
  width: 100vw; height: 100vh;
  background-color: #000;
}
.modal-backdrop.fade { opacity: 0; }
.modal-backdrop.show { opacity: 0.5; }
.modal-header, .modal-body, .modal-footer { padding: 1rem; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 1rem); }
@media (min-width: 576px) {
  .modal-dialog { max-width: 500px; margin: 1.75rem auto; }
  .modal-dialog-centered { min-height: calc(100% - 3.5rem); }
  .modal-sm { max-width: 300px; }
}
@media (min-width: 992px) {
  .modal-lg, .modal-xl { max-width: 800px; }
}

/* ============================================================
   Fade transition — used by modal/dropdown/alert
   ============================================================ */
.fade { transition: opacity 0.15s linear; }
.fade:not(.show) { opacity: 0; }

/* ============================================================
   Collapse — needed by `bootstrap.min.js` collapse plugin
   ============================================================ */
.collapse:not(.show) { display: none; }
.collapsing {
  position: relative;
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}

/* ============================================================
   Dropdown — base structure; themed in redesign.css
   ============================================================ */
.dropdown, .dropup, .dropright, .dropleft { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 0;
  z-index: 1000;
  display: none;
  float: left;
  min-width: 10rem;
  padding: 0.5rem 0;
  margin: 0.125rem 0 0;
  font-size: 1rem;
  color: inherit;
  text-align: left;
  list-style: none;
  background-clip: padding-box;
}
.dropdown-menu.show { display: block; }
.dropdown-menu-right { right: 0; left: auto; }
.dropdown-item {
  display: block;
  width: 100%;
  padding: 0.25rem 1.5rem;
  clear: both;
  font-weight: 400;
  text-align: inherit;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  cursor: pointer;
}
.dropdown-divider {
  height: 0;
  margin: 0.5rem 0;
  overflow: hidden;
  border-top: 1px solid var(--border-subtle);
}

/* dropdown-toggle caret (themed in redesign.css for btn-group) */
.dropdown-toggle::after {
  display: inline-block;
  margin-left: 0.255em;
  vertical-align: 0.255em;
  content: "";
  border-top: 0.3em solid;
  border-right: 0.3em solid transparent;
  border-bottom: 0;
  border-left: 0.3em solid transparent;
}

/* ============================================================
   Tabs (data-toggle="tab")
   ============================================================ */
.tab-content > .tab-pane { display: none; }
.tab-content > .active   { display: block; }

/* ============================================================
   Tooltip — base positioning; themed in redesign.css
   ============================================================ */
.tooltip {
  position: absolute;
  z-index: 1070;
  display: block;
  margin: 0;
  font-style: normal;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-decoration: none;
  text-shadow: none;
  text-transform: none;
  letter-spacing: normal;
  word-break: normal;
  word-spacing: normal;
  white-space: normal;
  font-size: 0.875rem;
  word-wrap: break-word;
  opacity: 0;
}
.tooltip.show { opacity: 0.9; }
.tooltip .arrow {
  position: absolute;
  display: block;
  width: 0.8rem;
  height: 0.4rem;
}
.tooltip-inner {
  max-width: 200px;
  padding: 0.25rem 0.5rem;
  color: #fff;
  text-align: center;
  background-color: #000;
  border-radius: 0.25rem;
}

/* ============================================================
   Alert — base; themed in redesign.css
   ============================================================ */
.alert {
  position: relative;
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.25rem;
}

/* ============================================================
   Progress — base
   ============================================================ */
.progress {
  display: flex;
  height: 1rem;
  overflow: hidden;
  font-size: 0.75rem;
  background-color: var(--bg-surface-2);
  border-radius: var(--r-sm);
}
.progress-bar {
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  background-color: var(--accent);
  transition: width 0.6s ease;
}

/* ============================================================
   Close button — base (re-themed in redesign.css)
   ============================================================ */
.close {
  float: right;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: #000;
  text-shadow: 0 1px 0 #fff;
  opacity: 0.5;
  background: transparent;
  border: 0;
}

/* ============================================================
   sr-only helper
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Misc bits that Black Dashboard provided incidentally
   ============================================================ */
.clearfix::after { display: block; clear: both; content: ""; }
.fixed-top {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 1030;
}
