:root {
  /* Base Colors */
  --color-text-main: rgba(58, 53, 65, 0.87);
  --color-bg-main: #f4f6f9;
  --color-white: #ffffff;

  /* Theme Colors */
  --color-primary: #007bff;
  --color-primary-hover: #0056b3;
  --color-primary-light: #00b0ff;
  --color-primary-border: #80bdff;
  --color-danger: #dc3545;
  --color-danger-dark: #e60049;
  --color-success: #50e991;
  --color-success-alt: #28a745;
  --color-warning: #ffc107;
  --color-info: #0bb4ff;
  --color-info-alt: #17a2b8;

  /* Grays & Neutrals */
  --color-gray-fafbfb: #fafbfb;
  --color-gray-f8f9fa: #f8f9fa;
  --color-gray-fbfbfb: #fbfbfb;
  --color-gray-f9f9f9: #f9f9f9;
  --color-gray-f6f6f6: #f6f6f6;
  --color-gray-f3f3f3: #f3f3f3;
  --color-gray-f2f4f6: #f2f4f6;
  --color-gray-eceff2: #eceff2;
  --color-gray-f0f0f0: #f0f0f0;
  --color-gray-e0e0e0: #e0e0e0;
  --color-gray-dee2e6: #dee2e6;
  --color-gray-ced4da: #ced4da;
  --color-gray-d0d0d0: #d0d0d0;
  --color-gray-c0c0c0: #c0c0c0;
  --color-gray-adb5bd: #adb5bd;
  --color-gray-ddd: #ddd;
  --color-gray-999: #999;
  --color-gray-6c757d: #6c757d;
  --color-gray-666: #666;
  --color-gray-495057: #495057;
  --color-gray-343a40: #343a40;
  --color-gray-3a3541: #3a3541;
  --color-gray-333: #333;

  /* Semantic Gray Aliases */
  /* --color-gray-01: var(--color-gray-fbfbfb); */
  /* --color-gray-02: var(--color-gray-fafbfb); */
  /* --color-gray-03: var(--color-gray-f9f9f9); */
  /* --color-gray-04: var(--color-gray-f8f9fa); */
  /* --color-gray-05: var(--color-gray-f6f6f6); */
  /* --color-gray-06: var(--color-gray-f3f3f3); */
  /* --color-gray-07: var(--color-gray-f2f4f6); */
  /* --color-gray-08: var(--color-gray-f0f0f0); */
  /* --color-gray-09: var(--color-gray-eceff2); */
  /* --color-gray-10: var(--color-gray-e0e0e0); */
  /* --color-gray-11: var(--color-gray-dee2e6); */
  /* --color-gray-12: var(--color-gray-ced4da); */
  /* --color-gray-13: var(--color-gray-d0d0d0); */
  /* --color-gray-14: var(--color-gray-c0c0c0); */
  /* --color-gray-15: var(--color-gray-ddd); */
  /* --color-gray-16: var(--color-gray-adb5bd); */
  /* --color-gray-17: var(--color-gray-999); */
  /* --color-gray-18: var(--color-gray-6c757d); */
  /* --color-gray-19: var(--color-gray-666); */
  /* --color-gray-20: var(--color-gray-495057); */
  /* --color-gray-21: var(--color-gray-3a3541); */
  /* --color-gray-22: var(--color-gray-343a40); */
  /* --color-gray-23: var(--color-gray-333); */

  /* Specific Component Colors */
  --color-blue-9ecaed: #9ecaed;
  --color-green-caed9e: #caed9e;
  --color-blue-bfdfff: #bfdfff;
  --color-auth0: #eb5424;

  /* Named Colors */
  --color-named-gray: gray;
  --color-named-red: red;
  --color-named-limegreen: limegreen;
  --color-named-darkgray: darkgray;

  /* Alpha/Shadow Colors */
  --color-shadow-04: rgba(0, 0, 0, 0.04);
  --color-shadow-06: rgba(0, 0, 0, 0.06);
  --color-shadow-10: rgba(0, 0, 0, 0.1);
  --color-shadow-125: rgba(0, 0, 0, 0.125);
  --color-shadow-15: rgba(0, 0, 0, 0.15);
  --color-shadow-30: rgba(0, 0, 0, 0.3);

  --color-info-alt-alpha-20: rgba(23, 162, 184, 0.2);
  --color-info-alt-alpha-40: rgba(23, 162, 184, 0.4);
  --color-info-alt-alpha-80: rgba(23, 162, 184, 0.8);

  --color-primary-alpha-08: rgba(0, 123, 255, 0.08);
  --color-primary-alpha-15: rgba(0, 123, 255, 0.15);
}

/* --- Reset ---------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  hanging-punctuation: first last;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

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

textarea {
  resize: vertical;
}

a {
  color: inherit;
  text-decoration-skip-ink: auto;
}

@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* -------------------------------------------------------------------------- */

html {
  font-size: 12px;
}

body {
  min-height: 100vh;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.15px;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
}

.ui-widget {
  font-family: "Poppins", sans-serif !important;
  color: var(--color-text-main) !important;
  font-size: 1rem !important;
}

.btn {
  font-size: 1rem;
}

.nav-icon {
  font-size: 1rem !important;
}

ul.sortable-project-list li.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul.sortable-project-list li.nav-item div.dropdown {
  cursor: pointer;
  display: none;
}

ul.sortable-project-list li.nav-item:hover div.dropdown {
  display: block;
}

ul.sortable-project-list li.nav-item:hover div.dropdown div.dropdown-container {
  padding-left: 5px;
  padding-right: 5px;
}

h1,
.content-header h1 {
  font-weight: 700;
  font-size: 2rem;
}

h2 {
  font-weight: 600;
  font-size: 1.7rem;
}

h3 {
  font-weight: 600;
  font-size: 1.4rem;
}

h4 {
  font-weight: 600;
  font-size: 1.3rem;
}

h5 {
  font-weight: 600;
  font-size: 1.2rem;
}

h1.logo {
  font-weight: 400;
  color: var(--color-white);
}

.navbar-light {
  background-color: var(--color-bg-main);
}

.main-sidebar {
  width: 250px;
  background-color: var(--color-bg-main);
}

/* Sticky top navbar — stays visible when content scrolls */
nav.main-header {
    position: sticky;
    top: 0;
    z-index: 1034;
}

/* Fixed sidebar — completely independent of content height/scrolling.
   Starts below the navbar (top: 57px) and fills to the bottom.
   Uses flexbox so the brand-link takes its natural height and
   .sidebar fills the remainder without hardcoded calc(). */
