body{
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  margin: 0;
  -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit  */
  -moz-box-sizing: border-box;    /* Firefox, other Gecko         */
  box-sizing: border-box;
  background-color: #f7f7f7;

}
div, a, input, select{
  box-sizing: border-box;
  padding:0;
  margin:0;
}
#container{
 /* max-width: 900px; */
}


h1{
  margin-left:10px;
  color: #888888;
}

a{
  text-decoration: none;
}

td.datacell{
  background: #f9f8f5;
}
td.header{
  font-weight: bold;
  background: #eeeeee;
}

#header h1{
 margin:0;
}

#feedback{
  padding: 10px;
  margin:10px;
}

.notice{
  background-color: #eeefff;
  /* border: 1px solid #aaabbb; */
}
.success{
  background-color: #ccffcc;
}
.error{
  background-color: #ffcccc;
}

.section, #current_session_info{
  border: 1px solid #cccccc;
  padding: 15px;
  margin:10px;
  margin-top: 20px;
}


.button{
  padding: 3 10 3 10px;
  border: 1px solid #bbbbbb;
  margin: 10px;
  background-color: #dddddd;
  display: inline-block;
  cursor:pointer;
  font-size: 1rem;
  color: #333;
}
/*
.field-end-button{
  display: inline-block;
  border-radius: 0px 5px 5px 0;
  width: 6%;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 15px;
  margin-left:0px;
  margin-right:0px;
}
*/

.field-end-button{
  display: inline-block;

  width: 15%;
  padding-top: 5px;
  padding-bottom: 6px;
  padding-left: 0;
  padding-right: 0;
  margin:0;
  border: 0;
  text-align:center;
}


.glommed-field-div{
  /* border-radius: 5px;  */
  /* border: 1px solid #ccc; */
  background: #fff;
  padding-left: 0px;
}


.button:active{
  background-color: #666;
}

.button:hover{
  background-color: #cccccc;
}

form{
  margin: 0;
  padding: 0;
}

input[type=text], select, textarea{
  font-size: 1rem;
  padding: 3 10 3 10px;
  border: 1px solid #bbbbbb;
  display: inline-block;
  color: #333333;
  /* width: 45%; */

}

#edit-popup input,#edit-popup select,#edit-popup textarea{
  width: 60%;
}

.edit-field{
  padding-bottom: 1em;
}

.edit-field input, .edit-field select, .edit-field textarea{
  margin-left: 15px;
}



#edit-popup{
  text-align:right;
}

#edit-popup h3{
  text-align: center;
  margin-top: -0.5em;
  color: #444;
}

/*
input.button-end-field{
  display: inline-block;
  margin: 7px 0 7px 0px;
  border-right: 0;
  padding: 8px 5px 6px 9px;
  border-radius: 5px 0 0 5px;
  width: 90%;
  background-color: #fafafa;
}
*/
input.button-end-field{
  display: inline-block;
  margin: 0;
  border: 0;

  border-radius: 5px 0 0 5px;
  padding: 0px 5px 0px 14px;
  width: 85%;
}
input.button-end-field:active{
  border: 0;
}

.section-title{
  padding: 5px;
  background-color: #fff;
  display: inline-block;
}

.section-title-container{
  margin-top: -30px;
  margin-left: 20px;

  color: #bbbbbb;
}

#current_duration{
  font-weight: bold;
  padding: 10px 0 10px 0;
  font-family: sans-serif;
  color: #888888;
}

.modal-bg{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color: rgba(255,255,255,0.8);
  padding: 30%;
  z-index: 1000;
  display: none;
}

#active-session{
  position: fixed;
  top:0;
  left:0;
  width:100%;
  height:100%;
  background-color: #ffffff;
  z-index: 1000;
  display: none;
}


#active-session input[type=text]{
  width: 96%;
}

/* Session current duration - fill width */
#current_duration {
  width: 100%;
  text-align: center;
  margin-bottom: 15px;
}

/* Session estimate display */
#session-estimate {
  text-align: center;
  margin-bottom: 30px;
}

