body {
  padding: 0px;
  font-family: roboto;
}

.bi {
  display: inline-block;
  width: 1rem;
  height: 1rem;
}

/*
 * Sidebar
 */

@media (min-width: 768px) {
  .sidebar .offcanvas-lg {
    position: -webkit-sticky;
    position: sticky;
    top: 48px;
  }
  .navbar-search {
    display: block;
  }
}

.sidebar .nav-link {
  font-size: .875rem;
  font-weight: 500;
}

.sidebar .nav-link {
  color: #d5d6d7;
}

.sidebar .nav-link.active {
  color: #e5e6e7;
}

.sidebar-heading {
  font-size: .75rem;
}

/*
 * Navbar
 */

.navbar-brand {
  padding-top: .75rem;
  padding-bottom: .75rem;
  /*background-color: rgba(0, 0, 0, .25);*/
  /*box-shadow: inset -1px 0 0 rgba(0, 0, 0, .25);*/
}

.navbar, .sidebar, .offcanvas-body {
  background-color: #335156 !important;
}

.navbar .form-control {
  padding: .75rem 1rem;
}

/* Chrome, Safari, Edge, Opera */
input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield;
}

.tooltip {
  opacity: 1;
}

/* Tooltip text */
.tooltip .tooltiptext {
  visibility: hidden;
  width: 120px;
  background-color: #ffffff;
  color: #000000;
  text-align: left;
  padding: 5px 5px;
  border-radius: 6px;
  border: 1px solid black;


  /* Position the tooltip text - see examples below! */
  position: absolute;
  z-index: 1;
}

/* Show the tooltip text when you mouse over the tooltip container */
.tooltip:hover .tooltiptext {
  visibility: visible;
}

.tab-content {
  margin-top: 30px;
  /*min-height: 100vh;*/
  max-width: 98%;
}

.modal-tab-content {
  min-height: auto;
}

.statusIcon {
  width: 1em;
  font-size: 2em;
}

.statusDropdownIcon {
  font-size: 1em;
}

.underline {
  text-decoration: underline
}

.bold {
  font-weight: bold;
}

.dateEditor {
  width: auto;
}

.button-container {
  font-size: 0; /* Remove whitespace caused by inline-block */
}

.button-container button {
  display: inline-block;
  font-size: 1rem; /* Reset font size to normal */
}

.dateReadOnlyField {
  background-color: white;
  width: fit-content;
  padding: 5px 25px;
  border-radius: 5px;
}

.removeCategory {
  cursor: pointer
}

.google-visualization-tooltip-item span {
  white-space: pre;
}

.timelineArrows {
  font-size: 2em;
  margin-bottom: 1em;
  margin-right: 0.5em;
  cursor: pointer;
}

#dateSelectorsDiv {
  display: flex;
}

.dateSelectorDiv {
  margin: 20px;
}

.clearDateSelector {
  cursor: pointer;
  font-size: 1.5em;
  display: inline-block;
}

.clearDateSelector:hover {
  color: grey
}

.clearDateSelector:active {
  transform: scale(0.98);
}

.text-right {
  text-align: right;
}

.editRow {
  display: none
}

.select2-container--open .select2-dropdown {
  max-height: none;
  position: absolute;
}
.select2-results__options {
  max-height: none;
}

.statusImg {
  height: 25px;
  width: 25px;
  vertical-align: text-bottom;
}

.statusDropDownImg {
  height: 20px;
  width: 20px;
}

.bi {
  vertical-align: 0 !important;
}

#drop_zone {
  border: 5px solid blue;
  width: 200px;
  height: 100px;
}

.inputIncorrect {
  border: 1px solid red
}

#documentImportZone {
  border-radius: 10px;
  background-color: #e6e6e6;
}

.btn:disabled{
  opacity:1;
}


div.dts div.dt-scroll-body, div.dts div.dataTables_scrollBody {
  background: none !important;
}

#statusTimeline {
  height: 90vh;
}

.finishedMarker {
  background-color: red; /* Transparent background */
  border: none; /* No border */
  position: relative;
  height: 32px; /* Adjust to match the icon's height */
  width: 32px;  /* Adjust to match the icon's width */
  pointer-events: none; /* Prevent interaction if needed */
  z-index: 1000; /* Ensure it appears above other elements */
}

.finishedMarker::before {
  content: '';
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: red; /* Test with a simple color */
  width: 32px;
  height: 32px;
  z-index: 1000; /* Ensure it appears above other elements */
}

.dropzone .file-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 60px;
  color: white;
  opacity: 0;
  transition: opacity 0.2s;
  z-index: 1000;
  border-radius: 15px;
}

.dropzone .file-overlay.show {
  opacity: 1;
}

div.b-sch-event-wrap.b-milestone-wrap .b-sch-event .b-fa{
  color:#3bc9db;
  z-index: 1000;
}

.overviewGrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Two equal columns */
  gap: 10px; /* Gap between grid items */
  box-sizing: border-box;
  height: 85vh;
  /* Optional: scroll if items overflow */
  overflow-y: auto;
  padding: 10px 10px 100px 0;
}