aside.main-sidebar {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    top: 57px;
    left: 0;
    bottom: 0;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden;
}

.sidebar {
  padding-left: 0;
}

.main-footer {
  border: none;
  background-color: var(--color-bg-main);
  text-align: left;
}

.verify-info {
  border-bottom: 1px solid var(--color-gray-dee2e6);
  padding: 1em 1em 1em 0 !important;
}

.verify-info div {
  border-left: 8px solid var(--color-warning);
}

/* Overriding parent styles for overflow */
.main-sidebar a.nav-link.active {
  position: relative;
  overflow: visible;
  z-index: 1;
  /* ensures the actual link stays above the backgrounds */
  border-bottom-right-radius: 100px;
  border-top-right-radius: 100px;
}

/* Gradient background extending to the left */
.main-sidebar a.nav-link.active::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: 100%;
  left: -100vw;
  z-index: -2;
  /* below the main content but above the solid background */
  background-image: linear-gradient(
    to left,
    var(--color-primary),
    var(--color-primary-light)
  );
}

/* Solid background to prevent any content overlap with the gradient */
.main-sidebar a.nav-link.active::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-primary);
  /* this matches the start of your gradient */
  z-index: -1;
  /* below the main content but above the gradient */
  border-bottom-right-radius: 100px;
  border-top-right-radius: 100px;
}

/* 0000000000000000 */

.sidebar-mini.sidebar-collapse .main-sidebar,
.sidebar-mini.sidebar-collapse .main-sidebar::before {
  border-right: 1px solid var(--color-gray-dee2e6) !important;
}

.main-header {
  border: none;
}

.nowrap {
  white-space: nowrap;
}

.brand-image {
  margin-top: -0.5rem;
  height: 33px;
}

.brand-text {
  margin-left: 0 !important;
}

.timeline-header,
.timeline-header h3 {
  font-size: 16px;
}

.timeline-header {
  width: 100%;
}

.timeline-body,
.form-control {
  font-size: 1rem !important;
}

.sf-param-timeline-header {
  display: table;
}

.sf-action-h {
  display: table-cell;
  vertical-align: middle;
}

.CodeMirror {
  width: 100%;
  border: 1px solid var(--color-gray-ddd);
}

.field-with-error {
  border-color: var(--color-danger) !important;
  color: var(--color-danger) !important;
}

.sf-btn-extrapadding {
  padding-left: 3em;
  padding-right: 3em;
}

.squishable {
  --squish-at: 1.5rem;
  white-space: nowrap;
}

.squishable::before,
.squishable::after {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}

.squishable::before {
  content: attr(data-short);
  max-width: calc((var(--squish-at) - 100%) * 999);
}

.squishable::after {
  content: attr(aria-label);
  max-width: calc((100% - var(--squish-at)) * 999);
}

.non-squishable {
  display: inline-block;
  max-width: 100%;
}

.squishable-table {
  width: 100%;
}

th,
td {
  max-width: 1.5rem;
}

.card {
  /*box-shadow: 0 0 1px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.15);*/
  box-shadow: 1px 1px 5px 1px var(--color-shadow-10);
}

.card-header {
  border-bottom: none;
  font-weight: 600;
  font-size: 20px;
}

.card-header.test-list {
  border-bottom: none;
  font-weight: 400;
  font-size: 1rem;
}

.card-header.project-list {
  border-bottom: none;
  font-weight: 400;
  font-size: 1rem;
}

.card-secondary:not(.card-outline) > .card-header {
  background-color: var(--color-white);
}

.history-card {
  margin-bottom: 0.5rem;
}

.history-card .card-body {
  padding-top: 0.7em;
  padding-bottom: 0.7em;
}

.history-card .btn {
  margin-top: 3px;
  margin-bottom: 3px;
}

textarea {
  outline: none;
}

@media screen and (min-width: 900px) {
  .subscription-select {
    width: 720px;
  }
}

.subscription-card .card-widget {
  background-color: var(--color-gray-fafbfb);
}

.subscription-card .card-footer {
  padding: 0.75rem 1.25rem 0.75rem 1.25rem;
}

.subscription-card .widget-user-header {
  height: 100%;
}

.subscription-card .card-footer button {
  margin: 0.5em;
}

.subscription-card .subscription-selected {
  border: 2px solid var(--color-blue-9ecaed);
  box-shadow: 0 0 10px var(--color-blue-9ecaed);
  border-radius: 7px;
}

.subscription-card .subscription-current {
  border: 2px solid var(--color-green-caed9e);
  box-shadow: 0 0 10px var(--color-green-caed9e);
  border-radius: 7px;
}

.subscription-card .subscription-selector {
  text-align: center;
  margin-top: -0.5em;
}

.subscription-card .subscription-features {
  padding: 0 1em;
  margin-top: 1em;
  background-color: var(--color-gray-f8f9fa);
}

.subscription-card #confirm_subscription-form .subscription-features {
  margin-top: 0em;
}

.subscription-card #confirm_subscription-form .subscription-services {
  padding: 1em 1em;
  margin-top: -1em;
  background-color: var(--color-gray-f8f9fa);
}

.subscription-card .subscription-features .fa-arrow-right,
.subscription-card .subscription-services .fa-arrow-right {
  width: 1.5em;
  color: var(--color-named-gray);
}

.subscription-card .subscription-features .fa-xmark,
.subscription-card .subscription-services .fa-xmark {
  width: 1.5em;
  color: var(--color-named-red);
}

.subscription-card .subscription-features .fa-check,
.subscription-card .subscription-services .fa-check {
  width: 1.5em;
  color: var(--color-named-limegreen);
}

.subscription-currency-selector {
  text-align: right;
  vertical-align: middle;
  display: inline;
}

.subsciption-header {
  margin-bottom: 1rem;
}

.light-gray {
  color: var(--color-gray-c0c0c0);
}

#card-errors {
  color: var(--color-danger);
}

.ElementsApp,
.ElementsApp .InputElement {
  color: var(--color-gray-495057) !important;
}

div.sidebar nav ul.nav-sidebar li ul {
  margin-left: 2em;
}

.sf-advanced-param {
  font-size: 0.8em;
}

.param-require-label {
  font-size: 0.6em;
  text-transform: uppercase;
  font-weight: lighter;
}

.tooltip-inner {
  max-width: 480px !important;
}

.overflow-ellipsis {
  text-overflow: ellipsis;
  overflow: hidden;
}

#testcase-description {
  padding: 0.5em 1em 0.5em 1em;
}