#session-estimate .estimate-label {
  display: block;
  font-size: 0.7em;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 2px;
}

#session-estimate .estimate-value {
  font-size: 1.2em;
  color: #5a9;
}

/* Session action buttons */
#session-buttons {
  display: flex;
  gap: 20px;
  margin-bottom: 40px;
  padding: 0 10px;
}

#session-buttons .button {
  flex: 1;
  margin: 0;
  padding: 12px 20px;
  text-align: center;
}

.session-end-btn {
  background-color: #eee;
}

.session-complete-btn {
  background-color: #d4edda;
  border-color: #a8d5a8;
}

.session-complete-btn:hover {
  background-color: #c3e6cb;
}

/* Session notes input - subtle styling */
#session-notes-input {
  border: none;
  border-top: 1px solid #e0e0e0;
  background: transparent;
  text-align: left;
  color: #666;
  padding-top: 15px;
}

#session-notes-input:focus {
  outline: none;
  border-top-color: #aaa;
}

.centered-box{
  position: fixed;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
}


.red{
  background-color: #ff9988;
}

.modal-popup{
  min-width:30%;
  max-width: 500px;
  min-height:30%;
  background-color: #fff;
  padding: 2em;
  border: 1px solid #dddddd;
  z-index: 2000;
}

a .edit{
  display:none !important;
}

#edit-json-textarea{
  width: 100%;
  height: 300px;
}

#analyze-controls input{
  padding: 5px;
  margin-left: 1em;
}
#analyze-controls input:first-child{
  margin-left: 0;
}
#analyze-controls{
  margin-top: 1em;
  margin-bottom: 2em;
}
/* Table display styles */
.datatable thead{
  padding: 0px;
  border-collapse: collapse;
  background-color: #eee;
  font-weight: bold;
  font-family: Ubuntu, hevetica, arial;
  text-align: center;
  border-right:1px solid #ddd;
  border-bottom: 2px solid #888;
  color: #666;
  vertical-align:center;
}


table.datatable{
  background-color: #ffffff;
  border-collapse: collapse;
  width: 100%;
}

.datatable td{
  padding: 3 8 3 8px;
  border:1px solid #ddd;
  margin:0;
}

#datatable tr:nth-child(even) {background: #fff}
#datatable tr:nth-child(odd) {background: #f8f8f8}

#view-links{
  margin: 15px;
  float: right;
}
.view-switch{
  display: block;
  float: right;
  margin-left: 20px;
  color: #aaa;
}

a.view-switch:hover{
  color: #000;
}

h1{
  margin-top: 0px;
}

.table-totals{
  font-weight: bold;
  text-align: right;
}



a.current-view{
color: #000;
}


/* Task star icon */
.task-star {
  cursor: pointer;
  color: #ccc;
  margin-right: 5px;
  transition: color 0.2s ease;
}

.task-star:hover {
  color: #e8c547;
}

.task-star.starred {
  color: #e8c547;
}

/* Layout */
.view-container, #header, #feedback{
  margin: 3%;
}



.clearfix{
  clear: both;
}

.half-width{
  width: 45%;
  float:left;
}




/* Settings */

.settings-item{
  width: 100%;
  clear: both;
  margin-bottom: 2em;
}

.settings-label{
  width: 200px;
  float: left;
  text-align: right;
  color: #666;
}
.settings-input{
  float: left;
  margin-left: 1.2em;
}
.settings-input input, .settings-input textarea,   .settings-input select{
  padding: 6px;
  width: 400px;
}

.settings-input textarea{
  height: 100px;
  min-width: 50%;
}

.rating-star{
  cursor: pointer;
}
.rating-star:hover{
  color: #aa6600;
}