.overviewBox {
  margin: 25px;
  padding: 40px;
  background-color: #fcfcfc;
  box-shadow: rgba(0, 0, 0, 0.24) 0px 3px 8px;
  border-radius: 10px;
  text-align: center;
  flex: 0 0 calc(30% - 5px);
  box-sizing: border-box;
}

.overviewBox.chart {
  height: 40vh;
}


/*.tooltip-inner {*/
/*  font-size: 45px !important; !* Ensures the size gets applied *!*/
/*  max-width: none !important; !* Ensures no text wrapping *!*/
/*  white-space: nowrap;        !* Prevents the text from wrapping to a new line *!*/
/*}*/

.importHistoryTable {
  width: 100%;
}

.roleNameInput {
  width: 100%
}

table.dataTable td {
  white-space: nowrap;
  text-overflow: ellipsis;
}

.rounded-number {
  display: inline-block;
  width: 24px;       /* Adjust width for size */
  height: 24px;      /* Same as width for a perfect circle */
  text-align: center;
  line-height: 24px; /* Same as width for vertical centering */
  border-radius: 50%; /* Makes it a circle */
  font-size: 14px;   /* Adjust font size as needed */
  font-weight: bold; /* Make the number stand out */
  margin-right: 4px; /* Add space between numbers */
}

.td {
  overflow: auto !important;
}

.datePicker {
  border: none;
  background-color: #c1ced0;
  border-radius: 25px;
  display: inline-block;
  width: 50%;
  text-align: center;
}

.btn-primary {
  background-color: #667e82;
  border: #667e82;
}

.btn-primary:hover {
  background-color: #3b6372;
  border: #3b6372;
}

.btn-secondary {
  background-color: #8f9b9d;
  border: #8f9b9d;
  color: white;
}

.btn-info {
  background-color: #C9BB9F;
  border: #C9BB9F;
  color: black;
}

.btn-info:hover {
  background-color: #ab8840;
  border: #ab8840;
  color: white;
}

.timeLineFinishedIcon {
  z-index: 1000 !important;
  position: absolute !important;
  background-color: #84a982 !important;
  border-color: #84a982 !important;
}

.b-milestone.myapp-milestone-color-green::before {
  background-color: red !important;
}

.b-sch-event.timeLineFinishedIcon {
  background-color: #84a982 !important;
  border-color: #84a982 !important;
}

.b-sch-event-wrap.b-milestone-wrap .b-sch-event.b-sch-event-withicon i {
  color: #84a982 !important;
}

.url-box, .url-box-intra {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #f8f9fb;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 6px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Roboto Mono", monospace;
  font-size: 14px;
}

#urlText, #urlTextIntraView {
  color: #0b5fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 700px; /* justera vid behov */
}

.copyBtn, .copyIntraViewBtn {
  border: none;
  background: #0b5fff;
  color: white;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.copyBtn:hover, .copyIntraViewBtn:hover {
  background: #094acc;
}

.copy-status {
  font-size: 13px;
  margin-left: 6px;
  color: #2b7a2b;
  opacity: 0;
  transition: opacity .2s ease;
}

.copy-status.show {
  opacity: 1;
}

.card-title {
  font-size: 1.2rem;
  font-weight: bold;                                       
  margin-bottom: 16px;
  color: #333;
}

.card-stats {
  display: inline-flex;
  justify-content: space-between;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: #007bff; /* Blå färg på siffrorna */
}

.stat-label {
  font-size: 0.9rem;
  color: #666;
}

/* Scheduler tooltip */

.b-tooltip{
  --panel-background-color:#fff;
}

.custom-event-tooltip .tooltip-inner {
  min-width: 350px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  padding: 10px;
}
.custom-event-tooltip .title {
  margin: 0 0 6px 0;
  font-size: 15px;
  font-weight: 700;
  color: #0b3d91;
}
.custom-event-tooltip .user-line {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #333;
}

/* En enkel två-kolumns-layout */
.two-cols {
  display: flex;
  gap: 12px;
  margin: 6px 0;
}
.two-cols .col {
  flex: 1;
  min-width: 0; /* gör att text bryts fint */
}
.col-label {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  margin-bottom: 2px;
}
.col-val {
  font-size: 13px;
  color: #222;
  word-break: break-word;
}

/* Enskild rad (label + value på samma rad) */
.my-tooltip-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 6px 0;
}
.my-tooltip-row .label {
  width: 150px;
  font-weight: 600;
  color: #333;
  font-size: 12px;
}
.my-tooltip-row .val {
  flex: 1;
  color: #222;
  font-size: 13px;
}

/* Färgprick för status */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: -1px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.05) inset;
}


.timeAnalysisTable table.table.dataTable>:not(caption)>*>* {
  background-color: #fefefe !important;
}

.timeAnalysisTable .dt-buttons .buttons-excel {
  display: none;
}

.form-label {
  font-weight: 500;
  color: #080f0c;
}

.form-control, .form-select {
  background-color: #fafbfc;
}