.info-box.sf-result-status-box {
  padding: 0;
  flex-wrap: wrap !important;
}

.info-box.sf-result-status-box .info-box-icon,
.info-box.sf-result-status-box .info-box-content {
  padding: 1em;
}

.info-box-content a .info-box-text {
  text-decoration: underline;
}

.info-box-content.text-secondary a,
.info-box-text .text-secondary {
  color: var(--color-gray-6c757d) !important;
}

.info-box-content.text-success a,
.info-box-text .text-success {
  color: var(--color-success) !important;
}

.info-box-content.text-danger a,
.info-box-text .text-danger {
  color: var(--color-danger-dark) !important;
}

.info-box-content.text-info a,
.info-box-text .text-info {
  color: var(--color-info) !important;
}

.info-box.sf-result-status-box .info-box-text {
  text-transform: uppercase;
}

.info-box.sf-result-status-box .info-box-number {
  font-size: 2em;
  font-weight: bold;
}

.info-box.sf-result-status-box .info-box-break {
  flex-basis: 100%;
  height: 0;
}

.info-box.sf-result-status-box .info-box-footer {
  background-color: var(--color-white);
  color: var(--color-gray-343a40);
  padding-top: 1em;
  width: 100%;
  border: 1px solid var(--color-gray-ddd);
  border-top: none;
}

.info-box.sf-result-status-box .info-box-footer p {
  margin-bottom: 0;
}

.info-box.sf-result-status-box .info-box-footer li {
  margin-bottom: 1em;
}

.no-padding-right {
  padding-right: 0px !important;
}

.sf-code {
  font-family: monospace;
  white-space: pre;
  font-size: 16px;
}

ul.api-attribute-list,
ul.api-list {
  list-style-type: none;
}

ul.api-attribute-list li {
  border-top: 1px solid var(--color-gray-ddd);
  padding-top: 10px;
  padding-bottom: 10px;
}

ul.api-attribute-list li p {
  margin-top: 3px;
  margin-bottom: 3px;
}

.api-attribute-name {
  font-family: monospace;
  font-weight: 600;
  font-size: 13px;
}

.api-attribute-type {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: var(--color-gray-999);
  margin-left: 0.5em;
}

.api-attribute-req {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--color-gray-666);
  margin-left: 0.5em;
}

.api-attribute-value-label {
  font-family: Roboto, "Helvetica Neue", sans-serif;
  font-weight: 400;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--color-gray-666);
  margin-left: 0.5em;
}

.api-attribute-value {
  font-family: monospace;
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-gray-666);
  border: 1px solid var(--color-gray-ddd);
  border-radius: 4px;
  padding: 4px;
}

.api-attribute-description {
  font-size: 1rem;
  color: var(--color-gray-666);
}

pre code.hljs {
  padding: 0px 15px 15px 15px;
  border-radius: 10px;
  font-size: 1rem;
}

pre {
  margin-bottom: 0px;
  padding: 0px;
}

.api-doc-img {
  width: 100%;
  float: left;
  padding: 40px 40px 20px 20px;
}

.sf-example-csv {
  font-weight: 400;
  font-size: 1rem;
  margin-left: 0.5em;
}

.sf-api-doc .card-title {
  font-size: 28px;
}

.sf-api-doc h1 {
  font-size: 32px;
}

.sf-api-doc h2 {
  font-size: 30px;
}

.sf-api-doc h3 {
  font-size: 24px;
}

.sf-card-header {
  font-weight: bold;
}

#sf-confirm-modal .modal-header {
  font-weight: bold;
}

#service-plans-view h3,
#services-view h3 {
  margin-left: 0.8rem;
  margin-top: 0.8rem;
  margin-bottom: 0;
}

#credential-selection .credentials-block {
  margin-left: 20px;
}

#credential-selection .tabulator-table {
  width: 100%;
  font-family:
    "Source Sans Pro",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif,
    "Apple Color Emoji",
    "Segoe UI Emoji",
    "Segoe UI Symbol";
}

#credential-selection .tabulator-row {
  border: none;
  margin-top: 2px;
  margin-bottom: 0px;
  min-height: 2rem !important;
}

#credential-selection .tabulator-cell {
  height: 2rem !important;
  padding: 1px 3px 1px 3px;
  margin: 0;
}

#credential-selection button.tabulator-page {
  padding: 4px 6px;
}

#credential-selection .tabulator-footer {
  margin-top: 1px;
  padding: 4px 6px;
}

#credential-selection .tabulator-col-resize-handle {
  border-left: 1px dashed var(--color-gray-e0e0e0);
}

#credential-selection .tabulator-col-resize-handle.prev {
  border: none;
}

#credential-selection .add-creds-button {
  margin-top: 5px;
}

label.input-error {
  text-align: left;
  color: var(--color-white);
  padding: 0.2rem 0.5rem 0.2rem 0.35rem;
  opacity: 0.8;
  background-color: var(--color-danger);
  border-radius: 3px;
  box-shadow: 0 0 8px var(--color-gray-999);
  -moz-box-shadow: 0 0 8px var(--color-gray-999);
  -webkit-box-shadow: 0 0 8px var(--color-gray-999);
}

label.input-error i,
label.input-error svg {
  margin-right: 5px;
  font-size: 1.2rem;
  position: relative;
  top: 0.12rem;
  opacity: 0.9;
}

.sf-scrollable {
  overflow: scroll;
}

.sf-fixed-400 {
  height: 400px;
}

.sf-nomargin {
  margin: 0;
}

.sf-small-link {
  font-size: 0.8rem;
}

#hepic-modal .modal-dialog {
  width: 80%;
  max-width: 80%;
  height: 80%;
  max-height: 80%;
}

#hepic-modal .modal-content {
  height: 80%;
  max-height: 80%;
}

#hepic-modal .modal-body {
  height: 100%;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
}

#hepic-modal iframe {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  border: none;
}

.sf-form-inline-label {
  font-weight: 400 !important;
}

.bootstrap-tagsinput {
  width: 100% !important;
}

.sf-toggle label {
  font-weight: 400 !important;
}

/* Matrix options: align both toggles vertically (same label column width) */
.bulk-options-bar .bulk-option-label {
  min-width: 340px;
  width: 340px;
}

/* Multi-test toggles: compact width/height for "Multiple"/"Single" */
.sf-toggle-multitest .toggle {
  min-width: 100px !important;
  width: 100px !important;
  min-height: 22px !important;
  height: 22px !important;
}
.sf-toggle-multitest .toggle .toggle-on,
.sf-toggle-multitest .toggle .toggle-off {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  font-size: 0.875rem !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  line-height: 1 !important;
}

