* {
    engine: none;
    padding: 0;

    background-clip: padding-box;
    background-origin: border-box;
    
    -GtkArrow-arrow-scaling: 0.6;

    -GtkButton-child-displacement-x: 0;
    -GtkButton-child-displacement-y: 0;
    -GtkButton-image-spacing: 6;
    -GtkButtonBox-child-min-height: 25;
    
    -GtkCheckButton-indicator-size: 16;
    -GtkDialog-button-spacing: 6;
    -GtkCheckMenuItem-indicator-size: 12;
    
    -GtkExpander-expander-size: 14;

    -GtkHTML-link-color: @link_color;
    -GtkIMHtml-hyperlink-color: @link_color;
    
    -GtkMenu-horizontal-padding:0;
    -GtkMenu-vertical-padding: 0;
    
    -GtkPaned-handle-size: 5;
    
    -GtkScrolledWindow-scrollbar-spacing: 0;
    -GtkScrolledWindow-scrollbars-within-bevel: 1;
    
    -GtkTextView-error-underline-color: @error_color;
    
    -GtkToolButton-icon-spacing: 6;
    -GtkToolItemGroup-expander-size: 11;
    
    -GtkTreeView-expander-size: 11;
    -GtkTreeView-horizontal-separator: 4;

    -GtkWidget-focus-padding: 1;
    -GtkWidget-focus-line-width: 1;
    -GtkWidget-link-color: @link_color;
    -GtkWidget-separator-height: 1;
    -GtkWidget-separator-width: 1;
    -GtkWidget-visited-link-color: @link_color;
    -GtkWindow-resize-grip-width: 0;
    -GtkWindow-resize-grip-height: 0

    -WnckTasklist-fade-overlay-rect: 0;
}

.background {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
}

*:selected,
*:selected:focus {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

*:insensitive {
    color: @insensitive_fg_color;
    text-shadow: 0 1px @button_shadow;
}

*:insensitive {
    -gtk-image-effect: dim;
}

.action-bar {
    padding: 4px;
    background-color: @theme_bg_color;
    background-image: none;
}

GtkAssistant .sidebar .highlight {
    background-color: transparent;
    color: @theme_fg_color;
    font: bold;
}

GtkAssistant .sidebar {
    padding: 12px;
    border: 1px solid @border;
    border-radius: 2px;
    background-color: @theme_base_color;
    color: mix(@theme_fg_color, @theme_bg_color, 0.4);
}

.button,
.button.menuitem.menubar {
    padding: 4px 7px;
}

.button.image-button {
    padding: 4px;
}

.button.text-button {
    padding: 4px 16px;
}

.header-bar .button,
.header-bar .button.image-button,
.header-bar.titlebar GtkMenuButton.button.titlebutton {
    padding: 8px;
}

.titlebar .titlebutton {
    padding: 8px;
}

.header-bar .button.text-button {
    padding: 6px 16px;
}

.primary-toolbar .button {
    padding: 3px;
}

.primary-toolbar .button.image-button,
.path-bar .button.image-button {
    padding: 6px;
}

.primary-toolbar .button.text-button,
.path-bar .button {
    padding: 6px 16px;
}

.stack-switcher > .button.text-button {
      padding: 6px 10px 6px; 
}

GtkComboBox .button {
    padding: 2px 4px;
}

.inline-toolbar GtkToolButton > .button,
.inline-toolbar .button.image-button {
    padding: 4px;
}

.button {
    border-style: solid;
    border-color: transparent;
    color: @button_fg;
    icon-shadow: 0 1px @button_shadow;
}

.button:insensitive {
    color: @insensitive_fg_color;
    text-shadow: none;
    icon-shadow: none;
}

GtkLinkButton.button,
GtkLinkButton.button:active {
    color: @link_color;
    text-shadow: none;
}

GtkCalendar {
    padding: 2px;
}

GtkCalendar.view {
    padding: 2px;
    border: 1px solid @border;
    border-radius: 3px;
    background-color: @theme_base_color;
    background-image: none;
}

GtkCalendar.header {
    border-width: 0;
    border-radius: 0;
    background-image: linear-gradient(to bottom,
                            shade(@theme_base_color, 1.04),
                            shade(@theme_base_color, 0.89));
}

GtkCalendar.button,
GtkCalendar.button:insensitive {
    background-color: transparent;
    background-image: none;
}

.highlight,
GtkCalendar.highlight {
    padding: 0;
    border-width: 0;
    border-radius: 0;
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.cell {
    padding: 0px;
}

.cell:selected,
.cell:selected:focus {
    border-style: solid;
    border-width: 1px 0 1px 0;
    border-radius: 0;
    border-color: shade(@border, 0.9);
    background-color: @theme_selected_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
}

.check,
.radio,
.check:insensitive,
.radio:insensitive {
    border: none;
    background-color: transparent;
}

.menuitem.check,
.menuitem.radio,
.menuitem.check:hover,
.menuitem.radio:hover,
.menuitem.check:insensitive,
.menuitem.radio:insensitive {
    border-style: none;
    background-color: transparent;
    background-image: none;
}

GtkCheckButton:hover,
GtkCheckButton:active:hover,
GtkCheckButton:selected,
GtkCheckButton:selected:focus {
    background-color: transparent;
}

GtkColorSwatch,
GtkColorSwatch:selected {
    border-width: 1px;
    border-style: solid;
    border-radius: 1px;
    border-color: alpha(black, 0.3);
    box-shadow: inset 0 2px alpha(black, 0.07),
                inset 1px 1px alpha(black, 0.07);

    background-color: transparent;
    background-clip: border-box;
}

GtkColorSwatch:hover,
GtkColorSwatch:selected:hover {
    border-color: alpha(black, 0.45);
}

GtkColorSwatch.color-dark:hover {
    background-image: linear-gradient(to bottom,
                                      alpha(white, 0) 40%,
                                      alpha(white, 0.3)
                                      );
}

GtkColorSwatch.color-light:hover {
    background-image: linear-gradient(to top,
                                      alpha(black, 0) 40%,
                                      alpha(black, 0.1)
                                      );
}

GtkColorSwatch.color-light:selected:hover,
GtkColorSwatch.color-dark:selected:hover {
    background-image: none;
}

GtkColorSwatch.left,
GtkColorSwatch:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}

GtkColorSwatch.right,
GtkColorSwatch:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}

