/* Root View */
#placesView {
  background-color: Window;
}

#splitter {
  border: 0px;
  width: 3px;
  background-color: transparent;
}

/* Place List, Place Content */
.placesTree {
  margin: 0px;
}

#placesList {
  -moz-appearance: listbox;
  margin: 6px 0px 7px 6px;
  width: 160px;
}

#placeContent {
  -moz-appearance: none;
  border: 0px;
}

#contentView {
  margin: 6px 6px 7px 0px;
  -moz-appearance: listbox;
}

treechildren::-moz-tree-image {
  padding-right: 2px;
  margin: 0px 2px;
}

treechildren::-moz-tree-image(title) {
  list-style-image: url("chrome://global/skin/icons/folder-item.png") !important;
  -moz-image-region: rect(0px, 16px, 16px, 0px);
  width: 16px;
  height: 16px;
}

treechildren::-moz-tree-image(title, container) {
  -moz-image-region: rect(0px, 32px, 16px, 16px);
}

treechildren::-moz-tree-image(title, livemark\/bookmarkFeedURI) {
  list-style-image: url("chrome://browser/skin/livemark-item.png") !important;
  -moz-image-region: rect(0px, 16px, 16px, 0px);
}

treechildren::-moz-tree-image(title, open) {
  -moz-image-region: rect(16px, 32px, 32px, 16px);
}

treechildren::-moz-tree-row(session-start) {
  border-top:1px dotted ThreeDShadow;
  font-weight: bold;
}

treechildren::-moz-tree-cell-text(date, session-continue) {
  color: -moz-Field;
}

treechildren::-moz-tree-image(title, separator) {
  list-style-image: none;
  width: 0px !important;
  height: 0px !important;
  margin: 0px;
}

treechildren::-moz-tree-cell-text(title, separator) {
  color: ThreeDShadow;
  margin: 0px 5px;
}

treechildren::-moz-tree-cell-text(title, separator, selected, focus) {
  color: HighlightText;
}

/* Command Bar */
.commands {
  padding-bottom: 5px;  
}

.commandGroupButton {
  margin-left: 0px;
  margin-top: 0px;
}

.commandGroupButton.first {
  margin-right: -10px;
}

.commandGroupButton.last {
  margin-left: 20px;
}

/* Title Bar */
#titlebar {
  background-color: -moz-Dialog;
  border-bottom: 2px solid;
  -moz-border-bottom-colors: ThreeDHighlight ThreeDShadow;
}

#showingPrefix {
  margin: 5px 0.33em 5px 8px;
}

#contentTitle {
  margin: 5px 8px 5px 0px;
  font-weight: bold;
  width: 0px;
}

/* Search Bar */
#searchbar {
  margin: 6px -4px 0px 2px;
}

.textbox-input-closebutton {
  -moz-appearance: none;
  margin: 1px 2px 1px 1px;
  min-width: 0;
  background-color: transparent;
  border: none;
  padding: 0 !important;
  list-style-image: url("chrome://global/skin/icons/close.png");
  -moz-image-region: rect(0px 16px 16px 0px);
  width: 16px;
  height: 16px;
  cursor: default;
}

.textbox-input-closebutton > .button-box {
  margin: 0;
  padding: 0;
  border: 0;
}

.textbox-input-closebutton:hover {
  -moz-image-region: rect(0px 32px 16px 16px);
}

.textbox-input-closebutton:hover:active {
  -moz-image-region: rect(0px 48px 16px 32px);
}

.small, .small[disabled="true"] {
  font-size: x-small;
  min-width: 0px;
  padding: 0px 4px 0px 4px;
  margin: 0px;  
  border: 0px;
}

.small .button-text,
.small .button-box {
  padding: 0px;
  border: 0px;
}

#searchFilter {
  padding: 0px;
}

#searchFilter[empty="true"] {
  color: GrayText;
}

#searchFilter .textbox-input-box {
  padding: 2px 2px 3px 4px;
}

.filterList {
  -moz-appearance: none;
  background-color: transparent;
  border: 0px;
  margin: 2px;
  padding: 0px;
  min-width: 0px;
  width: 16px;
  height: 16px;
  list-style-image: url("chrome://browser/skin/Search-bar.png");
  -moz-user-focus: ignore;
  cursor: default;
}

.filterList .button-box {
  border: 0px;
  padding: 0px;
}

.filterList .button-menu-dropmarker {
  margin: 9px -3px -4px 8px;
}