.sf-btn-margin {
  margin: 3px;
}

.sf-test-runrow {
  height: 100px;
  min-height: 100px !important;
  border-top: 1px solid var(--color-gray-f0f0f0);
  border-bottom: 1px solid var(--color-gray-f0f0f0);
  margin: 3px;
}

.sf-test-runcol {
  padding-right: 0px;
}

.sf-test-runblock {
  float: left;
  margin: 5px 3px 5px 0px;

  width: 10px;
  height: 75px;
  min-height: 75px;
}

.sf-test-runblock-success {
  background-color: var(--color-success-alt);
  height: 100%;
  border-radius: 25px;
}

.sf-test-runblock-failed {
  background-color: var(--color-danger);
  height: 100%;
  border-radius: 25px;
}

.sf-test-runblock-progress {
  background-color: var(--color-info-alt);
  height: 100%;
  border-radius: 25px;
}

.sf-test-runblock-light1 {
  background-color: var(--color-gray-f9f9f9) !important;
  height: 100%;
  border-radius: 25px;
}

.sf-test-runblock-light2 {
  background-color: var(--color-gray-f6f6f6) !important;
  height: 100%;
  border-radius: 25px;
}

.sf-test-runblock-light3 {
  background-color: var(--color-gray-f3f3f3) !important;
  height: 100%;
  border-radius: 25px;
}

.sf-test-runblock-margin {
  margin-right: 9%;
}

body.sf-kiosk,
body.sf-print {
  padding: 1rem;
}

div.dropdown button.dropdown-toggle i {
  padding-left: 0.7rem;
  padding-right: 0.7rem;
}

div.card.highlight {
  box-shadow:
    0 0 2px var(--color-info-alt-alpha-20),
    0 1px 4px var(--color-info-alt-alpha-40) !important;
  border: 1px solid var(--color-info-alt-alpha-80);
}

/* ── Mobile session/jsGrid table: collapse the two fixed-layout tables into a
      single full-width stacked card list ──────────────────────────────────────
   jsGrid renders the header (labels + filters) and the rows as two separate
   `table-layout: fixed` tables whose column widths are synced via a JS-injected
   <colgroup>.  On narrow screens we hide the header table and break the body
   table out of table layout so every cell flows as a full-width block.  Each
   cell shows its column name from the data-label attribute set in the renderer. */
@media (max-width: 767px) {
    /* Column-label + filter header is redundant once cells carry their own labels */
    .sf-table .jsgrid-grid-header {
        display: none;
    }

    /* Take the body out of fixed table layout; the synced <colgroup> no longer
       applies.  Every level (table → tbody → tr → td) must become a block — a
       leftover table-cell inside a block table gets wrapped in an anonymous
       min-content table and collapses to one character per line (e.g. the
       "No sessions found." row). */
    .sf-table .jsgrid-grid-body {
        overflow-x: hidden;
    }
    .sf-table .jsgrid-grid-body > table > colgroup {
        display: none;
    }
    .sf-table .jsgrid-grid-body > table,
    .sf-table .jsgrid-grid-body > table > tbody,
    .sf-table .jsgrid-grid-body > table > tbody > tr,
    .sf-table .jsgrid-grid-body > table > tbody > tr > td {
        display: block;
        width: 100% !important;
        /* The fixed-layout column widths surface as min/max-width on the cells;
           both must be released or the cell stays pinned to its column width. */
        min-width: 0 !important;
        max-width: none !important;
    }

    /* Each row becomes a self-contained full-width card */
    .sf-table tr.sf-grid-row,
    .sf-table tr.sf-grid-row-darker {
        display: block;
        width: 100%;
        margin-bottom: 0.75rem;
        border: 1px solid var(--color-shadow-125);
        border-radius: 4px;
        overflow: hidden;
    }

    /* Each cell becomes a full-width block carrying an inline "Label: value"
       line.  Plain block layout (not flex) keeps inline icons at their natural
       size and lets text wrap normally.  Override the desktop pill
       borders/radii (set without !important, so equal-specificity rules here
       win by source order); text-center utility cells need !important. */
    .sf-table tr.sf-grid-row td,
    .sf-table tr.sf-grid-row-darker td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        box-sizing: border-box;
        padding: 0.5rem 0.75rem;
        text-align: left !important;
        white-space: normal;
        overflow-wrap: anywhere;
        border: 0;
        border-bottom: 1px solid var(--color-shadow-06);
        border-radius: 0;
    }
    .sf-table tr.sf-grid-row td:first-child,
    .sf-table tr.sf-grid-row-darker td:first-child {
        border-left: 0;
        border-radius: 0;
    }
    .sf-table tr.sf-grid-row td:last-child,
    .sf-table tr.sf-grid-row-darker td:last-child {
        border-bottom: 0;
        border-radius: 0;
    }

    /* Inline column label, only for cells that carry a non-empty data-label
       (e.g. action/button columns have none and stay label-less). */
    .sf-table tr.sf-grid-row td[data-label]:not([data-label=""])::before,
    .sf-table tr.sf-grid-row-darker td[data-label]:not([data-label=""])::before {
        content: attr(data-label) ": ";
        font-weight: 600;
        color: var(--color-gray-6c757d);
        margin-right: 0.35rem;
    }

    /* Drop cells with no content (e.g. an empty actions column, or a missing
       duration) so they don't render as blank bordered lines. */
    .sf-table tr.sf-grid-row td:empty,
    .sf-table tr.sf-grid-row-darker td:empty {
        display: none;
    }
}

.sf-table-container.is-invalid {
  border: 1px solid var(--color-named-red) !important;
}

.sf-table .jsgrid-grid-header {
  background-color: var(--color-white);
}

.sf-table .jsgrid-grid-header th,
.sf-table .jsgrid-grid-header td {
  background-color: var(--color-white);
  border: 0;
}

.sf-table .jsgrid-grid-header th {
  font-weight: bold;
  padding: 0.75rem;
}

.sf-table .jsgrid-grid-header td {
  padding: 0 0.75rem 0.75rem 0.75rem;
}

.sf-table .jsgrid-header-sort-asc:before {
  border-color: transparent transparent var(--color-primary) transparent;
}

.sf-table .jsgrid-header-sort-desc:before {
  border-color: var(--color-primary) transparent transparent transparent;
}

.sf-table .jsgrid-grid-body {
  border: 0;
}