@media all and ( max-width: 650px ) {

  #header h1{
    font-size: 1.5em;
    margin-left: 10px;
    margin-top: 0;
  }

  #view-links span{
    display:none;
  }

  .half-width{
    float: none;
    width: auto;
  }
  .settings-label{
    float: none;
    width: 100%;
    text-align: left;
  }
  .settings-input{
    float: none;
    width: 100%;
    margin-left: 0;
  }


  .settings-input input, .settings-input textarea,   .settings-input select{
    width: 100%
  }

  #analyze-controls input{
    width: 100%;
    margin-left: 0;
    margin-bottom: 1em;
  }

  .centered-box{
    position: absolute;
    top: 0px;
    left: 0px;
    -webkit-transform: none;
    transform: none;
    padding:5%;
  }

  .modal-popup{
    width:100%;
    height: 100%;
    background-color: #fff;
    padding: 2em;
    border: 0;
    max-width: none;
  }

  #edit-popup input, #edit-popup select, #edit-popup textarea {
    width: 100%;
  }
  .edit-field input, .edit-field select, .edit-field textarea {
    margin-right: 15px;
    margin-left: 0px;
  }

  #edit-popup{
    text-align: left;
  }

}

/* ###################### TODAY VIEW STYLES ###################### */

#todayView-view h3 {
  margin-bottom: 20px;
  color: #555;
}

.today-section {
  margin-bottom: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
}

.today-section-header {
  background: #f5f5f5;
  padding: 10px 15px;
  font-weight: bold;
  color: #666;
  border-bottom: 1px solid #e0e0e0;
}

.today-section-header i {
  margin-right: 8px;
}

#today-morning-section .today-section-header {
  background: #fff8e1;
  border-bottom-color: #ffe082;
}

#today-starred-section .today-section-header {
  background: #fff3e0;
  border-bottom-color: #ffcc80;
}

#today-evening-section .today-section-header {
  background: #e8eaf6;
  border-bottom-color: #9fa8da;
}

.today-section-tasks {
  padding: 5px 0;
}

.today-task-item {
  padding: 8px 15px;
  border-bottom: 1px solid #f0f0f0;
}

.today-task-item:last-child {
  border-bottom: none;
}

.today-task-item:hover {
  background: #fafafa;
}

.today-task-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.today-task-main {
  flex: 1;
}

.today-task-actions {
  flex: 0 0 30px;
  text-align: right;
}

.today-task-item .task-checkbox {
  margin-right: 8px;
}

.today-task-item .task-meta {
  font-size: 0.85em;
  color: #999;
  margin-left: 10px;
}

/* Today view drag-and-drop */
.today-task-item.today-drop-above {
  box-shadow: inset 0 2px 0 0 #4a90a4;
}

.today-task-item.today-drop-below {
  box-shadow: inset 0 -2px 0 0 #4a90a4;
}

.today-task-item.today-dragging {
  opacity: 0.4;
}

/* ###################### TREE VIEW STYLES (Outliner) ###################### */

/* Minimal controls bar */
#tree-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  padding: 5px 0;
}

#tree-search {
  padding: 6px 10px;
  width: 180px;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 0.9em;
}

#tree-search:focus {
  outline: none;
  border-color: #aaa;
}

.tree-filter-label {
  font-size: 0.85em;
  color: #888;
  cursor: pointer;
  user-select: none;
}

/* Tree container */
#tree-container {
  margin-top: 5px;
  padding-bottom: 100px;
}

.node-tree {
  font-size: 1em;
  line-height: 1.6;
}

/* Individual node row */
.tree-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
  border-radius: 3px;
}

/* Heading levels for parent nodes - subtle size/weight hierarchy */
.tree-row.tree-h1 .tree-text { font-size: 1.35em; font-weight: 700; }
.tree-row.tree-h2 .tree-text { font-size: 1.2em; font-weight: 600; }
.tree-row.tree-h3 .tree-text { font-size: 1.1em; font-weight: 600; }
.tree-row.tree-h4 .tree-text { font-size: 1.05em; font-weight: 500; }

.tree-row:hover {
  background: #f8f8fc;
}

.tree-row.editing {
  background: #fff;
}

.tree-row.completed .tree-text {
  color: #aaa;
  text-decoration: line-through;
}