GtkColorSwatch:only-child {
    border-radius: 3px;
}

GtkColorSwatch.top {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}

GtkColorSwatch.bottom {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
}

GtkColorChooserWidget #add-color-button {
    background-clip: padding-box;
    border-color: mix(@border, @theme_bg_color, 0.3);
    background-color: mix(@border, @theme_bg_color, 0.3);
    color: @theme_base_color;
    box-shadow: none;
}

GtkColorChooserWidget #add-color-button:hover {
    border-color: @border;
    background-color: @border;
    color: @theme_base_color;
}

.color-active-badge,
.color-active-badge:selected {
    border-style: solid;
    border-width: 2px;
    background-color: transparent;
}

.color-active-badge.color-light,
.color-active-badge.color-light:hover {
    border-color: #444444;
    color: #444444;
}

.color-active-badge.color-dark,
.color-active-badge.color-dark:hover {
    border-color: #cccccc;
    color: #cccccc;
}

GtkColorEditor GtkColorSwatch {
    border-radius: 3px;
}

GtkColorEditor GtkColorSwatch.color-dark:hover,
GtkColorEditor GtkColorSwatch.color-light:hover {
    background-image: none;
    border-color: alpha(black, 0.3);
}

column-header.button,
column-header .button {
    -GtkWidget-focus-line-width: 0;
    padding: 2px 4px;
    color: @theme_fg_color;
    text-shadow: none;
    icon-shadow: none;
	box-shadow: none; 
}

column-header.button:insensitive,
column-header .button:insensitive {
}

column-header .button.dnd {
}

GtkComboBox {
    -GtkComboBox-arrow-scaling: 0.5;
    -GtkComboBox-shadow-type: none;
    padding: 1px;
}

GtkComboBox:insensitive {
    color: @insensitive_fg_color;
    text-shadow: none;
    icon-shadow: none;
}

GtkComboBox.combobox-entry .entry:first-child,
GtkComboBox.combobox-entry .button:first-child {
    border-right-width: 0;
    border-radius: 3px 0 0 3px;
    border-image-width: 3px 0 4px 3px;  
}
GtkComboBox.combobox-entry .entry:last-child,
GtkComboBox.combobox-entry .button:last-child {
    border-left-width: 0;
    border-radius: 0 3px 3px 0;
    border-image-width: 3px 3px 4px 0;    
}

GtkComboBox.combobox-entry .button {
    padding: 1px;
}

GtkComboBox.combobox-entry .button:first-child {
    box-shadow: inset -1px 0 @border;
}

GtkComboBox.combobox-entry .button:last-child {
    box-shadow: inset 1px 0 @border;
}

.content-view.view {
    background-color: @theme_base_color;
}

.content-view.view:insensitive {
}

.content-view.view:selected {
    background-color: @theme_selected_bg_color;
    background-image: none;
}

.content-view.cell {
    background-color: transparent;
    background-image: none;
}

.content-view.view.rubberband {
    border: 1px solid @theme_selected_bg_color;
    border-radius: 0;
    background-color: alpha(@theme_selected_bg_color, 0.3); 
}

EggListBox.content-view:hover,
.content-view.cell:hover {
    background-color: @theme_bg_color;
}

EggListBox.content-view:selected,
EggListBox.content-view:active,
.content-view.cell:selected,
.content-view.cell:active {
    background-color: @theme_selected_bg_color;
    background-image: none;
}

GdMainIconView.content-view {
    -GdMainIconView-icon-size: 40;
}

.window-frame {
    border-style: solid;
    border-width: 1px;
    border-radius: 4px 4px 0 0;
    border-color: darker(@theme_bg_color);
    box-shadow: 0 2px 8px 3px alpha(black, 0.5);
    
    /* this is used for the resize cursor area */
    margin: 10px;
}

.window-frame.tiled {
    border-radius: 0;
    background-color: @theme_bg_color;
}

.window-frame:backdrop {
    box-shadow: 0 2px 5px 1px alpha(black, 0.5);
}

GtkDrawingArea {
    background-color: transparent;
}

.entry {
    padding: 4px 5px 4px 5px;
    color: @theme_text_color;
}

.entry.image.left {
    padding-right: 6px;
}

.entry:focus {
}

.entry.progressbar,
.entry.progressbar:focus {
    margin-left: 2px;
    margin-right: 2px;
    border-image: none;
    border-style: none;
    background-color: transparent;
    background-image: linear-gradient(to top, 
                                      transparent 2px,
                                      white 2px,
                                      white 3px,
                                      shade(@theme_selected_bg_color, 0.9) 3px,
                                      shade(@theme_selected_bg_color, 0.9) 5px,
                                      transparent 5px);
    background-size: auto;
    box-shadow: none;
}