.sf-table .jsgrid-grid-header {
  border: 0;
}

.sf-table .jsgrid-grid-body table {
  border-collapse: separate;
  border-spacing: 0 0.5rem;
}

tr.sf-grid-row td,
tr.sf-grid-row-darker td {
  padding: 0.75rem;
  border-top: 1px solid var(--color-shadow-125);
  border-bottom: 1px solid var(--color-shadow-125);
}

tr.sf-grid-row td {
  background-color: var(--color-white);
}

tr.sf-grid-row-darker td {
  background-color: var(--color-gray-fbfbfb);
}

.sf-grid-btncol {
  color: var(--color-white);
}

tr.jsgrid-edit-row {
  background: var(--color-white);
}

tr.jsgrid-edit-row td.jsgrid-cell {
  background: var(--color-white);
  border: 0;
}

tr.jsgrid-selected-row td.highlight-selected {
  cursor: pointer;
  background-color: var(--color-blue-bfdfff) !important;
}

tr.sf-grid-row td:first-child,
tr.sf-grid-row-darker td:first-child {
  border-top-left-radius: 4px;
  border-bottom-left-radius: 4px;
  border-left: 1px solid var(--color-shadow-125);
}

tr.sf-grid-row td:last-child,
tr.sf-grid-row-darker td:last-child {
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  border-right: 1px solid var(--color-shadow-125);
}

.sf-creds-table .jsgrid-insert-row input[type="text"],
.sf-creds-table .jsgrid-edit-row input[type="text"] {
  border: 1px solid var(--color-shadow-125);
  border-radius: 3px;
  padding: 0.3em 0.5em;
}

tr.sf-grid-row-normal .jsgrid-cell,
.sf-creds-table .jsgrid-insert-row .jsgrid-cell {
  padding: 0.75rem;
  padding-left: 2rem;
  border: 0;
  border-top: 1px solid var(--color-shadow-125) !important;
  border-bottom: 1px solid var(--color-shadow-125) !important;
  background: var(--color-gray-fbfbfb);
}

.sf-creds-table .jsgrid-insert-row .jsgrid-cell {
  padding-left: 0.75rem;
}

.sf-creds-table .jsgrid-control-field {
  padding-left: 0.75rem !important;
}

tr.sf-grid-row-normal td:first-child,
.sf-creds-table .jsgrid-insert-row td:first-child {
  border-top-left-radius: 4px !important;
  border-bottom-left-radius: 4px !important;
  border-left: 1px solid var(--color-shadow-125) !important;
}

tr.sf-grid-row-normal td:last-child,
.sf-creds-table .jsgrid-insert-row td:last-child {
  border-top-right-radius: 4px !important;
  border-bottom-right-radius: 4px !important;
  border-right: 1px solid var(--color-shadow-125) !important;
}

tr.jsgrid-filter-row,
tr.jsgrid-filter-row .jsgrid-cell {
  border: 0;
}

.sf-creds-table .jsgrid-grid-header .jsgrid-table {
  border-collapse: separate !important;
}

.jsgrid-load-panel:before {
  border: 2px solid var(--color-primary) !important;
  /* load spinner color to primary color */
}

.ui-widget .jsgrid a {
  color: var(--color-primary) !important;
  text-decoration: none !important;
}

.ui-widget .jsgrid a:hover {
  color: var(--color-primary-hover) !important;
  text-decoration: none !important;
}

.sf-test-sessions {
  /*    min-height: 135px;*/
}

.sf-project-runs {
  min-height: 130px;
}

.ui-progressbar p {
  position: relative;
  top: -75%;
  /* Center vertically */
  left: 50%;
  /* Center horizontally */
  /*transform: translate(-50%, -50%); /* Adjusts centering */
  color: var(--color-named-darkgray);
  font-size: 10px;
  font-weight: bold;
  /*background: rgba(0, 0, 0, 0.5); /* Optional background */
  /*padding: 5px 10px;*/
}

.sf-test-projects {
  /*    min-height: 135px;*/
}

.modal {
  padding: 20px !important;
}

#upload-bar {
  background-color: var(--color-primary);
  height: 1rem;
  min-height: 1rem;
}

div#daterange {
  color: var(--color-gray-6c757d);
}

.details-card .card-header {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
  font-weight: bold;
  text-align: center;
}

.details-card .card-body {
  font-family: "Roboto", "Helvetica", "Arial", sans-serif;
  font-size: 1rem;
}

.card-header a.toggle-button {
  color: var(--color-primary);
  text-decoration: none;
}

.card-header a.toggle-button:hover {
  color: var(--color-primary-hover);
  text-decoration: none;
}

.sf-test-sessions .card-body .ui-widget-header {
  background: var(--color-white);
  border: none;
  border-bottom: 1px solid var(--color-gray-ddd);
}

.sf-project-runs .card-body .ui-widget-header {
  background: var(--color-white);
  border: none;
  border-bottom: 1px solid var(--color-gray-ddd);
}

.sf-test-projects .card-body .ui-widget-header {
  background: var(--color-white);
  border: none;
  border-bottom: 1px solid var(--color-gray-ddd);
}

.sf-test-projects .card-body .ui-widget.ui-widget-content {
  border: none;
}

.sf-test-projects .card-header b {
  font-weight: 600;
}

table.sf-traceroute-table {
}

table.sf-traceroute-table th {
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
}

table.sf-traceroute-table td {
  text-align: center;
  vertical-align: middle;
}

td.sf-traceroute-col-narrow {
  max-width: 6rem;
  width: 6rem;
  white-space: nowrap;
}

.sf-bg-dark {
  background-color: var(--color-gray-f2f4f6);
}

.sf-bg-darker {
  background-color: var(--color-gray-eceff2);
}

.checkbox-1x {
  transform: scale(1.5);
  -webkit-transform: scale(1.5);
}

.radio-1x {
  transform: scale(1.5);
  -webkit-transform: scale(1.5);
}

div.sf-test-session-slot-list div.box.placeholder {
  border: 1px dashed var(--color-gray-d0d0d0);
  min-height: 100px;
  margin-top: 20px;
  margin-bottom: 20px;
}

ul.sortable-project-list li.box.placeholder {
  border: 1px dashed var(--color-gray-d0d0d0);
  min-height: 20px;
  margin-top: 5px;
  margin-bottom: 5px;
}