/* Bullet/toggle - the clickable dot/arrow */
.tree-bullet {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #bbb;
  font-size: 0.7em;
  flex-shrink: 0;
  border-radius: 50%;
  margin-right: 2px;
}

.tree-bullet:hover {
  background: #eee;
  color: #666;
  cursor: grab;
}

.tree-bullet:active {
  cursor: grabbing;
}

.tree-bullet.has-children {
  color: #888;
}

.tree-bullet.collapsed {
  transform: rotate(-90deg);
}

/* Checkbox for leaf nodes (tasks) */
.tree-check {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* The editable text area */
.node-tree .tree-text {
  flex: 1;
  padding: 2px 4px;
  border: none !important;
  background: transparent;
  font-size: inherit;
  font-family: inherit;
  line-height: inherit;
  color: #333;
  outline: none;
  min-width: 50px;
  resize: none;
  overflow: hidden;
  white-space: nowrap;
}

.tree-text:focus {
  background: #fff;
}

.tree-text::placeholder {
  color: #ccc;
}

/* Meta info (time, estimate) */
.tree-meta {
  font-size: 0.8em;
  color: #999;
  margin-left: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.tree-meta .time {
  color: #888;
}

.tree-meta .tree-estimate {
  color: #aab;
  margin-left: 5px;
}

.tree-meta .estimate {
  color: #5a9;
}

/* Play button - only on leaf nodes */
.tree-play {
  color: #8bc58b;
  cursor: pointer;
  font-size: 24px !important;
  line-height: 1;
  margin-left: 0;
  padding: 0 9px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.tree-row:hover .tree-play {
  opacity: 1;
}

.tree-play:hover {
  color: #5a5;
}

/* Star */
.tree-star {
  color: #ddd;
  cursor: pointer;
  margin-left: 6px;
  opacity: 0;
  transition: opacity 0.15s;
  flex-shrink: 0;
}

.tree-row:hover .tree-star,
.tree-star.starred {
  opacity: 1;
}

.tree-star:hover,
.tree-star.starred {
  color: #e8c547;
}

/* Children container */
.tree-children {
  margin-left: var(--tree-indent, 22px);
  border-left: 1px solid #eee;
  padding-left: 0;
}

/* Empty state */
.tree-empty {
  color: #aaa;
  padding: 40px 20px;
  text-align: center;
}

.tree-empty-hint {
  font-size: 0.9em;
  margin-top: 10px;
}

/* Drop indicators for drag-drop */
.tree-row.drop-above {
  box-shadow: inset 0 2px 0 0 #4a90a4;
}

.tree-row.drop-below {
  box-shadow: inset 0 -2px 0 0 #4a90a4;
}

.tree-row.drop-into {
  background: #e8f4ff;
}

.tree-row.dragging {
  opacity: 0.4;
}

/* Mobile */
@media all and (max-width: 650px) {
  :root {
    --tree-indent: 14px;
  }

  #tree-controls {
    flex-wrap: wrap;
  }

  #tree-search {
    width: 100%;
  }

  .tree-meta {
    display: none;
  }

  .tree-play,
  .tree-star {
    opacity: 1;
  }

  /* Larger grab areas for drag and drop */
  .tree-bullet {
    width: 32px;
    height: 32px;
    font-size: 0.85em;
  }

  .tree-check {
    width: 22px;
    height: 22px;
  }

  /* Text wrapping for long node names */
  .node-tree .tree-text {
    white-space: pre-wrap;
    word-break: break-word;
    width: 0; /* override intrinsic textarea width so flex: 1 controls sizing */
  }

  /* Smaller indents */
  .tree-children {
    margin-left: var(--tree-indent, 14px);
  }

  /* Row alignment for wrapping text */
  .tree-row {
    align-items: flex-start;
    padding: 6px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  }
}

/* ###################### NODE VIEW STYLES ###################### */

.node-view-header {
  padding: 0 0 12px 0;
  margin-bottom: 8px;
  border-bottom: 1px solid #e0e0e0;
}

.node-view-breadcrumb {
  font-size: 0.9em;
  margin-bottom: 8px;
  color: #888;
}

.node-view-title {
  font-size: 1.4em;
  font-weight: 600;
  margin: 0 0 10px 0;
  color: #333;
}

.node-view-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-bottom: 12px;
}

