.mate-panel-menu-bar,
panel-toplevel.background {
  border-radius: 0;
  &, menubar { background-color: opacify($panel_bg_color, 1); }

  menubar,
  #PanelApplet label,
  #PanelApplet image { color: $panel_fg_color; }

  // Panel buttons
  button:not(#tasklist-button) {
    @extend %panelbutton;
  }

  button,
  #tasklist-button {
    label, image { color: inherit; }
  }

  .wnck-pager {
    color: mix($panel_fg_color, black, 50%);
    background-color: darken($panel_bg_color, 3%);

    &:hover {
      background-color: lighten($panel_bg_color, 5%);
    }

    &:selected {
      color: lighten($selected_bg_color, 20%);
      background-color: $selected_bg_color;
    }
  }

  na-tray-applet {
    -NaTrayApplet-icon-padding: 0;
    -NaTrayApplet-icon-size: 16px;
  }
}

//
// Mate OSD Window
//

MsdOsdWindow.background.osd {
  border-radius: 2px;
  border: 1px solid $borders_color;

  .progressbar {
    background-color: $selected_bg_color;
    border: none;
    border-color: $selected_bg_color;
    border-radius: 5px;
  }
  .trough {
    background-color: darken($osd_bg_color, 5%);
    border: none;
    border-radius: 5px;
  }
}

//
// Caja file manager
//

.caja-notebook {

  .frame { border-width: 0 0 1px; }

  .entry {
    background: $bg_color;
    color: $fg_color;
    border-color: $borders_color;
    &:selected {
      background: $selected_bg_color;
      color: $selected_fg_color;
    }
  }
}

/**************
* Caja sidebar *
**************/

.caja-side-pane {

  .frame { border-width: 0px; }

  background: $_sidebar_color;
  button {
    &, label { color:$headerbar_fg_color; }
  }
  treeview.view,
  textview.view text,
  viewport.frame,
  widget .vertical {
    background: $_sidebar_color;
    padding: 3px 2px;
    color: $headerbar_fg_color;
    &:hover {
      background-color: transparentize(lighten($_sidebar_color, 5%), 0.05);
    }
    &:selected {
      background: transparentize(lighten($_sidebar_color, 5%), 0.07);
      &:hover {
        background:  transparentize(lighten($_sidebar_color, 5%), 0.07);
        color: #fff;
      }
    }
  }
}

/**************
* Caja pathbar *
**************/

.caja-navigation-window paned {
  background: $base_color;
}

.caja-navigation-window .primary-toolbar {
  background: $headerbar_color;
  button {
    &, label { color:$headerbar_fg_color; }
    &, &:backdrop { @include button(undecorated); }
    &:hover,
    &:active,
    &:backdrop:active,
    &:backdrop:checked {
      background: $selected_bg_color;
      box-shadow: none;
      &, & label {
          color: $selected_fg_color;  
      }
    }
  }

}

.caja-pathbar button {
  @include button(normal);
  border-radius: 0px;
  border-right: 1px solid $borders_color;
  border-left: none;
  box-shadow: none;
  min-height: 20px;
  padding: 3px 5px;
  margin-right: -3px;
  &:first-child {
      border-left: 1px solid $borders_color;      
  }

  &:hover { @include button(active, transparentize($selected_bg_color, 0.3), #fff); }
  &:checked { @include button(active, $selected_bg_color, #fff); }
}