div.sf-test-session-slot-list .sf-test-drag {
  cursor: move;
  /* Fallback if grab cursor is unsupported */
  cursor: -webkit-grab;
  /* Old versions of Chrome/Safari */
  cursor: -moz-grab;
  /* Old versions of Firefox */
  cursor: grab;
  /* Standard: Use this if supported */

  padding: 0;
  margin: 10px;
  margin-top: auto;
  margin-bottom: auto;
  color: var(--color-gray-d0d0d0);

  width: 2rem;
  max-width: 2rem;
}

.only-print {
  display: none;
}

.always-print {
}

.card-sip-traces,
.card-call-states,
.sipp-error-logs,
.media-statistics,
.media-details,
.signaling-insights,
.result-status,
.codeceptjs-report,
.dns-logs,
.dns-metrics,
.tcp-metrics,
.traffic-metrics,
.advanced-metrics,
.webrequest-status {
  width: 100%;
  border: none;
  frameborder: 0;
}

.card-sip-traces {
  height: 500px;
}

.card-call-states,
.media-statistics,
.media-details,
.signaling-insights,
.result-status,
.dns-metrics,
.tcp-metrics,
.traffic-metrics,
.advanced-metrics {
  height: 250px;
}

.media-details-2 {
  width: 100%;
  border: none;
  frameborder: 0;
}

.media-details-2 {
  height: 350px;
}

.media-statistics-dashboard {
  width: 100%;
  height: 2880px;
  border: none;
}

.sipp-error-logs,
.dns-logs,
.webrequest-status {
  height: 400px;
}

.tls-insights {
  height: 500px;
}

.codeceptjs-report {
  height: 1024px;
}

#error-description-long-container {
  display: none;
  padding-bottom: 12px;
}

/*** negative margins ***/
.mt--1 {
  margin-top: -0.25rem !important;
}

.mr--1 {
  margin-right: -0.25rem !important;
}

.mb--1 {
  margin-bottom: -0.25rem !important;
}

.ml--1 {
  margin-left: -0.25rem !important;
}

.mt--2 {
  margin-top: -0.5rem !important;
}

.mr--2 {
  margin-right: -0.5rem !important;
}

.mb--2 {
  margin-bottom: -0.5rem !important;
}

.ml--2 {
  margin-left: -0.5rem !important;
}

.mt--3 {
  margin-top: -1rem !important;
}

.mr--3 {
  margin-right: -1rem !important;
}

.mb--3 {
  margin-bottom: -1rem !important;
}

.ml--3 {
  margin-left: -1rem !important;
}

.mt--4 {
  margin-top: -1.5rem !important;
}

.mr--4 {
  margin-right: -1.5rem !important;
}

.mb--4 {
  margin-bottom: -1.5rem !important;
}

.ml--4 {
  margin-left: -1.5rem !important;
}

.mt--5 {
  margin-top: -3rem !important;
}

.mr--5 {
  margin-right: -3rem !important;
}

.mb--5 {
  margin-bottom: -3rem !important;
}

.ml--5 {
  margin-left: -3rem !important;
}

.minh-1 {
  min-height: 1.5rem !important;
}

.minh-2 {
  min-height: 3rem !important;
}

.minh-3 {
  min-height: 4.5rem !important;
}

.maxh-1 {
  max-height: 1.5rem !important;
}

.maxh-2 {
  max-height: 3rem !important;
}

.maxh-3 {
  max-height: 4.5rem !important;
}

.width-50pc {
  width: 50%;
}

.auth0::before {
  content: "A";
  font-weight: bold;
  color: var(--color-auth0);
}

/* OAuth Login Button Styles */
.oauth-login-btn {
  min-width: 220px;
  font-weight: 500;
  background-color: var(--color-white);
  border: 1px solid var(--color-gray-333);
  color: var(--color-gray-333);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.oauth-login-btn:hover {
  background-color: var(--color-gray-f8f9fa);
  border-color: var(--color-gray-495057);
  color: var(--color-gray-495057);
  text-decoration: none;
}

.oauth-login-btn .oauth-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  position: absolute;
  left: 1rem;
}

/* OR Divider */
.oauth-divider {
  display: flex;
  align-items: center;
  margin: 1rem 0;
}

.oauth-divider .divider-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--color-gray-dee2e6);
}

.oauth-divider .divider-text {
  padding: 0 1rem;
  color: var(--color-gray-6c757d);
}

/* Wizard Page - Auto-expanding textareas */
.auto-expand-textarea {
  width: 100%;
  min-height: 42px;
  padding: 12px 16px;
  line-height: 1.5;
  border: 1px solid var(--color-gray-ced4da);
  border-radius: 12px;
  box-shadow: 0 1px 3px var(--color-shadow-04);
  resize: none;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.auto-expand-textarea:focus {
  outline: none;
  border-color: var(--color-blue-80bdff);
  box-shadow: 0 2px 6px var(--color-primary-alpha-08);
}

.auto-expand-textarea:hover {
  border-color: var(--color-gray-adb5bd);
}

/* Wizard Page - Response time slider */
.slider-container {
  padding: 10px 15px;
  position: relative;
}

.response-time-slider {
  width: 100%;
  cursor: pointer;
}

.slider-labels {
  display: flex;
  position: relative;
  margin-top: 10px;
  width: 100%;
}

.slider-labels span {
  position: absolute;
  text-align: center;
  font-size: 10px;
  color: var(--color-gray-6c757d);
  transition:
    color 0.2s ease,
    font-weight 0.2s ease;
  transform: translateX(-50%);
  white-space: nowrap;
}

.slider-labels span[data-value="0"] {
  left: 0%;
  transform: none;
  text-align: left;
}

.slider-labels span[data-value="1"] {
  left: 25%;
}

.slider-labels span[data-value="2"] {
  left: 50%;
}

.slider-labels span[data-value="3"] {
  left: 75%;
}

.slider-labels span[data-value="4"] {
  left: auto;
  right: 0%;
  transform: none;
  text-align: right;
}

.slider-labels span.active {
  color: var(--color-primary);
  font-weight: 600;
}

.slider-labels span small {
  font-size: 9px;
  color: var(--color-gray-adb5bd);
}

.slider-labels span.active small {
  color: var(--color-primary);
}

/* Wizard Index Page Styles */
.wizard-card-link {
  text-decoration: none;
  display: block;
  transition: transform 0.2s ease;
}

.wizard-card-link:hover {
  text-decoration: none;
  transform: translateY(-5px);
}

.wizard-card {
  height: 100%;
  border-radius: 12px;
  transition: all 0.3s ease;
  border: 1px solid var(--color-gray-e0e0e0);
  box-shadow: 0 2px 8px var(--color-shadow-06);
}

.wizard-card-link:hover .wizard-card {
  box-shadow: 0 8px 24px var(--color-primary-alpha-15);
  border-color: var(--color-primary);
}

.wizard-card .card-body {
  padding: 2rem 1.5rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.wizard-icon {
  font-size: 4rem;
  color: var(--color-primary);
  transition: all 0.3s ease;
}

.wizard-card-link:hover .wizard-icon {
  transform: scale(1.1);
  color: var(--color-primary-hover);
}

.wizard-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-gray-3a3541);
  margin-bottom: 1rem;
}

