@use '../../defaults';

.top-menu {
  position: fixed;
  top: 20px;
  right: 20px;

  .row {
    display: flex;
    flex-direction: row;

    .menu-item {
      border-radius: 5px;
      cursor: pointer;
      padding: 10px 8px 0px 8px;
      color: #fff;
      background-color: defaults.$default-active-bg;
      margin-left: 10px;
      text-align: center;

      .i {
        width: 20px;
        vertical-align: middle;
        line-height: 0;
        overflow: hidden;
      }
    }

    .menu-item:hover {
      background-color: #2f689d;
    }

    .grouping-btn {
      border-radius: 5px;
      cursor: pointer;
      color: #fff;
      font-weight: bold;
      background-color: defaults.$default-active-bg;
      width: 55px;
      height: 80%;
    }

    .dropdown {
      position: relative;
      display: inline-block;
    }
    
    .dropdown-content {
      display: none;
      position: absolute;
      top: 100%;
      left: -25%;
      background-color: #f1f1f1;
      min-width: 160px;
      box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
      z-index: 1;
    }
    
    .dropdown-content a {
      color: black;
      padding: 12px 16px;
      text-decoration: none;
      display: block;
    }
    
    .dropdown-content a:hover {background-color: #ddd;}
    
    .dropdown:hover .dropdown-content {display: block;}
    
    
    .cancel-btn:hover {
      background-color: defaults.$error-font;
    }

    .ctr-input {
     padding-right: 10px; 
     width: 500px;
    }


    .reset-btn:hover {
      background-color: defaults.$error-font;
    }
  }

  .badge {
    position: absolute;
    top: -3px;
    right: -3px;
    width: 10px;
    height: 10px;
    background-color: red;
    border-radius: 50%;   
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