.entry.progressbar.pulse,
.entry.progressbar.pulse:focus {
    background-image: linear-gradient(to top, 
                                      transparent 2px,
                                      white 2px,
                                      white 3px,
                                      @border 3px,
                                      @border 5px,
                                      transparent 5px);
}

.entry:selected,
.entry:selected:focus {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.entry:insensitive {
    color: @insensitive_fg_color;
}

.entry:active {
}

.cursor-handle.top,
.cursor-handle.bottom {
}

.expander {
    color: @theme_fg_color;
}

.expander:active {
    color: @theme_fg_color;
}

.expander:hover {
    color: @theme_fg_color;
}

.expander row:selected,
.expander row:selected:focus {
    border-color: @theme_selected_fg_color;
    color: @theme_selected_fg_color;
}

.expander row:selected:hover,
.expander row:selected:focus:hover {
    border-color: @theme_selected_fg_color;
    color: @theme_selected_fg_color;
}

.gnome-panel-menu-bar,
PanelApplet > GtkMenuBar.menubar,
PanelToplevel,
PanelWidget,
PanelAppletFrame,
PanelApplet {
    background-color: @theme_bg_color;
    background-image: none;
    color: @theme_fg_color;
}

ClockBox,
.gnome-panel-menu-bar.menubar,
PanelApplet > GtkMenuBar.menubar {
    font: bold;
}

.gnome-panel-menu-bar.menubar .menuitem *:hover,
PanelApplet > GtkMenuBar.menubar .menuitem *:hover {
    text-shadow: 0 1px white;
}

.gnome-panel-menu-bar.menubar .menu,
PanelApplet > GtkMenuBar.menubar .menu {
    font: regular;
}

.gnome-panel-menu-bar.menubar .menu *:hover,
PanelApplet > GtkMenuBar.menubar .menu *:hover {
    text-shadow: none;
}

.gnome-panel-menu-bar .menuitem:hover,
PanelApplet > GtkMenuBar.menubar .menuitem:hover,
.gnome-panel-menu-bar .menuitem *:hover,
PanelApplet > GtkMenuBar.menubar .menuitem *:hover {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.gnome-panel-menu-bar .menuitem *:hover,
PanelApplet > GtkMenuBar.menubar .menuitem *:hover {
    color: @theme_selected_fg_color;
}

WnckPager {
    background-color: lighter(@theme_bg_color);
}

NaTrayApplet {
    -NaTrayApplet-icon-padding: 12;
    -NaTrayApplet-icon-size: 16;
}

GsmFailWhaleDialog {
    background-color: @theme_bg_color;
    background-image: none;
    color: @theme_fg_color;
}

GsmFailWhaleDialog .button,
GsmFailWhaleDialog .button:active {
    border-image: none;
    border-color: @border;
    border-width: 1px;
}

.floating-bar {
    border: 1px solid @border;
    border-radius: 3px;
    background-image: linear-gradient(to bottom,
                            @floating_bar_a,
                            @floating_bar_b);
}

.floating-bar.top {
    border-top-width: 0;
    border-top-right-radius: 0;
    border-top-left-radius: 0;
}

.floating-bar.right {
    border-right-width: 0;
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.floating-bar.bottom {
    border-bottom-width: 0;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

.floating-bar.left {
    border-left-width: 0;
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.floating-bar .button {
    -GtkButton-image-spacing: 0;
    -GtkButton-inner-border: 0;
    border: 1px solid @border;
    background-color: transparent;
    background-image: none;
}

GtkFlowBox .grid-child {
    padding: 3px;
    border-radius: 3px;
}

.frame,
GtkScrolledWindow.frame {
    padding: 0;
    border: 1px solid @border;
    border-radius: 3px;
}

GtkViewport.frame {
    border-width: 0;
}

.frame.flat,
GtkScrolledWindow GtkViewport.frame {
    border: none;
}

.frame.action-bar {
    padding: 4px;
    border-width: 1px 0 0;
}

.gtkstyle-fallback {
    background-color: @theme_bg_color;
    color: @theme_fg_color;
}

.gtkstyle-fallback:prelight {
    background-color: shade(@theme_bg_color, 1.1);
    color: @theme_fg_color;
}

.gtkstyle-fallback:active {
    background-color: shade(@theme_bg_color, 0.9);
    color: @theme_fg_color;
}

.gtkstyle-fallback:insensitive {
    background-color: shade(shade(@theme_bg_color, 0.95), 1.05);
    color: mix(@theme_fg_color, @theme_bg_color, 0.4);
}

.gtkstyle-fallback:selected {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.header-bar {
    padding: 6px 8px 6px 8px;
    border-style: none;
    background-color: transparent;
}
 
.titlebar {
    padding: 6px 8px 6px 8px;
    border-style: none;
    border-radius: 4px 4px 0 0;
    background-color: transparent;
    background-image: linear-gradient(to bottom,
                            mix(@theme_bg_color, #ffffff, 0.25),
                            @theme_bg_color 50%);
    box-shadow: inset 0 1px alpha(white, 0.7);                            
}

.header-bar .title 
.titlebar .title {
    font: 9;
    padding: 0 12px 0 12px;
}

.header-bar .subtitle,
.titlebar .subtitle {
    color: shade(@theme_bg_color, 0.5);
    font-size: smaller;
    padding: 0 12px;
}

.header-bar .title:backdrop,
.titlebar .title:backdrop,
.header-bar .subtitle:backdrop,
.titlebar .subtitle:backdrop {
    color: shade(@theme_bg_color, 0.8);
    text-shadow: none;
}

.tiled .titlebar,
.maximized .titlebar,
.tiled .header-bar,
.maximized .header-bar {
    border-radius: 0;
}

GtkIconView.cell:selected,
GtkIconView.cell:selected:focus {
    border: 1px solid @border;
    border-radius: 3px;
    background-image: linear-gradient(to bottom,
                            @iconview_selected_a,
                            @iconview_selected_b);
}

GtkImage,
GtkImage:active,
GtkImage:insensitive,
GtkLabel,
GtkLabel:active,
GtkLabel:insensitive,
GtkBox,
GtkBox:insensitive,
GtkGrid,
GtkGrid:insensitive {
    background-color: transparent;
}

.view.dim-label,
.dim-label {
    color: alpha(@theme_fg_color, 0.6);
}

.dim-label:selected,
.dim-label:selected:focus {
    color: alpha(@theme_selected_fg_color, 0.6);
}

.info,
.question,
.warning,
.error {
    border-style: solid;
    border-width: 0 0 1px 0;
    border-radius: 0;
    border-color: @border;
    border-image: none;
}

.info {
    background: linear-gradient(to bottom,
                            @info_color,
                            @theme_bg_color);
}

.info GtkLabel {
    font-weight: bold;
    color: @theme_text_color;
    text-shadow: 0 1px @button_shadow;
}

.question {
    background-image: linear-gradient(to bottom,
                            @question_color,
                            @theme_bg_color);
}

.question GtkLabel {
    font-weight: bold;
    color: @theme_text_color;
    text-shadow: 0 1px @button_shadow;
}

.warning {
    background-image: linear-gradient(to bottom,
                            @warning_color,
                            @theme_bg_color);
}

.warning GtkLabel {
    font-weight: bold;
    color: @theme_text_color;
    text-shadow: 0 1px @button_shadow;
}

.error {
    background-image: linear-gradient(to bottom,
                            @error_color,
                            @theme_bg_color);
}

.error GtkLabel {
    font-weight: bold;
    color: @theme_text_color;
    text-shadow: 0 1px @button_shadow;
}

GtkInfoBar .entry,
GtkInfoBar .menu {
    color: @text_color;
}

GtkLevelBar {
    -GtkLevelBar-min-block-width: 34;
    -GtkLevelBar-min-block-height: 3;
}

GtkLevelBar.vertical {
    -GtkLevelBar-min-block-width: 3;
    -GtkLevelBar-min-block-height: 34;
}

.level-bar.trough {
    padding: 2px;
}

.level-bar.fill-block {
    border: 1px solid @progressbar_border;
    background-image: linear-gradient(to bottom,
                            @progressbar_a,
                            @progressbar_b);
}

.level-bar.indicator-continuous.fill-block {
    padding: 2px;
    border-radius: 2px;
}

.level-bar.indicator-discrete.fill-block.horizontal {
    margin: 0 1px;
}

.level-bar.indicator-discrete.fill-block.vertical {
    margin: 1px 0;
}

.level-bar.fill-block.level-high {
    border-color: shade(@success_color, 0.85);
    background-image: linear-gradient(to bottom,
                                      shade(@success_color, 1.2),
                                      @success_color 75%,
                                      shade(@success_color, 0.95));
}

.level-bar.fill-block.level-low {
    border-color: shade(@warning_bg_color, 0.80);
    background-image: linear-gradient(to bottom,
                                      shade(@warning_color, 1.3),
                                      @warning_color 75%,
                                      shade(@warning_color, 0.90));
}

.level-bar.fill-block.empty-fill-block {
    border-color: alpha(@theme_fg_color, 0.1);
    background-color: transparent;
    background-image: none;
}

EggListBox {
    background-color: @theme_base_color;    
}

EggListBox:hover {
    background-color: shade(@theme_base_color, 0.95);
}

EggListBox:selected {
    background-color: @theme_selected_bg_color;
}

.list {
    background-color: @theme_base_color;
}

.list-row:hover {
    background-color: shade(@theme_base_color, 0.95);
}

.list-row:selected {
    background-color: @theme_selected_bg_color;
}

.list-row.button {
    border-style: none;
    border-color: transparent;
    border-image: none;
    border-radius: 0;
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}

.list-row.button:hover {
    background-color: shade(@theme_base_color, 0.95);
    background-image: none;
}

.list-row.button:active:hover {
    border-image: none;
    border-color: transparent;
    background-color: shade(@theme_base_color, 0.8);
    background-image: none;
    box-shadow: inset 0 2px 2px -2px alpha(black, 0.5);
}

.list-row.button:selected {
    background-color: @theme_selected_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
}

.list-row.button:selected:hover {
    background-color: shade(@theme_selected_bg_color, 0.85);
    background-image: none;
}

.dnd {
    border: 1px solid shade(@theme_selected_bg_color, 1.12);
}

.view.rubberband,
.rubberband {
    border: 1px solid @theme_selected_bg_color;
    border-radius: 0;
    background-color: alpha(@theme_selected_bg_color, 0.3);
}

GtkTreeMenu.menu {
    border: 1px solid @border;
    border-radius: 0;
    background-color: @menu_bg;
}

GtkMenuButton .menu {
    text-shadow: none;
}

.context-menu {
}

.menu {
    padding:2px;
    border: 1px solid @border;
    border-radius: 0;
    background-color: @menu_bg;
}

.menu.button {
    border: 1px solid @border;
    border-radius: 0;
    border-image: none;
    background-color: shade(@menu_bg, 0.9);
    background-image: none;
    color: @menu_fg;
}

.menu.button:hover {
    border: 1px solid @border;
    border-radius: 0;
    border-image: none;
    background-color: mix(shade(@menu_bg, 0.9), @theme_selected_bg_color, 0.4);
    background-image: none;
    color: @menu_fg;
}

.menu.button:insensitive {
    border: 1px solid @border;
    border-radius: 0;
    border-image: none;
    background-color: @menu_bg;
    background-image: none;
    color: @insensitive_fg_color;
}

.menubar {
    -GtkWidget-window-dragging: true;
    border: none;
}

.menubar .menuitem {
    padding: 4px 8px;
    border: none;
}

.menubar .menuitem:hover {
    border: 1px solid @progressbar_border;
    border-radius: 3px 3px 0 0;
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
    text-shadow: none;
}

GtkTreeMenu .menuitem,
.menu .menuitem {
    -GtkMenuItem-arrow-scaling: 0.5;
    color: @menu_fg;
    background-color: @menu_bg;
}

GtkTreeMenu .menuitem {
    padding: 2px;
}

.menu .menuitem {
    padding: 5px 6px;
}

GtkTreeMenu .menuitem,
.button .menuitem,
.toolbar .button .menuitem,
.menu .menuitem {
    text-shadow: none;
}

.menu .menuitem:hover {
    border-radius: 0;
}

.menu .menuitem:active,
.menu .menuitem:hover {
    border: 1px solid @progressbar_border;
    background-color: @theme_selected_bg_color;
}

.menu .menuitem:insensitive {
    background-image: none;
}

.menu .menuitem:active,
.menu .menuitem:hover {
    color: @theme_selected_fg_color;
}

.menu .menuitem:insensitive {
    color: mix(@menu_fg, @menu_bg, 0.6);
}

GtkModelMenuItem GtkBox GtkImage {
}

.menuitem.arrow {
}

.notebook {
    padding: 0;

    border-color: @notebook_selected_tab_border;
    border-style: solid;
    border-width: 1px;

    background-clip: border-box;
    background-color: @theme_base_color;

    -GtkNotebook-tab-overlap: 4;
    -GtkNotebook-tab-curvature: 2;
    -GtkNotebook-initial-gap: 0;
    border-radius: 3px 3px 3px 3px;
}
.notebook.frame {
}

.notebook.header {
    border: none;
    background-image: none;
    background-color: transparent;
}


.notebook GtkViewport {
    background-color: transparent;
}

.notebook tab {
    border-color: @notebook_tab_border;
    background-color: @notebook_tab;

}

.notebook tab:active {
	background-image: none;
    background-color: @theme_base_color;
}

.notebook tab.top {
    padding: 6px 5px 3px 5px;
}

.notebook tab.bottom {
    padding: 3px 5px 6px 5px;
}

.notebook tab.left {
   padding: 5px 4px 5px 6px;
}

.notebook tab.right {
   padding: 5px 6px 5px 4px;
}

.notebook tab.top:active {
    border-radius: 3px 3px 0 0;
    padding: 7px 5px 5px 5px;
}

.notebook tab.bottom:active {
    border-radius: 0 0 3px 3px;
    padding: 5px 5px 7px 5px;
}

.notebook tab.left:active {
    border-radius: 3px 0 0 3px;
   padding: 5px 5px 5px 7px;
}

.notebook tab.right:active {
    border-radius: 0 3px 3px 0;
    padding: 5px 7px 5px 5px;
}

.notebook tab .button,
.notebook tab .button:active,
.notebook tab .button:hover {
    border-image: none;
    border-style: none;
    background-image: none;
    background-color: transparent;
}

.notebook tab .button GtkImage {
    border-radius: 3px;
    color: mix(@theme_fg_color, @theme_base_color, 0.6);
    border-style: solid;
    border-color: transparent;
    border-width: 1px;
    padding: 1px;

    icon-shadow: 0 1px @button_shadow;
}

.notebook tab .button GtkImage:hover {
    color: @theme_fg_color;
    border-color: alpha(black, 0.1);
}

.notebook tab .button GtkImage:active,
.notebook tab .button GtkImage:active:hover {
    background-color: alpha(black, 0.08);
    box-shadow: inset 0 1px alpha(black, 0.05);
    color:  @button_active_text;
    icon-shadow: 0 1px @button_active_text_shadow;

    border-color: alpha(black, 0.27) 
                  alpha(black, 0.13) 
                  alpha(black, 0.13) 
                  alpha(black, 0.13);
}

.notebook tab .button GtkImage:backdrop {
    color: mix(@theme_unfocused_fg_color, @theme_unfocused_base_color, 0.7);
    icon-shadow: none;
}

.notebook tab .button GtkImage:backdrop:hover {
    color: @theme_unfocused_fg_color;
}

.background.osd {
    background-color: @osd_bg;
    color: @osd_fg;
}

GtkOverlay.osd {
    background-color: transparent;
}

.osd.trough {
    background-color: alpha(@osd_bg, 0.6);
}

.osd.progressbar {
    background-color: @osd_fg;
}

.pane-separator {
    background-color: transparent;
    color: @theme_fg_color;
}

.grip {
    background-color: transparent;
}

.popover {
    margin: 10px;
    padding: 2px;
    border: 1px solid @border;
    border-radius: 5px;
    background-color: @menu_bg;
    box-shadow: 0 1px 3px 2px alpha(black, 0.2);
}

.popover.osd {
    background-image: none;
    background-color: red;
}

.popover > .list, 
.popover > .view, 
.popover > .toolbar .popover.osd > .toolbar, 
.popover > .inline-toolbar .popover.osd > .toolbar, 
.popover > .search-bar .popover.osd > .toolbar, 
.popover > .location-bar .popover.osd > .toolbar,
.popover > .toolbar .popover.osd > .inline-toolbar, 
.popover > .inline-toolbar .popover.osd > .inline-toolbar, 
.popover > .search-bar .popover.osd > .inline-toolbar, 
.popover > .location-bar .popover.osd > .inline-toolbar,
.popover > .toolbar .popover.osd > .search-bar, 
.popover > .inline-toolbar .popover.osd > .search-bar, 
.popover > .search-bar .popover.osd > .search-bar,
.popover > .location-bar .popover.osd > .search-bar,
.popover > .toolbar .popover.osd > .location-bar,
.popover > .inline-toolbar .popover.osd > .location-bar, 
.popover > .search-bar .popover.osd > .location-bar, 
.popover > .location-bar .popover.osd > .location-bar {
    border-style: none;
    background-color: transparent;
}

.popover .button.flat,
.popover .button.flat:checked {
    border: 1px solid transparent;
    border-image: none;
    background-color: transparent;
    background-image:none;
    color: @menu_fg;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: none;
}

.popover .button.flat:hover,
.popover .button.flat:active,
.popover .button.flat:active:hover,
.popover .button.flat:checked:hover {
    border: 1px solid @border;
    background-color: @theme_selected_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
    box-shadow: none;
}

GtkProgressBar {
    -GtkProgressBar-min-horizontal-bar-height: 12;
    -GtkProgressBar-min-vertical-bar-width: 12;
    padding: 0;
    font-size: 6pt;
}

.progressbar,
.progressbar row,
.progressbar row:hover,
.progressbar row:selected,
.progressbar row:selected:focus {
    border: 1px solid @progressbar_border;
    border-radius: 3px;
	background-image: linear-gradient(to left top,
                                      alpha (@progressbar_border, 0.25),
                                      alpha (@progressbar_border, 0.25) 25%,
                                      transparent 25%,
                                      transparent 50%,
                                      alpha (@progressbar_border, 0.25) 50%,
                                      alpha (@progressbar_border, 0.25) 75%,
                                      transparent 75%,
                                      transparent
                                      ),
                      linear-gradient(to bottom,
                                      @progressbar_a,
                                      @progressbar_b 75%,
                                      shade(@progressbar_a, 0.85)
                                      );
    background-size: 40px 40px, auto;
    box-shadow: 0 1px alpha(white, 0.15);
}

.progressbar.vertical {
	background-image: linear-gradient(to right top,
                                      alpha (@progressbar_border, 0.25),
                                      alpha (@progressbar_border, 0.25) 25%,
                                      transparent 25%,
                                      transparent 50%,
                                      alpha (@progressbar_border, 0.25) 50%,
                                      alpha (@progressbar_border, 0.25) 75%,
                                      transparent 75%,
                                      transparent),
                      linear-gradient(to right,
                                      @progressbar_a,
                                      @progressbar_b 75%,
                                      shade(@progressbar_a, 0.85)
                                      );
    box-shadow: 1px 0 alpha(white, 0.15);
}

.trough,
.trough row,
.trough row:hover,
.trough row:selected,
.trough row:selected:focus {
    padding: 0;
    border: 1px solid @border;
    border-radius: 3px;
    background-image: linear-gradient(to bottom,
                            @progressbar_trough_a,
                            @progressbar_trough_b);
    box-shadow: inset 0 1px alpha(@border, 0.3),
                inset 1px 0 alpha(@border, 0.15),
                inset -1px 0 alpha(@border, 0.15),
                inset 0 -1px alpha(@border, 0.06);
}

.trough.vertical {
    background-image: linear-gradient(to right,
                            @progressbar_trough_a,
                            @progressbar_trough_b); 
    box-shadow: inset 0 1px alpha(@border, 0.3),
                inset 1px 0 alpha(@border, 0.15),
                inset -1px 0 alpha(@border, 0.15),
                inset 0 -1px alpha(@border, 0.06);
}

.trough row {
    color: @theme_fg_color;
}

.trough row:selected,
.trough row:selected:focus {
    color: @theme_fg_color;
}

.scale {
    -GtkRange-slider-width: 15;
    -GtkScale-slider-length: 15;
    -GtkRange-trough-border: 0;
    -GtkWidget-focus-line-width: 0;
}

.scale.slider {
    border: none;
    background-color: transparent;
    background-size: 15px 15px;
    background-position: center center;
    background-repeat: no-repeat;
    color: transparent;
}

.scale.slider.fine-tune:active,
.scale.slider.fine-tune:active:hover,
.scale.slider.fine-tune.horizontal:active,
.scale.slider.fine-tune.horizontal:active:hover {
    background-size: 75%;
    background-repeat: no-repeat;
    background-position: center;
}

.scale.trough {
    margin: 4px 0;
}

.scale.trough.vertical {
    margin: 0 4px;
}

.scale.trough {
    background-color: transparent;
    background-image: linear-gradient(to bottom,
                            @scale_trough_a,
                            @scale_trough_b);
    box-shadow: 0 2px alpha(black, 0.05);
}

.primary-toolbar .scale.trough {
    background-image: linear-gradient(to bottom,
                            shade(@scale_trough_a, 0.9),
                            shade(@scale_trough_b, 0.9));
}

.scale.trough.vertical {
    background-color: transparent;
    background-image: linear-gradient(to right,
                            @scale_trough_a,
                            @scale_trough_b);
    box-shadow: 2px 0 alpha(black, 0.05);
}

.primary-toolbar .scale.trough.vertical {
    background-image: linear-gradient(to right,
                            shade(@scale_trough_a, 0.9),
                            shade(@scale_trough_b, 0.9));
}

.scale.trough.highlight {
    background-image: linear-gradient(to bottom,
                            @scale_fill_a,
                            @scale_fill_b);
    box-shadow: inset 0 1px @scale_fill_shadow,
                inset 1px 0 @scale_fill_shadow,
                inset -1px 0 @scale_fill_shadow,
                inset 0 -1px @scale_fill_shadow;
}

.scale.trough.highlight.vertical {
    background-image: linear-gradient(to right,
                            @scale_fill_a,
                            @scale_fill_b);
    box-shadow: inset 0 1px @scale_fill_shadow,
                inset 1px 0 @scale_fill_shadow,
                inset -1px 0 @scale_fill_shadow,
                inset 0 -1px @scale_fill_shadow;
}

.scale.trough:insensitive,
.scale.trough.highlight:insensitive,
.scale.trough.vertical:insensitive,
.scale.trough.highlight.vertical:insensitive {
    background-color: @theme_bg_color;
    background-image: none;
    box-shadow: none;                            
}

.primary-toolbar .scale.trough:insensitive,
.primary-toolbar .scale.trough.highlight:insensitive,
.primary-toolbar .scale.trough.vertical:insensitive,
.primary-toolbar .scale.trough.highlight.vertical:insensitive {
    background-color: shade(@theme_bg_color, 0.9);
    background-image: none;
    box-shadow: none;                            
}

.scale.progressbar {
    background-image: none;
    background-color: @theme_selected_bg_color;
}

.scale.mark.separator {
    color: @border;
}

.scrollbar {
    -GtkRange-trough-border:4;
    -GtkScrollbar-has-backward-stepper: 0;
    -GtkScrollbar-has-forward-stepper: 0;
    -GtkRange-slider-width: 7;
    -GtkScrollbar-min-slider-length: 30;
    -GtkRange-stepper-spacing: 0;
    -GtkRange-trough-under-steppers: 1;
}

.scrollbar.trough,
.scrollbar.trough.vertical,
.scrollbar.trough.horizontal {
    border: none;
	background-image:none;
	background-color:@scroll_trough;
}


.scrollbar.slider,
.scrollbar.slider.vertical,
.scrollbar.slider.horizontal {
    border: 0px;
    border-radius: 20px;
    background-color: @scroll_slider;
}

.scrollbar.slider.vertical:hover,
.scrollbar.slider.horizontal:hover {
    background-color: @scroll_slider_hover;
}

.scrollbar.slider.fine-tune:prelight:active {
    border: 3px solid transparent;
    background-color: shade(@theme_bg_color, 0.9);
    background-image: none;
    box-shadow: none;
}

.separator {
    -GtkWidget-wide-separators: 1;
    -GtkWidget-separator-width: 2;
    -GtkWidget-separator-height: 2;
    border: 1px solid transparent;
    border-top-color: alpha(@linked_button_border, 0.25);
    border-bottom-color: alpha(@linked_button_shadow, 0.42);
}

.separator.vertical {
    border: 1px solid transparent;
    border-left-color: alpha(@linked_button_border, 0.25);
    border-right-color: alpha(@linked_button_shadow, 0.42);
}

GtkTreeView.separator {
    color: @border;
}

GtkComboBox .separator {
    /* always disable separators */
    -GtkWidget-wide-separators: 1;
    -GtkWidget-horizontal-separator: 0;
    -GtkWidget-vertical-separator: 0;
}


.menuitem.separator,
GtkMenuButton .menuitem.separator {
    -GtkWidget-wide-separators: true;
    -GtkWidget-separator-height: 2;
    border: 1px solid transparent;
    border-top-color: alpha(@linked_button_border, 0.25);
    border-bottom-color: alpha(@linked_button_shadow, 0.42);
}

.primary-toolbar GtkSeparatorToolItem,
.primary-toolbar .separator {
    -GtkWidget-window-dragging: true;
    border-color: transparent;
    border-left-color: alpha(@linked_button_border, 0.25);
    border-right-color: alpha(@linked_button_shadow, 0.42);
}

.button .separator {
    border-color: transparent;
}

.sidebar,
.sidebar .view,
.sidebar GtkScrolledWindow {
    background-color: @sidebar_bg;
}

.sidebar .scrollbar {
    -GtkRange-slider-width: 10;
}

.sidebar .scrollbar.slider {
}

.sidebar .radio,
.sidebar .radio:focus,
.sidebar .radio:selected {
    background-color: transparent;
    background-image: none;
}

.spinbutton .button {
    padding: 2px 4px;
    border-width: 0;
    border-radius: 0;
    border-image: none;
    box-shadow: inset 0 1px alpha(@linked_button_shadow, 0.5),
                inset 1px 0 alpha(@linked_button_border, 0.4),
                inset -1px 0 alpha(@linked_button_shadow, 0.2),
                inset 0 -1px alpha(@linked_button_border, 0.04);

}
.spinbutton .button:active {
    border-width: 0;
    border-radius: 0;
    border-image: none;
    box-shadow: inset 0 2px alpha(@linked_button_border, 0.05),
                inset 1px 0 alpha(@linked_button_border, 0.3),
                inset 0 -1px alpha(@linked_button_border, 0.04);
}

.spinbutton .button:insensitive {
    border-width: 0;
    border-radius: 0;
    border-image: none;
    box-shadow: inset 1px 0 alpha(@linked_button_border, 0.2),
                inset -1px 0 alpha(@linked_button_shadow, 0.0),
                inset 0 1px alpha(@linked_button_shadow, 0.0);
}

.spinbutton .button:first-child {
    border-style: solid;
    border-width: 0 0 0 1px;
    border-radius: 0;
    border-image: none;
    border-color: @border;
}

.spinbutton .button:last-child {
    border-radius: 0 3px 3px 0;
}

.spinbutton.vertical .button {
    border: 1px solid @border;
    border-image: none;
    box-shadow: none;
}

.spinbutton.vertical .button:first-child {
    border-radius: 3px 3px 0 0;
}

.spinbutton.vertical .button:last-child {
    border-radius: 0 0 3px 3px;
}

.spinbutton.vertical.entry {
    border-style: solid;
    border-width: 0 1px 0 1px;
    border-radius: 0;
    border-color: @border;
    border-image: none;
    box-shadow: 0 1px alpha(black, 0.1);
}

.spinbutton.vertical .button:insensitive,
.spinbutton.vertical.entry:insensitive {
    border-color: alpha(@border, 0.6);
}

@keyframes spin {
    to {
        -gtk-icon-transform: rotate(1turn);
    }
}

.spinner {
    background-image: none;
    opacity: 1;
    -gtk-icon-source: -gtk-icontheme("process-working-symbolic");
}

.spinner:insensitive {
    opacity: 0.5;
}

.spinner:active {
    opacity: 1;
    animation: spin 1s linear infinite;
}

.spinner:active:insensitive {
    opacity: 0.5;
}

GtkStackSwitcher .button:active {
    font-weight: bold;
}

GtkStatusbar {
    -GtkStatusbar-shadow-type: none;
    border-color:transparent;
    padding: 1px;
    color: @theme_fg_color;
}

GtkSwitch {
    font: bold condensed 9;
}

GtkSwitch.trough {
    padding: 1px;
    color: @button_fg;
    text-shadow: 0 1px @button_shadow;
}

GtkSwitch.trough:active {
    color: @theme_selected_fg_color;
    text-shadow: 1px 1px @scale_fill_shadow;
}

GtkSwitch.trough:insensitive,
GtkSwitch.trough:insensitive:active {
    color: @insensitive_fg_color;
    text-shadow: none;
}

GtkSwitch.slider {
    padding: 1px;
}

.image {
    color: @internal_element_color;
}

.image:hover {
    color: @internal_element_prelight;
}

.image:selected,
.image:selected:hover {
    color: @theme_selected_fg_color;
}

.view.image,
.view.image:hover {
}

GtkTextView {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

.toolbar {
    padding: 6px;
    border-style: none;
    background-color: transparent;
}

.toolbar.menubar {
    -GtkToolbar-button-relief: normal;
}

.primary-toolbar .toolbar,
.primary-toolbar.toolbar {
    -GtkWidget-window-dragging: true;
    -GtkToolbar-button-relief: normal;
    padding-top: 3px;
    padding-bottom: 5px;
    color: @theme_fg_color;
}

.primary-toolbar .toolbar:insensitive,
.primary-toolbar.toolbar:insensitive {
    text-shadow: none;
}

.primary-toolbar .toolbar .separator,
.primary-toolbar.toolbar .separator {
    -GtkWidget-window-dragging: true;
}

.primary-toolbar .toolbar .entry.progressbar,
.primary-toolbar.toolbar .entry.progressbar {
}

.inline-toolbar.toolbar {
    -GtkToolbar-button-relief: normal;
    padding: 2px;
    border: 1px solid @border;
}

.inline-toolbar.toolbar:last-child {
    border-top-width: 0;
    border-radius: 0 0 3px 3px;
}

.inline-toolbar.toolbar.vertical:last-child {
    border-left-width: 0;
    border-radius: 0;
}

.tooltip {
    padding: 2px;
    background-color: @theme_tooltip_bg_color;
    color: @theme_tooltip_fg_color;    
}

.tooltip * {
    background-color: transparent;
}

GtkTreeView {
    -GtkTreeView-vertical-separator: 2;
    -GtkWidget-focus-line-width: 1;
    -GtkWidget-focus-padding: 1;
}

GtkTreeView.dnd {
    border: 1px solid shade(@theme_selected_bg_color, 1.2);
    border-radius: 3px;
}

GtkTreeView:selected:focus {
}

GtkTreeView .entry {
    border-color: @theme_fg_color;
    border-width: 1px;
}

GtkTreeView row:nth-child(odd){
    background-color:  shade(@theme_base_color, 0.93);
}
GtkTreeView row:nth-child(even) {
    background-color: @theme_base_color;
}

GtkViewport {
    background-color: @theme_bg_color;
}

GtkViewport .view {
    background-color: transparent;
}

.view {
    background-color: @theme_base_color;
    color: @theme_text_color;
}

.view:selected,
.view:selected:focus {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}

.view:insensitive {
    background-color: shade(@theme_base_color, 0.95);
    color: shade(@insensitive_fg_color, 1.3);
}