.node-view-meta-item {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.node-view-meta-label {
  font-size: 0.82em;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.node-view-meta-value {
  font-size: 0.92em;
  color: #444;
}

.node-view-notes-section {
  margin-bottom: 10px;
}

.node-view-notes-toggle,
.node-view-sessions-toggle {
  cursor: pointer;
  font-size: 0.9em;
  color: #666;
  padding: 4px 0;
  user-select: none;
}

.node-view-notes-toggle:hover,
.node-view-sessions-toggle:hover {
  color: #333;
}

.node-view-notes-caret,
.node-view-sessions-caret {
  width: 12px;
  display: inline-block;
  text-align: center;
  color: #aaa;
}

.node-view-notes-content {
  padding: 4px 0 0 0;
}

.node-view-notes-textarea {
  width: 100%;
  min-height: 60px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9em;
  resize: vertical;
  box-sizing: border-box;
  line-height: 1.5;
  color: #444;
}

.node-view-notes-textarea:focus {
  outline: none;
  border-color: #4a90a4;
}

.node-view-sessions {
  margin-bottom: 10px;
}

.node-view-sessions-content {
  padding: 4px 0 0 0;
}

.node-view-session-row {
  display: flex;
  gap: 12px;
  padding: 5px 4px;
  font-size: 0.88em;
  border-bottom: 1px solid #f0f0f0;
  cursor: default;
  align-items: baseline;
}

.node-view-session-row:hover {
  background: #f8f8f8;
}

.session-date {
  color: #666;
  min-width: 100px;
}

.session-time-range {
  color: #888;
  min-width: 130px;
}

.session-duration {
  color: #4a90a4;
  font-weight: 500;
  min-width: 70px;
}

.session-notes {
  font-style: italic;
  font-size: 0.88em;
  color: #999;
  padding: 2px 4px 4px 4px;
}

.node-view-children-header {
  font-size: 0.8em;
  color: #bbb;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0 2px 0;
  margin-top: 4px;
}

@media (max-width: 650px) {
  .node-view-meta {
    gap: 4px 12px;
  }

  .node-view-session-row {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .session-date,
  .session-time-range,
  .session-duration {
    min-width: auto;
  }

  .node-view-title {
    font-size: 1.2em;
  }
}

/* ###################### REVIEW VIEW STYLES ###################### */

/* Range button bar */
#analyze-range-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.range-btn {
  padding: 6px 14px;
  border: 1px solid #ddd;
  border-radius: 15px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 0.9em;
  transition: all 0.15s;
}

.range-btn:hover {
  border-color: #4a90a4;
  color: #4a90a4;
}

.range-btn.active {
  background: #4a90a4;
  border-color: #4a90a4;
  color: #fff;
}

/* Custom date pickers */
#analyze-custom-dates {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

#analyze-custom-dates input {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 130px;
}

#analyze-custom-dates .date-sep {
  color: #999;
}

/* Drilldown controls */
#analyze-drilldown {
  margin-bottom: 15px;
}

#analyze-breadcrumb {
  font-size: 0.95em;
  color: #666;
  margin-bottom: 10px;
}

.breadcrumb-item {
  cursor: pointer;
  color: #4a90a4;
}

.breadcrumb-item:hover {
  text-decoration: underline;
}

.breadcrumb-sep {
  margin: 0 6px;
  color: #aaa;
}

#analyze-dropdowns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.analyze-dropdown {
  padding: 6px 10px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  min-width: 120px;
  font-size: 0.9em;
}

/* Summary */
#analyze-summary {
  font-size: 1.1em;
  color: #555;
  margin-bottom: 15px;
  padding: 10px 0;
  border-bottom: 1px solid #eee;
}