.wizard-description {
  font-size: 0.95rem;
  color: var(--color-gray-6c757d);
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.wizard-badge {
  margin-top: auto;
}

.wizard-badge .badge {
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  font-weight: 500;
}

/* Disabled wizard cards */
.wizard-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.wizard-disabled:hover {
  transform: none;
}

.wizard-disabled .wizard-card {
  background-color: var(--color-gray-f8f9fa);
}

.wizard-disabled:hover .wizard-card {
  box-shadow: 0 2px 8px var(--color-shadow-06);
  border-color: var(--color-gray-e0e0e0);
}

.wizard-disabled .wizard-icon {
  color: var(--color-gray-6c757d);
}

.wizard-disabled:hover .wizard-icon {
  transform: none;
  color: var(--color-gray-6c757d);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .wizard-card .card-body {
    padding: 1.5rem 1rem;
    min-height: 280px;
  }

  .wizard-icon {
    font-size: 3rem;
  }

  .wizard-title {
    font-size: 1.3rem;
  }

  .wizard-description {
    font-size: 0.9rem;
  }
}

/* Session Info Overlay */
.sf-session-overlay {
  position: fixed;
  z-index: 1060;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  box-shadow: -2px 0 15px var(--color-shadow-15);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: transform;
}

/* Desktop: Slide from Right */
@media (min-width: 768px) {
  .sf-session-overlay {
    top: 0;
    right: 0;
    width: 450px;
    height: 100vh;
    transform: translateX(100%);
    border-left: 1px solid var(--color-gray-dee2e6);
  }
  .sf-session-overlay.is-active {
    transform: translateX(0);
  }
}

/* Mobile: Slide from Top */
@media (max-width: 767px) {
  .sf-session-overlay {
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    transform: translateY(-100%);
    border-bottom: 1px solid var(--color-gray-dee2e6);
  }
  .sf-session-overlay.is-active {
    transform: translateY(0);
  }
}

.sf-session-overlay .overlay-header {
  background-color: var(--color-gray-f8f9fa);
}

.sf-session-overlay .overlay-body {
  flex: 1;
  overflow-y: auto;
}

.sf-session-overlay-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--color-shadow-30);
  z-index: 1059;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.sf-session-overlay-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Action context chips (run details page) */
.sf-action-context {
    gap: 0.5rem;
}

.sf-ctx-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
    color: #495057;
    white-space: nowrap;
    line-height: 1.4;
}

.sf-ctx-chip i {
    color: #6c757d;
    font-size: 0.9em;
}

.sf-ctx-chip .sf-ctx-label {
    color: #6c757d;
    margin-right: 0.1rem;
}

.sf-ctx-chip strong {
    font-weight: 600;
    color: #343a40;
}

.sf-ctx-chip-warn {
    border-color: #ffc107;
    background: #fff8e1;
    color: #856404;
}

.sf-ctx-chip-warn i,
.sf-ctx-chip-warn .sf-ctx-label {
    color: #997404;
}

.sf-ctx-chip-warn strong {
    color: #856404;
}

/* -----------------------------------------------
   Annotation Overlay
   ----------------------------------------------- */
.sf-annotation-overlay {
    position: fixed;
    z-index: 1060;
    display: flex;
    flex-direction: column;
    background: #fff;
    box-shadow: -2px 0 15px rgba(0,0,0,0.15);
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

@media (min-width: 768px) {
    .sf-annotation-overlay {
        top: 0;
        right: 0;
        width: 480px;
        height: 100vh;
        transform: translateX(100%);
        border-left: 1px solid #dee2e6;
    }
    .sf-annotation-overlay.is-active {
        transform: translateX(0);
    }
}

@media (max-width: 767px) {
    .sf-annotation-overlay {
        top: 0;
        left: 0;
        width: 100%;
        height: 75vh;
        transform: translateY(-100%);
        border-bottom: 1px solid #dee2e6;
    }
    .sf-annotation-overlay.is-active {
        transform: translateY(0);
    }
}

.sf-annotation-overlay .overlay-header {
    background-color: #f8f9fa;
    flex-shrink: 0;
}

.sf-annotation-overlay .overlay-body {
    flex: 1;
    overflow-y: auto;
}

.sf-annotation-overlay .overlay-footer {
    flex-shrink: 0;
    background: #f8f9fa;
}

.sf-annotation-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.3);
    z-index: 1059;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.sf-annotation-overlay-backdrop.is-active {
    opacity: 1;
    visibility: visible;
}

/* Filter clear buttons (shared across dashboard, notifications, etc.) */
.summary-scope-clear {
    display: none;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    border-radius: 11px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0,0,0,0.15);
    background: #fff;
    color: #6c757d;
    padding: 0;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}