/* Calendar */
.history-calendar {
  margin: 0px 0px 7px 6px;
}

.calendar-box {
  -moz-appearance: listbox;
  border: 1px solid black;
  background-color: white;
}
.calendar-header {
  background-color: #EEE;
}
.calendar-month-jump {
  cursor: pointer;
  padding-left: 6px;
  padding-right: 6px;
}
.calendar-month-jump:hover {
  background-color: #DDD;
}
.calendar-grid {
  padding-left: 8px;
  padding-right: 8px;
  padding-bottom: 4px;
}
.calendar-grid label { /* everything in the calendar grid */
  padding: 4px;
  margin: 0px;
  text-align: center;
  font-size: 80%;
}
.calendar-month-title {
  text-align: center;
}
.calendar-day-header {
  border-bottom: 1px solid #888;
}
.calendar-day { /* just days (excluding the day headers) */
  cursor: w-resize;
  color: white;
  background-color:white;
}
.calendar-day:hover {
  background-color: #DDD;
}
.calendar-day[selected="true"] {
  cursor: w-resize;
  background-color: #8C8;
}
.calendar-day[selected="true"]:hover {
  background-color: #6A6;
}
.calendar-day[month="this"] {
  color: black;
}
.calendar-day[month="other"] {
  color: #888;
}

#advancedSearchRows {
  border-bottom: 2px solid;
  -moz-border-bottom-colors: ThreeDHighlight ThreeDShadow;
  padding: 3px 3px 3px 0px;
}

#searchModifiers {
  padding-right: 3px;
}

#debugPanel {
  background-color: ThreeDFace;
  border-top: 2px solid; 
  -moz-border-top-colors: ThreeDShadow ThreeDHighlight;
}

/**
 * mainToolbar
 * style rules are (mostly) copied over from bookmarkManager.css.
 */
#mainToolbar toolbarbutton {
  list-style-image: url("chrome://browser/skin/places/organizer-toolbar.png");
  -moz-box-orient: vertical;
  min-width: 57px;
  padding: 5px;
}

#mainToolbar toolbarbutton > .toolbarbutton-icon {
  -moz-margin-end: 0px;
}

/* new bookmark */
#newbookmark {
  -moz-image-region: rect(0px 24px 24px 0px);
}
#newbookmark:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 24px 48px 0px);
}
#newbookmark[disabled="true"] {
  -moz-image-region: rect(72px 24px 96px 0px);
}
#newbookmark:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 24px 72px 0px);
}

/* new folder */
#newfolder {
  -moz-image-region: rect(0px 48px 24px 24px);
}
#newfolder:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 48px 48px 24px);
}
#newfolder[disabled="true"] {
   -moz-image-region: rect(72px 48px 96px 24px);
}
#newfolder:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 48px 72px 24px);
}

/* new separator */
#newseparator {
  -moz-image-region: rect(0px 72px 24px 48px);
}
#newseparator:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 72px 48px 48px);
}
#newseparator[disabled="true"] {
  -moz-image-region: rect(72px 72px 96px 48px);
}
#newseparator:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 72px 72px 48px);
}

/* move bookmark */
#moveBookmark {
  -moz-image-region: rect(0px 96px 24px 72px);
}
#moveBookmark:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 96px 48px 72px);
}
#moveBookmark[disabled="true"] {
  -moz-image-region: rect(72px 96px 96px 72px);
}
#moveBookmark:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 96px 72px 72px);
}

/* properties */
#properties {
  -moz-image-region: rect(0px 120px 24px 96px);
}
#properties:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 120px 48px 96px);
}
#properties[disabled="true"] {
  -moz-image-region: rect(72px 120px 96px 96px);
}
#properties:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 120px 72px 96px);
}

/* rename */
#rename {
  -moz-image-region: rect(0px 144px 24px 120px);
}
#rename:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 144px 48px 120px);
}
#rename[disabled="true"] {
  -moz-image-region: rect(72px 144px 96px 120px);
}
#rename:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 144px 72px 120px);
}

/* delete */
#delete {
  -moz-image-region: rect(0px 168px 24px 144px);
}
#delete:not([disabled="true"]):hover {
  -moz-image-region: rect(24px 168px 48px 144px);
}
#delete[disabled="true"] {
  -moz-image-region: rect(72px 168px 96px 144px);
}
#delete:not([disabled="true"]):hover:active {
  -moz-image-region: rect(48px 168px 72px 144px);
}
