.summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 1vh 0;
    padding-left: 1vw;
    flex: 0 0 auto;
}

#time {
    position: relative;
    display: inline-block;
    padding: 8px 12px;
    background-color: #f4f4f9;
    color: #333;
    font-size: 0.9rem;
    font-weight: bold;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15); /* Soft shadow for depth */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Styling for the date/time text */
#time span {
    color: #444;
    font-weight: normal;
    font-style: italic;
}

/* Hover effect for interactivity */
#time:hover {
    background-color: #e8e8ef;
    color: #222;
    box-shadow: 0 3px 7px rgba(0, 0, 0, 0.2);
}

.summary #search {
    margin-left: 1vw;
    padding: 0.5em;
    font-style: oblique;
    font-size: 1em;
    color: maroon;
}

.summaryControl {
    background-color: #3e78ff73;
    color: #333;
    margin-left: 1vw;
    padding: 0.5em;
    font-size: 1em;
    border-radius: 4px;
    cursor: pointer;
    width: 0.8vw;
    height: 1em;
    text-align: center;
}

.summaryControl:hover {
    background-color: #3e78ff9c;
}

/* Numeric Input Styling */
#run-count {
    width: 40px;
    margin-left: 5px;
    text-align: center;
    font-size: 16px;
}

.summary .radios {
    display: flex;
    flex-wrap: wrap;
    margin-left: 1vw;
    align-items: center;
}

.summary fieldset {
    border: none;
    margin: 0 1em;
    padding: 0;
}

.summary legend {
    font-weight: bold;
    margin-bottom: 0.5em;
}

.summary .radios div {
    margin-bottom: 0.5em;
}

#showTypeContainer {
    position: relative;
}

.summary .passed, .summary .failed, .summary .broken, .summary .skipped {
    padding: 0.5em 1em;
    border-radius: 4px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
}

.summary .passed.filtered, .summary .failed.filtered, .summary .broken.filtered, .summary .skipped.filtered, .summary .tag.filtered, .summary #searchFixture[enabled="false"], img[style]:not([style=""]), .summary #filter-icon.active {
    color: #aaa;
	opacity: 0.8;
}

.summary .passed {
    background-color: #a8e6a1;
}

.summary .failed {
    background-color: #f6a1a1;
}

.summary .broken {
    background-color: #f3e99f;
}

.summary .skipped {
    background-color: #cccccc;
}

.summary .passed:hover {
    background-color: #8ed081;
}

.summary .failed:hover {
    background-color: #e68f8f;
}

.summary .broken:hover {
    background-color: #e0d17e;
}

.summary .skipped:hover {
    background-color: #b3b3b3;
}

/* Tooltip styling */
.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 5px;
    font-size: 0.9rem;
    white-space: break-spaces;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}

/* Tooltip visible state */
.tooltip.show {
    opacity: 1;
}

/* Button rotation with smooth transition */
#expandFixtures, #sort {
    transition: transform 0.3s ease;
}

#sort:not([class*="default"]) {
	transform: rotate(90deg);
}

.statuses {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    display: grid;
}

#showShortInfo{
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  width: 18px;
  height: 18px;
  border: 2px solid #555;
  border-radius: 4px;
  background: #fff;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  margin-left: 6px;
  transition: background .2s, border-color .2s, box-shadow .2s;
}

#showShortInfo:checked{
  background: #4caf50;
  border-color: #4caf50;
}

#showShortInfo:checked::after{
  content: "✓";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -60%);
  font-size: 14px;
  color: #fff;
}

#showShortInfo:focus{
  outline: none;
  box-shadow: 0 0 0 3px rgba(76,175,80,.35);
}

label[for="showShortInfo"] {
  background: #f5f5f5;
  color: #333;
  font-weight: 500;
  font-size: 14px;
  font-family: "Segoe UI", Arial, sans-serif;

  padding: 2px 8px;
  border-radius: 6px;
  margin: 0 0 4px 4px;
  cursor: pointer;

  transition: background 0.2s ease, color 0.2s ease;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

label[for="showShortInfo"]:hover {
  background: #e0e0e0;
  color: #000;
}