.summary-scope-clear i { font-size: 12px; line-height: 1; }
.summary-scope-clear:hover { background: #f8f9fa; color: #343a40; }
.summary-scope-clear:focus { outline: none; box-shadow: 0 0 0 .2rem rgba(0,123,255,.25); }
.summary-scope-select-wrap .select2 { width: 100% !important; }
.summary-scope-select-wrap .select2-selection { padding-right: 28px !important; }

/* Annotation cards */
.sf-annotation-card {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.sf-annotation-card:last-child {
    border-bottom: none;
}

.sf-annotation-card--unread {
    border-left: 3px solid #007bff;
    padding-left: 0.6rem;
    background: #f8fbff;
    border-radius: 0 4px 4px 0;
}

@keyframes sf-annotation-highlight-fade {
    0%   { background-color: #fff3cd; box-shadow: 0 0 0 2px #ffc107; }
    70%  { background-color: #fff3cd; box-shadow: 0 0 0 2px #ffc107; }
    100% { background-color: transparent; box-shadow: none; }
}
.sf-annotation-card--highlight {
    animation: sf-annotation-highlight-fade 2.5s ease-out forwards;
    border-radius: 4px;
}

.sf-annotation-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.4rem;
}

.sf-annotation-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.sf-annotation-meta {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sf-annotation-author {
    font-weight: 600;
    font-size: 0.82rem;
    color: #343a40;
}

.sf-annotation-date {
    font-size: 0.72rem;
}

.sf-annotation-body {
    font-size: 0.85rem;
    color: #495057;
    white-space: pre-wrap;
    word-break: break-word;
    padding-left: calc(28px + 0.5rem);
}

/* Annotation bubble icon on session rows */
/* Zero-annotation icon: muted, no pill */
.sf-annotation-bubble-icon {
    display: inline-flex;
    align-items: center;
    font-size: 0.85rem;
    color: #adb5bd;
    cursor: pointer;
    padding: 3px 6px;
    border-radius: 50em;
    transition: color 0.15s, background 0.15s;
    white-space: nowrap;
}

.sf-annotation-bubble-icon:hover {
    color: #6c757d;
    background: rgba(108,117,125,0.12);
}

/* Pill: icon + count fused into one capsule */
.sf-annot-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 50em;
    background: #6c757d;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.15s;
}

.sf-annot-pill:hover {
    opacity: 0.82;
}

.sf-annot-pill--unread {
    background: #dc3545;
}

.sf-annotation-cell {
    white-space: nowrap;
    width: 65px;
    min-width: 65px;
    max-width: 65px;
}

/* gap utility for browsers without gap support in flex */
.gap-2 {
    gap: 0.5rem;
}

/* Notification bell pill — same capsule concept as .sf-annot-pill */
.sf-notif-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 50em;
    color: inherit;
    font-size: 0.78rem;
    transition: background 0.15s, color 0.15s;
}

.sf-notif-pill--unread {
    background: #dc3545;
    color: #fff;
}

/* Notification dropdown */
.sf-notif-dropdown {
    min-width: 320px !important;
    max-width: 360px !important;
    padding: 0 !important;
    overflow: hidden !important;
}

#sf-notif-items {
    max-height: 420px;
    overflow-y: auto;
    overflow-x: hidden;
}

.sf-notif-item {
    padding: 0.6rem 0.9rem;
    white-space: normal;
}

.sf-notif-item:hover {
    background: #f4f6f9;
}

.sf-notif-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.sf-notif-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    margin-top: 2px;
}

.sf-notif-item-body {
    flex: 1;
    min-width: 0;
}

.sf-notif-item-meta {
    display: flex;
    align-items: baseline;
    gap: 0.3rem;
    flex-wrap: wrap;
    line-height: 1.3;
}

.sf-notif-item-name {
    font-weight: 600;
    font-size: 0.8rem;
    color: #343a40;
}

.sf-notif-item-test {
    font-size: 0.75rem;
    color: #6c757d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.sf-notif-item-test::before {
    content: 'on ';
}

.sf-notif-item-time {
    font-size: 0.7rem;
    color: #adb5bd;
    margin-left: auto;
    flex-shrink: 0;
}

.sf-notif-item-content {
    font-size: 0.78rem;
    color: #495057;
    margin-top: 2px;
    word-break: break-word;
}

.sf-notif-read-all {
    font-size: 0.75rem;
}

/* Annotation overlay send button */
.sf-annotation-send-btn {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
}

/* Annotation pill in session details header — matches btn-sm height, fills column width */
.sf-head-annot-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    border-radius: 50em;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    color: #6c757d;
    text-decoration: none;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.sf-head-annot-btn:hover {
    color: #495057;
    background: rgba(108, 117, 125, 0.12);
    text-decoration: none;
}
.sf-head-annot-btn--read {
    background: #6c757d;
    color: #fff;
    border-color: #6c757d;
}
.sf-head-annot-btn--read:hover {
    background: #5a6268;
    border-color: #545b62;
    color: #fff;
}
.sf-head-annot-btn--unread {
    background: #dc3545;
    color: #fff;
    border-color: #dc3545;
}
.sf-head-annot-btn--unread:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #fff;
}


/* ── Mobile timeline: tighter left indent ─────────────────────────────────── */
@media (max-width: 767px) {
  /* Shift the vertical guide-line to match the new circle position */
  .timeline::before {
    left: 13px;
  }
  /* Move circles from left:18px to left:0; circle centre is now at 15px,
     which aligns with the guide-line centre (13px + 2px half-width = 15px). */
  .timeline > div > .fa,
  .timeline > div > .fas,
  .timeline > div > .far,
  .timeline > div > .fab,
  .timeline > div > .glyphicon,
  .timeline > div > .ion {
    left: 0;
  }
  /* Reduce timeline-item left margin: was 60px (18px circle left + 30px width + 12px gap).
     New: 0px + 30px + 12px = 42px.  Right margin trimmed from 15px to 5px. */
  .timeline > div > .timeline-item {
    margin-left: 42px;
    margin-right: 5px;
  }
  /* Outer row right margin: 10px → 5px */
  .timeline > div {
    margin-right: 5px;
  }
}

/* ── Mobile jQuery-UI tabs: single nowrap row, horizontally scrollable ─────── */
@media (max-width: 767px) {
  /* Switch the nav from float-based to flex so wrapping is fully controlled */
  .ui-tabs .ui-tabs-nav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* hide the scrollbar track on small screens — still scrollable */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
  }
  .ui-tabs .ui-tabs-nav::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
  }
  /* float:none so items respect the flex context; flex-shrink:0 keeps labels intact */
  .ui-tabs .ui-tabs-nav li {
    float: none;
    flex-shrink: 0;
  }
  /* tighter horizontal padding on mobile so all three tabs fit without scrolling */
  .ui-tabs .ui-tabs-nav .ui-tabs-anchor {
    padding: .5em .65em;
    font-size: .875rem;
  }
}

/* Window-level Chart.js tooltip — appended to body so it's never clipped */
#sf-chart-tooltip {
    position: fixed;
    z-index: 9999;
    pointer-events: none;
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    max-width: 320px;
    word-break: break-word;
    opacity: 0;
    transition: opacity 0.1s;
    transform: translate(-50%, calc(-100% - 10px));
    line-height: 1.5;
}
#sf-chart-tooltip .sf-ct-title {
    font-weight: 600;
    margin-bottom: 3px;
}
#sf-chart-tooltip .sf-ct-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}

/* Date range picker input — truncate long date strings with ellipsis instead
   of wrapping or bleeding out of the container */
#daterange {
    display: flex !important;
    align-items: center;
    overflow: hidden;
    min-width: 0;
}
#daterange i,
#daterange b {
    flex-shrink: 0;
}
#daterange span {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