/* Tabs */
#analyze-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 20px;
  border-bottom: 2px solid #eee;
}

.analyze-tab {
  padding: 10px 20px;
  border: none;
  background: none;
  color: #888;
  cursor: pointer;
  font-size: 1em;
  position: relative;
  transition: color 0.15s;
}

.analyze-tab:hover {
  color: #4a90a4;
}

.analyze-tab.active {
  color: #4a90a4;
}

.analyze-tab.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #4a90a4;
}

/* Overview chart */
#analyze-chart-wrapper {
  height: 250px;
  margin-bottom: 20px;
}

#analyze-chart-canvas {
  max-width: 100%;
}

/* Overview table */
.analyze-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95em;
}

.analyze-table th {
  text-align: left;
  padding: 8px 12px;
  background: #f5f5f5;
  border-bottom: 2px solid #ddd;
  color: #666;
  font-weight: 600;
}

.analyze-table td {
  padding: 8px 12px;
  border-bottom: 1px solid #eee;
}

.analyze-table tr.clickable {
  cursor: pointer;
}

.analyze-table tr.clickable:hover {
  background: #f8f8fc;
}

/* No data state */
#analyze-no-data {
  text-align: center;
  color: #999;
  font-size: 1.2em;
  padding: 60px 20px;
}

/* Timeline controls */
#analyze-timeline-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  cursor: pointer;
  font-size: 1.1em;
  color: #666;
}

.zoom-btn:hover {
  background: #f0f0f0;
}

.zoom-label {
  font-size: 0.9em;
  color: #888;
}

/* Timeline scroll container */
#analyze-timeline-scroll {
  overflow-x: auto;
  border: 1px solid #eee;
  border-radius: 3px;
}

#analyze-timeline-content {
  min-width: 100%;
}

/* Timeline header */
.timeline-header {
  position: relative;
  height: 30px;
  border-bottom: 1px solid #ddd;
  background: #f9f9f9;
}

.timeline-tick {
  position: absolute;
  top: 8px;
  font-size: 0.75em;
  color: #888;
  white-space: nowrap;
}

/* Timeline body */
.timeline-body {
  padding: 5px 0;
}

.timeline-row {
  display: flex;
  align-items: stretch;
  min-height: 32px;
}

.timeline-row:hover {
  background: #fafafa;
}

.timeline-label {
  width: 120px;
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 0.85em;
  color: #555;
  border-right: 1px solid #eee;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-label.clickable {
  cursor: pointer;
  color: #4a90a4;
}

.timeline-label.clickable:hover {
  text-decoration: underline;
}

.timeline-track {
  position: relative;
  flex: 1;
  min-height: 24px;
}

.timeline-block {
  position: absolute;
  top: 4px;
  height: 16px;
  border-radius: 2px;
  opacity: 0.8;
}

.timeline-block:hover {
  opacity: 1;
}

.timeline-empty {
  text-align: center;
  color: #999;
  padding: 40px 20px;
}

/* Mobile styles */
@media all and (max-width: 650px) {
  #analyze-range-bar {
    gap: 5px;
  }

  .range-btn {
    padding: 5px 10px;
    font-size: 0.85em;
  }

  #analyze-custom-dates {
    flex-direction: column;
    align-items: stretch;
  }

  #analyze-custom-dates input {
    width: 100%;
  }

  #analyze-custom-dates .date-sep {
    text-align: center;
  }

  #analyze-dropdowns {
    flex-direction: column;
  }

  .analyze-dropdown {
    width: 100%;
  }

  .timeline-label {
    width: 80px;
    font-size: 0.8em;
  }

  #analyze-chart-wrapper {
    height: 200px;
  }
}

/* ###################### SETTINGS ACCOUNT SECTION ###################### */

.settings-section {
  margin: 20px 0;
  padding: 15px;
  background: #f8f8f8;
  border-radius: 4px;
}

.settings-section h4 {
  margin: 0 0 10px 0;
  color: #666;
}

#settings-account-status p {
  margin: 0 0 10px 0;
}
