/* *************************************************************************************************

# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

************************************************************************************************* */
@import url("colCommon.css");
@import url("colAccents.css");

* {
    padding: 0;
    -GtkToolButton-icon-spacing: 4;
    -GtkTextView-error-underline-color: @error_text_color;
    -GtkScrolledWindow-scrollbar-spacing: 0;
    -GtkToolItemGroup-expander-size: 11;
    -GtkWidget-text-handle-width: 20;
    -GtkWidget-text-handle-height: 24;
    -GtkDialog-button-spacing: 4;
    -GtkDialog-action-area-border: 0;
    -GtkTreeView-vertical-separator: 0;
    -GtkWidget-separator-width: 1;
    -GtkWidget-separator-height: 1;
    -GtkWidget-wide-separators: true;
    -GtkSeparatorMenuItem-horizontal-padding: 0;
    -GtkCheckButton-indicator-size: 16;
    -GtkCheckMenuItem-indicator-size: 16;
    -GtkScrolledWindow-scrollbars-within-bevel: 1;
    -GtkExpander-expander-size: 16;
    -GtkTreeView-expander-size: 11;
    -GtkTreeView-horizontal-separator: 1;
    -GtkMenu-horizontal-padding: 0;
    -GtkMenu-vertical-padding: 0;
    -GtkWidget-focus-padding: 2;
    -GtkWidget-focus-line-width: 1;
    -GtkStatusbar-shadow-type: none;

    outline-color: alpha(currentColor,0.3);
    outline-style: dashed;
    outline-offset: -3px;
    outline-width: 1px;
}



/***************
 * Base States *
 ***************/
.background {
    color: @theme_fg_color;
    background-color: @theme_bg_color;
}
.background:backdrop {
    color: @theme_fg_color_dis;
    background-color: @theme_bg_color;
    text-shadow: none;
    icon-shadow: none;
}

.gtkstyle-fallback {
    color: @theme_fg_color;
    background-color: @theme_bg_color;
}
.gtkstyle-fallback:hover {
    color: @theme_fg_color;
    background-color: @theme_bg_color_hov;
}
.gtkstyle-fallback:active {
    color: @theme_fg_color;
    background-color: @theme_bg_color_hov;
}
.gtkstyle-fallback:insensitive {
    color: @theme_fg_color_dis;
    background-color: @insensitive_bg_color;
}
.gtkstyle-fallback:selected {
    color: @theme_fg_color;
    background-color: @theme_selected_bg_color;
}

/* *************************************************************************************************
 * Views
 **************************************************************************************************/
.view, 
iconview,
.view text,
iconview text,
textview text,
GtkTextView {
    color: @theme_fg_color;
    background-color: @view_bg;
}
.view:backdrop, 
iconview:backdrop,
.view text:backdrop,
iconview text:backdrop,
textview text:backdrop,
GtkTextView:backdrop {
    color: @theme_fg_color_dis;
    background-color: @view_bg;
}

textview border {
    background-color: @view_border;
}


.rubberband,
rubberband,
flowbox rubberband,
treeview.view rubberband,
.content-view rubberband,
.content-view .rubberband {
    border: 1px solid @view_border;
    background-color: rgba(74, 144, 217, 0.2);
}

flowbox flowboxchild {
    padding: 3px;
    border-radius: 3px;
}
flowbox flowboxchild:selected {
    outline-offset: -2px;
}

label {
    color: @theme_fg_color;
}
label.separator,
.label.separator,
GtkPlacesSidebar.sidebar .view .label.separator {
    opacity: 0.55;
    text-shadow: none;
    color: @theme_fg_color;
}
label.separator:backdrop,
.label.separator:backdrop,
GtkPlacesSidebar.sidebar .view .label.separator:backdrop {
    color: @theme_fg_color_dis;
}
label selection {
    background-color: @label_bg_active;
    color: @theme_fg_color;
}
label:insensitive,
.label:insensitive {
    color: @theme_fg_color_dis;
}
label:insensitive:backdrop,
.label:insensitive:backdrop {
    color: @label_fg_dis;
}
label:backdrop {
    color: @theme_fg_color_dis;
}

.dim-label,
.titlebar:not(headerbar) .subtitle,
headerbar .subtitle,
.label.separator,
GtkPlacesSidebar.sidebar .view .label.separator,
.titlebar .subtitle,
.header-bar .subtitle {
    opacity: 0.55;
    text-shadow: none;
}

.csd popover.background.touch-selection,
.csd popover.background.magnifier,
popover.background.touch-selection,
popover.background.magnifier,
.csd popover.background.osd,
popover.background.osd,
.app-notification,
.app-notification.frame {
    color: @button_fg_osd;
    border: none;
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
}

popover.background.touch-selection:backdrop, 
popover.background.magnifier:backdrop, 
popover.background.osd:backdrop, 
.app-notification:backdrop, 
.osd .scale-popup:backdrop,
.osd:backdrop {
    text-shadow: none;
    icon-shadow: none;
}

/***************************************************************************************************
 * Separator
 **************************************************************************************************/
separator {
    background: rgba(0, 0, 0, 0.2);
}

/***************************************************************************************************
 * Spinner Animation
 **************************************************************************************************/
@keyframes spin {
    to {
        -gtk-icon-transform: rotate(1turn); 
    } 
}
.spinner,
spinner {
    background: none;
    opacity: 0;
    -gtk-icon-source: -gtk-icontheme("process-working-symbolic"); 
}
.spinner:active,
spinner:checked {
    opacity: 1;
    animation: spin 1s linear infinite; 
}
.spinner:active:insensitive,
spinner:checked:insensitive {
    opacity: 0.5; 
}

/***************************************************************************************************
 * Text Entries
 **************************************************************************************************/
.entry,
spinbutton:not(.vertical),
entry {
    padding: 4px 6px;
    border: 1px solid;
    border-radius: 3px;
    color: #000000; /* workaround webkit2gtk 2.26 */
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-color: @entry_border;
    background-image: linear-gradient(to bottom, @entry_bg_a, @entry_bg_b 40%, @entry_bg_c);
    /*box-shadow: inset 0 0 0 1px alpha(@entry_bg_shadow, 0.2);*/
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
entry,
.entry {
    background-color: @theme_accent_color; 
}
/* workaround webkit2gtk 2.26 */
* entry,
.entry,
spinbutton:not(.vertical) {
    color: @entry_fg_color;
}
.entry:selected,
.entry:selected:focus,
entry:selected,
entry:selected:focus {
    color: @theme_selected_fg_color;
    background-color: @theme_accent_color; 
}
.header-bar .entry,
.titlebar .entry,
headerbar spinbutton:not(.vertical),
headerbar entry {
    padding: 6px 8px;
    border: 1px solid;
    border-radius: 3px;
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: @titleentry_fg_color;
    border-color: @titleentry_border;
    background-image: linear-gradient(to bottom, @titleentry_bg_a, @titleentry_bg_b 40%, @titleentry_bg_c);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
headerbar spinbutton:not(.vertical) image,
headerbar entry image,
.header-bar .entry.image,
.titlebar .entry.image {
    color: @titleentry_fg_color;
}
.entry.image.left {
    padding-left: 0;
}
.entry.image.right {
    padding-right: 0;
}
entry .entry-tag {
    margin: 6px;
    background-image: linear-gradient(to bottom, @entry_tag_a, @entry_tag_b 40%, @entry_tag_c);
    border: 1px solid @entry_tag_border;
    border-radius: 4px;
}
.entry-tag.button {
  border: none;
}

.linked > .entry {
    border-radius: 0;
}
.linked > .entry:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
.linked > .entry:first-child:dir(rtl) {
    border-right-style: none;
}
.linked > .entry:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-left-style: none;
}
.linked > .entry:last-child:dir(rtl) {
    border-left-style: solid;
}

spinbutton:not(.vertical) image.left,
entry image.left {
    margin-right: 6px;
}
spinbutton:not(.vertical) image.right,
entry image.right {
    margin-left: 6px;
}
spinbutton:not(.vertical) undershoot.left,
entry undershoot.left {
    background-color: transparent;
    background-image: linear-gradient(to top, alpha(@entry_bg_under_a, 0.2) 50%, alpha(@entry_bg_under_b, 0.2) 50%);
    padding-left: 1px;
    background-size: 1px 10px;
    background-repeat: repeat-y;
    background-origin: content-box;
    background-position: left center;
    border: none;
    box-shadow: none;
}
spinbutton:not(.vertical) undershoot.right,
entry undershoot.right {
    background-color: transparent;
    background-image: linear-gradient(to top, alpha(@entry_bg_under_a, 0.2) 50%, alpha(@entry_bg_under_b, 0.2) 50%);
    padding-right: 1px;
    background-size: 1px 10px;
    background-repeat: repeat-y;
    background-origin: content-box;
    background-position: right center;
    border: none;
    box-shadow: none;
}
.entry.flat,
.entry.flat:focus,
spinbutton.flat:focus:not(.vertical), spinbutton.flat:not(.vertical),
entry.flat:focus,
entry.flat {
    padding: 2px;
    background-color: transparent;
    border-color: transparent;
    border-radius: 0;
}
.entry:focus,
spinbutton:focus:not(.vertical),
entry:focus {
    box-shadow: inset 0 0 0 1px @entry_border_act_shad, 0 1px 1px alpha(@box_shadow, 0.2);
    border-color: @entry_border_act;
}
.header-bar .entry:insensitive,
.titlebar .entry:insensitive,
headerbar spinbutton:insensitive:not(.vertical),
headerbar entry:insensitive {
    color: @theme_fg_color_dis;
    border-color: @titleentry_border_dis;
    background-color: @insensitive_bg_color;
}
.entry:insensitive,
spinbutton:insensitive:not(.vertical),
entry:insensitive {
    color: @theme_fg_color_dis;
    border-color: @entry_border_dis;
    /*background-color: @insensitive_bg_color;*/
}

.entry:backdrop,
spinbutton:backdrop:not(.vertical),
entry:backdrop {
    color: @entry_fg_dis;
    border-color: @entry_border_dis;
    transition: 200ms ease-out;
}
.header-bar .entry:backdrop,
.titlebar .entry:backdrop,
headerbar spinbutton:backdrop:not(.vertical),
headerbar entry:backdrop {
    color: @titleentry_fg_dis;
    border-color: @titleentry_border_dis;
    transition: 200ms ease-out;
}
.entry:backdrop:insensitive,
spinbutton:backdrop:insensitive:not(.vertical),
entry:backdrop:insensitive {
    color: @entry_fg_dis;
    border-color: @entry_border_dis;
    background-color: @insensitive_bg_color;
}
.header-bar .entry:backdrop:insensitive,
.titlebar .entry:backdrop:insensitive,
headerbar spinbutton:backdrop:insensitive:not(.vertical),
headerbar entry:backdrop:insensitive {
    color: @titleentry_fg_dis;
    border-color: @titleentry_border_dis;
    background-color: @insensitive_bg_color;
}
spinbutton.error:not(.vertical),
entry.error,
.entry.error {
    background-image: linear-gradient(to bottom, @entry_bg_err_a, @entry_bg_err_b 40%, @entry_bg_err_c);
    border-color: @entry_border_err;
    color: @entry_fg_err;
    text-shadow: none;
}
spinbutton.error:not(.vertical) image,
entry.error image,
.entry.error .image {
    color: @entry_fg_err;
}
spinbutton.error:focus:not(.vertical),
entry.error:focus,
.entry.error:focus {
    box-shadow: inset 0 0 0 1px @error_border_color;
    border-color: alpha(@error_border_color, 0.1);
}
spinbutton.error:not(.vertical) selection,
entry.error selection,
.entry.error:selected,
.entry.error:selected:focus {
    background-color: @error_background_color;
}
spinbutton.warning:not(.vertical),
entry.warning,
.entry.warning {
    color: @warning_text_color;
    border-color: alpha(@warning_border_color, 0.2);
}
spinbutton.warning:focus:not(.vertical),
entry.warning:focus,
.entry.warning:focus {
    box-shadow: inset 0 0 0 1px @warning_border_color;
    border-color: alpha(@warning_border_color, 0.2);
}
spinbutton.warning:not(.vertical) selection,
entry.warning selection,
.entry.warning:selected,
.entry.warning:selected:focus {
    background-color: @warning_background_color;
}
spinbutton:not(.vertical) image,
entry image,
.entry.image {
    color: @theme_fg_color;
}
spinbutton:not(.vertical) image:hover,
entry image:hover,
.entry.image:hover {
    color: @theme_fg_color;
}
spinbutton:not(.vertical) image:active,
entry image:active,
.entry.image:active {
    color: @theme_fg_color;
}
spinbutton:not(.vertical) image:backdrop,
entry image:backdrop,
.entry.image:backdrop {
    color: @theme_fg_color_dis;
}
.osd spinbutton:not(.vertical),
.osd entry,
.osd .entry {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
}
.osd spinbutton:focus:not(.vertical),
.osd entry:focus,
.osd .entry:focus {
    color: @theme_fg_color;
    border-color: @entry_border_act;
    background-color: rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px @entry_border_act;
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
}
.osd spinbutton:backdrop:not(.vertical),
.osd entry:backdrop,
.osd .entry:backdrop {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
.osd spinbutton:insensitive:not(.vertical),
.osd entry:insensitive,
.osd .entry:insensitive {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
.entry.progressbar,
spinbutton:not(.vertical) progress,
entry progress {
    margin: 2px -6px;
    background-color: transparent;
    background-image: none;
    border-radius: 0;
    border-width: 0 0 2px;
    border-color: @theme_accent_color;
    border-style: solid;
    box-shadow: none;
}
.entry.progressbar:backdrop,
spinbutton:not(.vertical) progress:backdrop,
entry progress:backdrop {
    background-color: transparent;
}
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + spinbutton:not(.vertical),
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + button,
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + combobox > box > button.combo,
.linked:not(.vertical) > entry:focus + spinbutton:not(.vertical),
.linked:not(.vertical) > entry:focus + button,
.linked:not(.vertical) > entry:focus + combobox > box > button.combo,
.linked:not(.vertical) > spinbutton:focus:not(.vertical) + entry,
.linked:not(.vertical) > entry:focus + entry {
    border-left-color: @entry_border_act;
}
.linked.vertical > spinbutton:not(:insensitive):not(.vertical) + entry:not(:insensitive),
.linked.vertical > spinbutton:not(:insensitive):not(.vertical) + spinbutton:not(:insensitive):not(.vertical),
.linked.vertical > entry:not(:insensitive) + entry:not(:insensitive),
.linked.vertical > entry:not(:insensitive) + spinbutton:not(:insensitive):not(.vertical) {
    border-top-color: @entry_border_dis;
}
.linked.vertical > spinbutton:not(:insensitive):not(.vertical) + entry:not(:insensitive):backdrop,
.linked.vertical > spinbutton:not(:insensitive):not(.vertical) + spinbutton:not(:insensitive):backdrop:not(.vertical),
.linked.vertical > entry:not(:insensitive) + entry:not(:insensitive):backdrop,
.linked.vertical > entry:not(:insensitive) + spinbutton:not(:insensitive):backdrop:not(.vertical) {
    border-top-color: @entry_border_dis;
}
.linked.vertical > spinbutton:insensitive:not(.vertical) + spinbutton:insensitive:not(.vertical),
.linked.vertical > spinbutton:insensitive:not(.vertical) + entry:insensitive,
.linked.vertical > entry:insensitive + spinbutton:insensitive:not(.vertical),
.linked.vertical > entry:insensitive + entry:insensitive {
    border-top-color: @entry_border_dis;
}
.linked.vertical > spinbutton:not(.vertical) + spinbutton:focus:not(:only-child):not(.vertical),
.linked.vertical > spinbutton:not(.vertical) + entry:focus:not(:only-child),
.linked.vertical > entry + spinbutton:focus:not(:only-child):not(.vertical),
.linked.vertical > entry + entry:focus:not(:only-child) {
    border-top-color: @entry_border_act03361;
}
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + spinbutton:not(.vertical),
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + entry,
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + button,
.linked.vertical > spinbutton:focus:not(:only-child):not(.vertical) + combobox > box > button.combo,
.linked.vertical > entry:focus:not(:only-child) + spinbutton:not(.vertical),
.linked.vertical > entry:focus:not(:only-child) + entry,
.linked.vertical > entry:focus:not(:only-child) + button,
.linked.vertical > entry:focus:not(:only-child) + combobox > box > button.combo {
    border-top-color: @entry_border_act;
}

treeview entry:focus:dir(rtl),
treeview entry:focus:dir(ltr) {
    background-color: @view_bg;
    transition-property: color, background;
}
treeview entry.flat,
treeview entry {
    border-radius: 0;
    background-image: none;
    background-color: @view_bg;
}
treeview entry.flat:focus,
treeview entry:focus {
    border-color: @entry_border_act;
}

/***************************************************************************************************
 * Buttons
 **************************************************************************************************/
@keyframes needs_attention {
    from {
        background-image: -gtk-gradient(
            radial, center center, 0, center center, 0.01, to(#3583d5), to(transparent)
        );
    }
    to {
        background-image: -gtk-gradient(
            radial, center center, 0, center center, 0.5, to(@theme_accent_color), to(transparent));
    } 
}
notebook > header > tabs > arrow,
button.titlebutton,
button,
.button {
    padding: 4px 6px;
    border: 1px solid @button_border;
    border-radius: 4px;
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: @button_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    background-image: linear-gradient(to bottom, @button_bg_a, @button_bg_b 40%, @button_bg_c);
    text-shadow: 0 -1px alpha(@button_fg_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@button_fg_shadow, 0.8);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
headerbar button,
.header-bar .button,
.titlebar .button {
    padding: 6px 8px;
    border: 1px solid @titlebutton_border;
    border-radius: 4px;
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: @titlebutton_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    background-image: linear-gradient(to bottom, @titlebutton_bg_a, @titlebutton_bg_b 40%, @titlebutton_bg_c);
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
headerbar button label {
    color: @titlebutton_fg_color;
}
notebook > header > tabs > arrow,
button.sidebar-button,
button.titlebutton,
button.flat,
.button.flat {
    border-color: transparent;
    background-color: transparent;
    border-radius: 4px;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    transition: none; 
}
headerbar button.flat,
.header-bar .titlebutton.button.flat,
.titlebar .titlebutton.button.flat {
    border-color: transparent;
    background-color: transparent;
    border-radius: 4px;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    transition: none; 
    color: @header_fg_color;
}
headerbar button.flat:backdrop,
.header-bar .titlebutton.button.flat:backdrop,
.titlebar .titlebutton.button.flat:backdrop {
    border-color: transparent;
    background-color: transparent;
    border-radius: 4px;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    transition: none; 
    color: @header_fg_color;
}
headerbar button.flat label {
    color: @header_fg_color;
}
notebook > header > tabs > arrow:hover,
button.sidebar-button:hover,
button.titlebutton:hover,
button.flat:hover {
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-duration: 500ms; 
}
button.flat:hover,
.button.flat:hover {
    border-color: transparent;
    color: @theme_fg_color;
    background-color: @theme_bg_color_hov;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
headerbar button.flat:hover,
.header-bar .button.flat:hover,
.titlebar .button.flat:hover,
.header-bar .titlebutton.button:hover,
.titlebar .titlebutton.button:hover {
    border-color: transparent;
    background-color: @titlebutton_flat_bg;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @header_fg_color;
}

notebook > header > tabs > arrow:hover:active,
button.sidebar-button:hover:active,
button.titlebutton:hover:active,
button.flat:hover:active,
.button.flat:hover:active,
.header-bar .titlebutton.button:hover:active,
.titlebar .titlebutton.button:hover:active {
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
notebook > header > tabs > arrow:hover,
button:hover,
.button:hover {

    color: @button_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @button_bg_a_hov, @button_bg_b_hov 40%, @button_bg_c_hov);
}

button.titlebutton:hover,
.button.titlebutton:hover {
    border-color: transparent;
    background-color: @titlebutton_flat_bg;
    box-shadow: none;
}

notebook > header > tabs > arrow:active,
notebook > header > tabs > arrow:checked,
button:active,
button:checked,
.button:active,
.button:checked {
    color: @button_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    background-image: linear-gradient(to bottom, @button_bg_a_act, @button_bg_b_act 40%, @button_bg_c_act);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    text-shadow: none;
    icon-shadow: none;
    transition-duration: 50ms; 
}
headerbar button:hover,
button.titlebutton:hover,
.header-bar .button:hover,
.titlebar .button:hover {
    color: @titlebutton_fg_color;
    border-color: @titlebutton_border;
    background-image: linear-gradient(to bottom, @titlebutton_bg_a_hov, @titlebutton_bg_b_hov 40%, @titlebutton_bg_c_hov);
}
headerbar button:active,
headerbar button:checked,
button.titlebutton:active,
button.titlebutton:checked,
.header-bar .button:active,
.titlebar .button:active,
.header-bar .button:checked,
.titlebar .button:checked {
    color: @titlebutton_fg_color;
    border-color: @titlebutton_border;
    background-image: linear-gradient(to bottom, @titlebutton_bg_a_act, @titlebutton_bg_b_act 40%, @titlebutton_bg_c_act);
}
headerbar button:backdrop,
.header-bar .button.titlebutton:backdrop,
.titlebar .button.titlebutton:backdrop {
    border: 1px solid @titlebutton_border;
    border-radius: 4px;
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    color: @titlebutton_fg_dis;
    outline-color: rgba(238, 238, 236, 0.3);
    background-image: linear-gradient(to bottom, @titlebutton_bg_a, @titlebutton_bg_b 40%, @titlebutton_bg_c);
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    -gtk-icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}

headerbar button:backdrop label,
.header-bar .button.titlebutton:backdrop label,
.titlebar .button.titlebutton:backdrop label {
    color: @titlebutton_fg_dis;
}

notebook > header > tabs > arrow:backdrop label,
button.sidebar-button:backdrop label,
button.titlebutton:backdrop label,
notebook > header > tabs > arrow:backdrop,
button.sidebar-button:backdrop,
button.titlebutton:backdrop,
notebook > header > tabs > arrow:backdrop label,
button.titlebutton:backdrop label,
notebook > header > tabs > arrow:backdrop,
button.titlebutton:backdrop,
button:backdrop.flat label,
button:backdrop.flat,
button:backdrop label,
button:backdrop {
    color: @theme_fg_color_dis;
    box-shadow: 0 1px 1px alpha(white, 0.0);
}/*
notebook > header > tabs > arrow:backdrop:active,
button.sidebar-button:backdrop:active,
notebook > header > tabs > arrow:backdrop:checked,
button.sidebar-button:backdrop:checked,
notebook > header > tabs > arrow:backdrop:active,
notebook > header > tabs > arrow:backdrop:checked,
button:backdrop.flat:active,
button:backdrop.flat:checked,
button:backdrop:active,
button:backdrop:checked,
.button:backdrop:active,
.button:backdrop:checked,
.button.flat:backdrop:active,
.header-bar .titlebutton.button:backdrop:active,
.titlebar .titlebutton.button:backdrop:active,
.button.flat:backdrop:checked {
    border-color: @unfocused_borders;
    background-color: @button_bg_dis_a;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    color: @theme_fg_color_dis;
}*/

notebook > header > tabs > arrow:backdrop:active label,
button.sidebar-button:backdrop:active label,
button.titlebutton:backdrop:active label,
notebook > header > tabs > arrow:backdrop:active,
button.sidebar-button:backdrop:active,
button.titlebutton:backdrop:active,
notebook > header > tabs > arrow:backdrop:checked label,
button.sidebar-button:backdrop:checked label,
button.titlebutton:backdrop:checked label,
notebook > header > tabs > arrow:backdrop:checked,
button.sidebar-button:backdrop:checked,
button.titlebutton:backdrop:checked,
notebook > header > tabs > arrow:backdrop:active label,
button.titlebutton:backdrop:active label,
notebook > header > tabs > arrow:backdrop:active,
button.titlebutton:backdrop:active,
notebook > header > tabs > arrow:backdrop:checked label,
button.titlebutton:backdrop:checked label,
notebook > header > tabs > arrow:backdrop:checked,
button.titlebutton:backdrop:checked,
button:backdrop.flat:active label,
button:backdrop.flat:active,
button:backdrop.flat:checked label,
button:backdrop.flat:checked,
button:backdrop:active label,
button:backdrop:active,
button:backdrop:checked label,
button:backdrop:checked {
    color: @theme_fg_color_dis;
}
notebook > header > tabs > arrow:backdrop:insensitive,
button.sidebar-button:backdrop:insensitive,
button.titlebutton:backdrop:insensitive,
notebook > header > tabs > arrow:backdrop:insensitive,
button.titlebutton:backdrop:insensitive,
button:backdrop.flat:insensitive,
button:backdrop:insensitive,
.button:backdrop:insensitive,
.button.flat:backdrop:insensitive {
    background-color: transparent;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.0);
    color: @button_fg_dis;
}
headerbar button:backdrop:insensitive,
.header-bar .titlebutton.button:backdrop:insensitive,
.titlebar .titlebutton.button:backdrop:insensitive {
    border-color: @titlebutton_border;
    background-color: @insensitive_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    color: @titlebutton_fg_dis;
}
notebook > header > tabs > arrow:backdrop:insensitive label,
button.sidebar-button:backdrop:insensitive label,
button.titlebutton:backdrop:insensitive label,
notebook > header > tabs > arrow:backdrop:insensitive,
button.sidebar-button:backdrop:insensitive,
button.titlebutton:backdrop:insensitive,
notebook > header > tabs > arrow:backdrop:insensitive label,
button.titlebutton:backdrop:insensitive label,
notebook > header > tabs > arrow:backdrop:insensitive,
button.titlebutton:backdrop:insensitive,
button:backdrop.flat:insensitive label,
button:backdrop.flat:insensitive,
button:backdrop:insensitive label,
button:backdrop:insensitive,
.button:backdrop:insensitive > .label,
.header-bar .button.titlebutton:backdrop:insensitive > .label,
.titlebar .button.titlebutton:backdrop:insensitive > .label,
.button.flat:backdrop:insensitive > .label,
.header-bar .titlebutton.button:backdrop:insensitive > .label,
.titlebar .titlebutton.button:backdrop:insensitive > .label {
    color: @button_fg_dis;
}/*
notebook > header > tabs > arrow:backdrop:insensitive:active,
button.sidebar-button:backdrop:insensitive:active,
button.titlebutton:backdrop:insensitive:active,
notebook > header > tabs > arrow:backdrop:insensitive:checked,
button.sidebar-button:backdrop:insensitive:checked,
button.titlebutton:backdrop:insensitive:checked,
notebook > header > tabs > arrow:backdrop:insensitive:active,
button.titlebutton:backdrop:insensitive:active,
notebook > header > tabs > arrow:backdrop:insensitive:checked,
button.titlebutton:backdrop:insensitive:checked,
button:backdrop.flat:insensitive:active,
button:backdrop.flat:insensitive:checked,
button:backdrop:insensitive:active,
button:backdrop:insensitive:checked,
.button:backdrop:insensitive:active,
.button:backdrop:insensitive:checked,
.button.flat:backdrop:insensitive:active,
.header-bar .titlebutton.button:backdrop:insensitive:active,
.titlebar .titlebutton.button:backdrop:insensitive:active,
.button.flat:backdrop:insensitive:checked,
.header-bar .titlebutton.button:backdrop:insensitive:checked,
.titlebar .titlebutton.button:backdrop:insensitive:checked {
    border-color: @unfocused_borders;
    background-color: @button_bg_b;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    color: @button_fg_dis;
}*/
notebook > header > tabs > arrow:backdrop:insensitive:active label,
button.sidebar-button:backdrop:insensitive:active label,
button.titlebutton:backdrop:insensitive:active label,
notebook > header > tabs > arrow:backdrop:insensitive:checked label,
button.sidebar-button:backdrop:insensitive:checked label,
button.titlebutton:backdrop:insensitive:checked label,
notebook > header > tabs > arrow:backdrop:insensitive:active label,
button.titlebutton:backdrop:insensitive:active label,
notebook > header > tabs > arrow:backdrop:insensitive:checked label,
button.titlebutton:backdrop:insensitive:checked label,
button:backdrop.flat:insensitive:active label,
button:backdrop.flat:insensitive:checked label,
button:backdrop:insensitive:active label,
button:backdrop:insensitive:checked label,
.button:backdrop:insensitive:active > .label,
.header-bar .button.titlebutton:backdrop:insensitive:active > .label,
.titlebar .button.titlebutton:backdrop:insensitive:active > .label,
.button:backdrop:insensitive:checked > .label,
.header-bar .button.titlebutton:backdrop:insensitive:checked > .label,
.titlebar .button.titlebutton:backdrop:insensitive:checked > .label,
.button.flat:backdrop:insensitive:active > .label,
.header-bar .titlebutton.button:backdrop:insensitive:active > .label,
.titlebar .titlebutton.button:backdrop:insensitive:active > .label,
.button.flat:backdrop:insensitive:checked > .label,
.header-bar .titlebutton.button:backdrop:insensitive:checked > .label,
.titlebar .titlebutton.button:backdrop:insensitive:checked > .label {
    color: @button_fg_dis;
}
/*notebook > header > tabs > arrow:backdrop,
button.sidebar-button:backdrop,
button.titlebutton:backdrop,
notebook > header > tabs > arrow:insensitive,
button.sidebar-button:insensitive,
button.titlebutton:insensitive,
notebook > header > tabs > arrow:backdrop:insensitive,
button.sidebar-button:backdrop:insensitive,
button.titlebutton:backdrop:insensitive,
button.flat:backdrop,
button.flat:insensitive,
button.flat:backdrop:insensitive,
.button.flat:backdrop,
.header-bar .titlebutton.button:backdrop,
.titlebar .titlebutton.button:backdrop,
.button.flat:insensitive,
.header-bar .titlebutton.button:insensitive,
.titlebar .titlebutton.button:insensitive,
.button.flat:backdrop:insensitive,
.header-bar .titlebutton.button:backdrop:insensitive,
.titlebar .titlebutton.button:backdrop:insensitive {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}*/
*:disabled {
  -gtk-icon-effect: dim;
}
notebook > header > tabs > arrow:insensitive {
    border-color: @button_border;
    background-color: @insensitive_bg_color;
    color: @button_fg_dis;
}
headerbar button:insensitive,
.header-bar .button.titlebutton:insensitive,
.titlebar .button.titlebutton:insensitive {
    border-color: @titlebutton_border;
    background-color: @insensitive_bg_color;
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    color: @titlebutton_fg_dis;
    outline-color: rgba(238, 238, 236, 0.3);
}
notebook > header > tabs > arrow:insensitive label,
button.titlebutton:insensitive label,
notebook > header > tabs > arrow:insensitive,
button.titlebutton:insensitive,
button:insensitive label,
button:insensitive,
.button:insensitive > .label,
.header-bar .button.titlebutton:insensitive > .label,
.titlebar .button.titlebutton:insensitive > .label {
    color: @theme_fg_color_dis;
}
notebook > header > tabs > arrow:insensitive:active,
button.titlebutton:insensitive:active,
notebook > header > tabs > arrow:insensitive:checked,
button.titlebutton:insensitive:checked,
button:insensitive:active,
button:insensitive:checked,
.button:insensitive:active,
.button:insensitive:checked {
    border-color: @button_border;
    background-image: linear-gradient(to bottom, @button_bg_dis_a, @button_bg_dis_b);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @theme_fg_color_dis;
}
notebook > header > tabs > arrow:insensitive:active label,
button.titlebutton:insensitive:active label,
notebook > header > tabs > arrow:insensitive:active,
button.titlebutton:insensitive:active,
notebook > header > tabs > arrow:insensitive:checked label,
button.titlebutton:insensitive:checked label,
notebook > header > tabs > arrow:insensitive:checked,
button.titlebutton:insensitive:checked,
button:insensitive:active label,
button:insensitive:active,
button:insensitive:checked label,
button:insensitive:checked,
.button:insensitive:active > .label,
.header-bar .button.titlebutton:insensitive:active > .label,
.titlebar .button.titlebutton:insensitive:active > .label,
.button:insensitive:checked > .label,
.header-bar .button.titlebutton:insensitive:checked > .label,
.titlebar .button.titlebutton:insensitive:checked > .label {
    color: @theme_fg_color_dis;
}
notebook > header > tabs > arrow.image-button,
button.image-button.titlebutton,
button.image-button {
    padding-left: 4px;
    padding-right: 4px;
}
notebook > header > tabs > arrow.text-button,
button.text-button.titlebutton,
button.text-button {
    padding-left: 16px;
    padding-right: 16px; }
notebook > header > tabs > arrow.text-button.image-button,
button.text-button.image-button.titlebutton,
button.text-button.image-button {
    padding-left: 8px;
    padding-right: 8px;
}
notebook > header > tabs > arrow.text-button.image-button label,
button.text-button.image-button.titlebutton label,
button.text-button.image-button label {
    padding-left: 8px;
    padding-right: 8px;
}
row:selected button.sidebar-button:not(:active):not(:checked):not(:hover):not(disabled),
row:selected button.flat:not(:active):not(:checked):not(:hover):not(disabled) {
    color: @theme_fg_color;
    border-color: transparent;
}
row:selected button.sidebar-button:not(:active):not(:checked):not(:hover):not(disabled):backdrop,
row:selected button.flat:not(:active):not(:checked):not(:hover):not(disabled):backdrop {
    color: @theme_fg_color_dis;
}
button.osd,
.button.osd,
.header-bar .osd.button.titlebutton,
.titlebar .osd.button.titlebutton {
    color: @button_fg_osd;
    border-radius: 4px;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
    border: none;
    box-shadow: none; 
}

button.osd:hover,
.button.osd:hover {
    color: @button_fg_osd;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(57, 63, 65, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
    border: none;
    box-shadow: none; 
}
button.osd:active,
button.osd:checked,
.button.osd:active,
.button.osd:checked {
    color: @button_fg_osd;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3);
    border: none;
    box-shadow: none; 
}
button.osd:insensitive:backdrop,
button.osd:insensitive,
.button.osd:insensitive,
.button.osd:backdrop:insensitive {
    color: @button_fg_osd_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    border: none; 
}
button.osd:backdrop,
.button.osd:backdrop {
    color: @button_fg_osd_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    border: none; 
}
.csd popover.background.touch-selection button,
.csd popover.background.magnifier button,
popover.background.touch-selection button,
popover.background.magnifier button,
.app-notification button,
.app-notification.frame button,
.header-bar .osd .button.titlebutton,
.titlebar .osd .button.titlebutton {
    color: @button_fg_osd;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}

.osd button,
.osd .button,
.osd button:backdrop,
.osd .button:backdrop,
.osd .header-bar .button.titlebutton,
.osd .titlebar .button.titlebutton,
.osd .button:backdrop:active,
.osd .button:backdrop:checked {
    color: @button_fg_osd;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}

.osd button:hover,
.osd .button:hover,
.osd button:active:backdrop,
.osd button:active,
.osd button:checked:backdrop,
.osd button:checked,
.osd .button:active,
.osd .button:checked {
    color: @button_fg_osd;
    background-color: rgba(38, 51, 52, 0.7);
}

.osd button:insensitive:backdrop,
.osd button:insensitive,
.osd .button:insensitive,
.osd .button:backdrop:insensitive {
    color: @button_fg_osd_dis;
}

.osd slider,
.osd .slider {
    border-radius: 50%;
}

.osd label,
.osd .label,
.app-notification label,
.app-notification.frame label,
.app-notification .label,
.app-notification.frame .label {
    color: @button_fg_osd;
}
.osd .button:dir(rtl) {
    border-radius: 0;
    border-right-style: none;
    border-left-style: solid;
}
.osd .button:first-child {
    border-radius: 4px 0 0 4px;
    border-left-style: solid;
}
.osd .button:last-child {
    border-radius: 0 3px 3px 0;
}
.osd .button:last-child:dir(rtl) {
    border-right-style: solid;
}
.osd .button:only-child {
    border-radius: 4px;
}

popover.background.touch-selection button:hover,
popover.background.magnifier button:hover,
.app-notification button:hover {
    color: @button_fg_osd;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(57, 63, 65, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}
popover.background.touch-selection button:active:backdrop,
popover.background.magnifier button:active:backdrop,
.app-notification button:active:backdrop,
popover.background.touch-selection button:active,
popover.background.magnifier button:active,
.app-notification button:active,
popover.background.touch-selection button:checked:backdrop,
popover.background.magnifier button:checked:backdrop,
.app-notification button:checked:backdrop,
popover.background.touch-selection button:checked,
popover.background.magnifier button:checked,
.app-notification button:checked {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3); 
}
popover.background.touch-selection button:insensitive:backdrop,
popover.background.magnifier button:insensitive:backdrop,
.app-notification button:insensitive:backdrop,
popover.background.touch-selection button:insensitive,
popover.background.magnifier button:insensitive,
.app-notification button:insensitive {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
popover.background.touch-selection button:backdrop,
popover.background.magnifier button:backdrop,
.app-notification button:backdrop {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
popover.background.touch-selection button.flat,
popover.background.magnifier button.flat,
.app-notification button.flat,
.osd button.flat,
.osd .button.flat,
.osd .header-bar .titlebutton.button,
.header-bar .osd .titlebutton.button,
.osd .titlebar .titlebutton.button,
.titlebar .osd .titlebutton.button {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    box-shadow: none;
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
}
popover.background.touch-selection button.flat:hover,
popover.background.magnifier button.flat:hover,
.app-notification button.flat:hover,
.osd button.flat:hover,
.osd .button.flat:hover,
.osd .header-bar .titlebutton.button:hover,
.header-bar .osd .titlebutton.button:hover,
.osd .titlebar .titlebutton.button:hover,
.titlebar .osd .titlebutton.button:hover {
    color: @button_fg_osd;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(57, 63, 65, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.0);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}
popover.background.touch-selection button.flat:insensitive,
popover.background.magnifier button.flat:insensitive,
.app-notification button.flat:insensitive,
.osd button.flat:insensitive,
.osd .button.flat:insensitive,
.osd .header-bar .titlebutton.button:insensitive,
.header-bar .osd .titlebutton.button:insensitive,
.osd .titlebar .titlebutton.button:insensitive,
.titlebar .osd .titlebutton.button:insensitive {
    color: @theme_fg_color_dis;
    background-color: transparent;
    background-clip: padding-box;
    text-shadow: none;
    icon-shadow: none;
    background-image: none;
    border-color: transparent;
    box-shadow: none;
}
popover.background.touch-selection button.flat:backdrop,
popover.background.magnifier button.flat:backdrop,
.app-notification button.flat:backdrop,
.osd button.flat:backdrop,
.osd .button.flat:backdrop,
.osd .header-bar .titlebutton.button:backdrop,
.header-bar .osd .titlebutton.button:backdrop,
.osd .titlebar .titlebutton.button:backdrop,
.titlebar .osd .titlebutton.button:backdrop {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none; 
}
popover.background.touch-selection button.flat:active,
popover.background.magnifier button.flat:active,
.app-notification button.flat:active,
popover.background.touch-selection button.flat:checked,
popover.background.magnifier button.flat:checked,
.app-notification button.flat:checked,
.osd button.flat:active,
.osd button.flat:checked,
.osd .button.flat:active,
.osd .header-bar .titlebutton.button:active,
.header-bar .osd .titlebutton.button:active,
.osd .titlebar .titlebutton.button:active,
.titlebar .osd .titlebutton.button:active,
.osd .button.flat:checked,
.osd .header-bar .titlebutton.button:checked,
.header-bar .osd .titlebutton.button:checked,
.osd .titlebar .titlebutton.button:checked,
.titlebar .osd .titlebutton.button:checked {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3);
}
.selection-mode button.titlebutton label,
button.suggested-action label,
button.suggested-action.flat label,
.selection-mode button.titlebutton:backdrop label,
button.suggested-action:backdrop label,
button.suggested-action.flat:backdrop label {
    color: @button_fg_sugg_color;
}
.selection-mode button.titlebutton,
button.suggested-action,
button.suggested-action.flat,
.button.suggested-action,
.button.suggested-action.flat,
.header-bar .suggested-action.titlebutton.button,
.titlebar .suggested-action.titlebutton.button {
    color: @button_fg_sugg_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_sugg;
    background-image: linear-gradient(to bottom, @button_bg_sugg_a, @button_bg_sugg_b 40%, @button_bg_sugg_c);
    text-shadow: none;
}
.selection-mode button.titlebutton,
button.suggested-action.flat,
.button.suggested-action.flat,
.header-bar .suggested-action.titlebutton.button,
.titlebar .suggested-action.titlebutton.button {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    /*box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;*/
}
button.suggested-action:hover,
.button.suggested-action:hover {
    color: @button_fg_sugg_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_sugg;
    text-shadow: none;
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.65553);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @button_bg_sugg_a_hov, @button_bg_sugg_b_hov 40%, @button_bg_sugg_c_hov);
}
button.suggested-action:active,
button.suggested-action:checked,
.button.suggested-action:active,
.button.suggested-action:checked {
    color: @button_fg_sugg_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_sugg;
    background-image: linear-gradient(to bottom, @button_bg_sugg_a_act, @button_bg_sugg_b_act 40%, @button_bg_sugg_c_act);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}
.selection-mode button.titlebutton:backdrop,
button.suggested-action:backdrop,
button.suggested-action.flat:backdrop,
.button.suggested-action:backdrop,
.button.suggested-action.flat:backdrop,
.header-bar .suggested-action.titlebutton.button:backdrop,
.titlebar .suggested-action.titlebutton.button:backdrop {
    border-color: @button_border_sugg;
    color: @button_fg_sugg_color;
}

.selection-mode button.titlebutton:backdrop:active,
.selection-mode button.titlebutton:backdrop:checked,
button.suggested-action:backdrop:active,
button.suggested-action:backdrop:checked,
button.suggested-action.flat:backdrop:active,
button.suggested-action.flat:backdrop:checked,
.button.suggested-action:backdrop:active,
.button.suggested-action:backdrop:checked,
.button.suggested-action.flat:backdrop:active,
.header-bar .suggested-action.titlebutton.button:backdrop:active,
.titlebar .suggested-action.titlebutton.button:backdrop:active,
.button.suggested-action.flat:backdrop:checked,
.header-bar .suggested-action.titlebutton.button:backdrop:checked,
.titlebar .suggested-action.titlebutton.button:backdrop:checked {
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.selection-mode button.titlebutton:backdrop:active label,
.selection-mode button.titlebutton:backdrop:active,
.selection-mode button.titlebutton:backdrop:checked label,
.selection-mode button.titlebutton:backdrop:checked,
button.suggested-action:backdrop:active label,
button.suggested-action:backdrop:active,
button.suggested-action:backdrop:checked label,
button.suggested-action:backdrop:checked,
button.suggested-action.flat:backdrop:active label,
button.suggested-action.flat:backdrop:active,
button.suggested-action.flat:backdrop:checked label,
button.suggested-action.flat:backdrop:checked {
    color: @button_fg_sugg_color;
}
.selection-mode button.titlebutton:backdrop:insensitive,
button.suggested-action:backdrop:insensitive,
button.suggested-action.flat:backdrop:insensitive,
.button.suggested-action:backdrop:insensitive,
.button.suggested-action.flat:backdrop:insensitive,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive {
    border-color: @unfocused_borders;
    background-color: @button_bg_sugg_flt;
    /*text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);*/
}
.selection-mode button.titlebutton:backdrop:insensitive label,
.selection-mode button.titlebutton:backdrop:insensitive,
button.suggested-action:backdrop:insensitive label,
button.suggested-action:backdrop:insensitive,
button.suggested-action.flat:backdrop:insensitive label,
button.suggested-action.flat:backdrop:insensitive,
.button.suggested-action:backdrop:insensitive > .label,
.header-bar .suggested-action.button.titlebutton:backdrop:insensitive > .label,
.titlebar .suggested-action.button.titlebutton:backdrop:insensitive > .label,
.button.suggested-action.flat:backdrop:insensitive > .label,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive > .label,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive > .label {
    color: @button_fg_dis;
}
.selection-mode button.titlebutton:backdrop:insensitive:active,
.selection-mode button.titlebutton:backdrop:insensitive:checked,
button.suggested-action:backdrop:insensitive:active,
button.suggested-action:backdrop:insensitive:checked,
button.suggested-action.flat:backdrop:insensitive:active,
button.suggested-action.flat:backdrop:insensitive:checked,
.button.suggested-action:backdrop:insensitive:active,
.button.suggested-action:backdrop:insensitive:checked,
.button.suggested-action.flat:backdrop:insensitive:active,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive:active,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive:active,
.button.suggested-action.flat:backdrop:insensitive:checked,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive:checked,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive:checked {
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @theme_accent_color;
}
.selection-mode button.titlebutton:backdrop:insensitive:active label,
.selection-mode button.titlebutton:backdrop:insensitive:checked label,
button.suggested-action:backdrop:insensitive:active label,
button.suggested-action:backdrop:insensitive:checked label,
button.suggested-action.flat:backdrop:insensitive:active label,
button.suggested-action.flat:backdrop:insensitive:checked label,
.button.suggested-action:backdrop:insensitive:active > .label,
.header-bar .suggested-action.button.titlebutton:backdrop:insensitive:active > .label,
.titlebar .suggested-action.button.titlebutton:backdrop:insensitive:active > .label,
.button.suggested-action:backdrop:insensitive:checked > .label,
.header-bar .suggested-action.button.titlebutton:backdrop:insensitive:checked > .label,
.titlebar .suggested-action.button.titlebutton:backdrop:insensitive:checked > .label,
.button.suggested-action.flat:backdrop:insensitive:active > .label,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive:active > .label,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive:active > .label,
.button.suggested-action.flat:backdrop:insensitive:checked > .label,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive:checked > .label,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive:checked > .label {
    color: @theme_accent_color;
}
.selection-mode button.titlebutton:backdrop,
.selection-mode button.titlebutton:insensitive,
.selection-mode button.titlebutton:backdrop:insensitive,
button.suggested-action.flat:backdrop,
button.suggested-action.flat:insensitive,
button.suggested-action.flat:backdrop:insensitive,
.button.suggested-action.flat:backdrop,
.header-bar .suggested-action.titlebutton.button:backdrop,
.titlebar .suggested-action.titlebutton.button:backdrop,
.button.suggested-action.flat:insensitive,
.header-bar .suggested-action.titlebutton.button:insensitive,
.titlebar .suggested-action.titlebutton.button:insensitive,
.button.suggested-action.flat:backdrop:insensitive,
.header-bar .suggested-action.titlebutton.button:backdrop:insensitive,
.titlebar .suggested-action.titlebutton.button:backdrop:insensitive {
    border-color: transparent;
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: alpha(@theme_accent_color, 0.8);
}
button.suggested-action:insensitive,
.button.suggested-action:insensitive {
    border-color: @button_border;
    background-color: @insensitive_bg_color;
    /*text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 1);*/
    color: @theme_fg_color_dis;
}
button.suggested-action:insensitive label,
button.suggested-action:insensitive,
.button.suggested-action:insensitive > .label,
.header-bar .suggested-action.button.titlebutton:insensitive > .label,
.titlebar .suggested-action.button.titlebutton:insensitive > .label {
    color: @theme_fg_color_dis;
}
button.suggested-action:insensitive:active,
button.suggested-action:insensitive:checked,
.button.suggested-action:insensitive:active,
.button.suggested-action:insensitive:checked {
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @theme_fg_color;
}
button.suggested-action:insensitive:active label,
button.suggested-action:insensitive:active,
button.suggested-action:insensitive:checked label,
button.suggested-action:insensitive:checked,
.button.suggested-action:insensitive:active > .label,
.header-bar .suggested-action.button.titlebutton:insensitive:active > .label,
.titlebar .suggested-action.button.titlebutton:insensitive:active > .label,
.button.suggested-action:insensitive:checked > .label,
.header-bar .suggested-action.button.titlebutton:insensitive:checked > .label,
.titlebar .suggested-action.button.titlebutton:insensitive:checked > .label {
    color: @theme_fg_color;
}
.osd button.suggested-action,
.osd .button.suggested-action {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: alpha(@theme_accent_color, 0.5);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3); 
}
.osd button.suggested-action:hover,
.osd .button.suggested-action:hover {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: alpha(@theme_accent_color, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}
.osd button.suggested-action:active:backdrop,
.osd button.suggested-action:active,
.osd button.suggested-action:checked:backdrop,
.osd button.suggested-action:checked,
.osd .button.suggested-action:active,
.osd .button.suggested-action:checked,
.osd .button.suggested-action:backdrop:active,
.osd .button.suggested-action:backdrop:checked {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: @button_bg_sugg_flt;
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3); 
}
.osd button.suggested-action:insensitive:backdrop,
.osd button.suggested-action:insensitive,
.osd .button.suggested-action:insensitive,
.osd .button.suggested-action:backdrop:insensitive {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
.osd button.suggested-action:backdrop,
.osd .button.suggested-action:backdrop {
    color: @button_fg_sugg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: alpha(@theme_accent_color, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
button.destructive-action,
.button.destructive-action,
.header-bar .destructive-action.button.titlebutton,
.titlebar .destructive-action.button.titlebutton {
    color: @button_fg_dest_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_dest;
    background-image: linear-gradient(to bottom, @button_bg_dest_a, @button_bg_dest_b 60%, @button_bg_dest_c);
    text-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
button.destructive-action.flat,
.button.destructive-action.flat,
.header-bar .destructive-action.titlebutton.button,
.titlebar .destructive-action.titlebutton.button {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @button_fg_dest_color;
}
button.destructive-action:hover,
.button.destructive-action:hover {
    color: @button_fg_dest_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_dest;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @button_bg_dest_a_hov, @button_bg_dest_b_hov 60%, @button_bg_dest_c_hov);
}
button.destructive-action:active,
button.destructive-action:checked,
.button.destructive-action:active,
.button.destructive-action:checked {
    color: @button_fg_dest_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_dest;
    background-image: linear-gradient(to bottom, @button_bg_dest_a_act, @button_bg_dest_b_act 60%, @button_bg_dest_c_act);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    text-shadow: none;
    icon-shadow: none;
}
button.destructive-action:backdrop,
button.destructive-action.flat:backdrop,
.button.destructive-action:backdrop,
.button.destructive-action.flat:backdrop,
.header-bar .destructive-action.titlebutton.button:backdrop,
.titlebar .destructive-action.titlebutton.button:backdrop {
    border-color: @button_border_dest;
    background-color: @button_bg_dest_flt;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    color: @theme_fg_color;
}
button.destructive-action label,
button.destructive-action.flat label,
button.destructive-action:backdrop label,
button.destructive-action:backdrop,
button.destructive-action.flat:backdrop label,
button.destructive-action.flat:backdrop {
    color: @button_fg_dest_color;
}
button.destructive-action:backdrop:active,
button.destructive-action:backdrop:checked,
button.destructive-action.flat:backdrop:active,
button.destructive-action.flat:backdrop:checked,
.button.destructive-action:backdrop:active,
.button.destructive-action:backdrop:checked, .button.destructive-action.flat:backdrop:active,
.header-bar .destructive-action.titlebutton.button:backdrop:active,
.titlebar .destructive-action.titlebutton.button:backdrop:active,
.button.destructive-action.flat:backdrop:checked,
.header-bar .destructive-action.titlebutton.button:backdrop:checked,
.titlebar .destructive-action.titlebutton.button:backdrop:checked {
    border-color: @button_border_dest;
    background-image: linear-gradient(to bottom, @button_bg_dest_a_hov, @button_bg_dest_b_hov, @button_bg_dest_c_hov);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @button_fg_dest_color;
}
button.destructive-action:backdrop:active label,
button.destructive-action:backdrop:active,
button.destructive-action:backdrop:checked label,
button.destructive-action:backdrop:checked,
button.destructive-action.flat:backdrop:active label,
button.destructive-action.flat:backdrop:active,
button.destructive-action.flat:backdrop:checked label,
button.destructive-action.flat:backdrop:checked {
    color: @theme_fg_color;
}
button.destructive-action:backdrop:insensitive,
button.destructive-action.flat:backdrop:insensitive,
.button.destructive-action:backdrop:insensitive,
.button.destructive-action.flat:backdrop:insensitive,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive {
    border-color: @unfocused_borders;
    background-color: @insensitive_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
button.destructive-action:backdrop:insensitive label,
button.destructive-action:backdrop:insensitive,
button.destructive-action.flat:backdrop:insensitive label,
button.destructive-action.flat:backdrop:insensitive,
.button.destructive-action:backdrop:insensitive > .label,
.header-bar .destructive-action.button.titlebutton:backdrop:insensitive > .label,
.titlebar .destructive-action.button.titlebutton:backdrop:insensitive > .label,
.button.destructive-action.flat:backdrop:insensitive > .label,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive > .label,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive > .label {
    color: @button_fg_dis;
}
button.destructive-action:backdrop:insensitive:active,
button.destructive-action:backdrop:insensitive:checked,
button.destructive-action.flat:backdrop:insensitive:active,
button.destructive-action.flat:backdrop:insensitive:checked,
.button.destructive-action:backdrop:insensitive:active,
.button.destructive-action:backdrop:insensitive:checked,
.button.destructive-action.flat:backdrop:insensitive:active,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive:active,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive:active,
.button.destructive-action.flat:backdrop:insensitive:checked,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive:checked,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive:checked {
    border-color: @button_border_dest;
    background-color: @button_bg_dest_c_act;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
button.destructive-action:backdrop:insensitive:active label,
button.destructive-action:backdrop:insensitive:checked label,
button.destructive-action.flat:backdrop:insensitive:active label,
button.destructive-action.flat:backdrop:insensitive:checked label,
.button.destructive-action:backdrop:insensitive:active > .label,
.header-bar .destructive-action.button.titlebutton:backdrop:insensitive:active > .label,
.titlebar .destructive-action.button.titlebutton:backdrop:insensitive:active > .label,
.button.destructive-action:backdrop:insensitive:checked > .label,
.header-bar .destructive-action.button.titlebutton:backdrop:insensitive:checked > .label,
.titlebar .destructive-action.button.titlebutton:backdrop:insensitive:checked > .label,
.button.destructive-action.flat:backdrop:insensitive:active > .label,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive:active > .label,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive:active > .label,
.button.destructive-action.flat:backdrop:insensitive:checked > .label,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive:checked > .label,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive:checked > .label {
    color: @button_fg_dest_color;
}
button.destructive-action.flat:backdrop,
button.destructive-action.flat:insensitive,
button.destructive-action.flat:backdrop:insensitive,
.button.destructive-action.flat:backdrop,
.header-bar .destructive-action.titlebutton.button:backdrop,
.titlebar .destructive-action.titlebutton.button:backdrop,
.button.destructive-action.flat:insensitive,
.header-bar .destructive-action.titlebutton.button:insensitive,
.titlebar .destructive-action.titlebutton.button:insensitive,
.button.destructive-action.flat:backdrop:insensitive,
.header-bar .destructive-action.titlebutton.button:backdrop:insensitive,
.titlebar .destructive-action.titlebutton.button:backdrop:insensitive {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: rgba(213, 16, 16, 0.8); 
}
button.destructive-action:insensitive,
.button.destructive-action:insensitive {
    border-color: @button_border;
    background-color: @insensitive_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
button.destructive-action:insensitive label,
button.destructive-action:insensitive,
.button.destructive-action:insensitive > .label,
.header-bar .destructive-action.button.titlebutton:insensitive > .label,
.titlebar .destructive-action.button.titlebutton:insensitive > .label {
    color: @theme_fg_color_dis;
}
button.destructive-action:insensitive:active,
button.destructive-action:insensitive:checked,
.button.destructive-action:insensitive:active,
.button.destructive-action:insensitive:checked {
    border-color: @button_border_dest;
    background-color: @insensitive_bg_color;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
button.destructive-action:insensitive:active label,
button.destructive-action:insensitive:active,
button.destructive-action:insensitive:checked label,
button.destructive-action:insensitive:checked,
.button.destructive-action:insensitive:active > .label,
.header-bar .destructive-action.button.titlebutton:insensitive:active > .label,
.titlebar .destructive-action.button.titlebutton:insensitive:active > .label,
.button.destructive-action:insensitive:checked > .label,
.header-bar .destructive-action.button.titlebutton:insensitive:checked > .label,
.titlebar .destructive-action.button.titlebutton:insensitive:checked > .label {
    color: @theme_fg_color;
}
.osd button.destructive-action,
.osd .button.destructive-action {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(213, 16, 16, 0.5);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3); 
}
.osd button.destructive-action:hover,
.osd .button.destructive-action:hover {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(213, 16, 16, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}
.osd button.destructive-action:active:backdrop,
.osd button.destructive-action:active,
.osd button.destructive-action:checked:backdrop,
.osd button.destructive-action:checked,
.osd .button.destructive-action:active,
.osd .button.destructive-action:checked,
.osd .button.destructive-action:backdrop:active,
.osd .button.destructive-action:backdrop:checked {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3); 
}
.osd button.destructive-action:insensitive:backdrop,
.osd button.destructive-action:insensitive,
.osd .button.destructive-action:insensitive,
.osd .button.destructive-action:backdrop:insensitive {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
.osd button.destructive-action:backdrop,
.osd .button.destructive-action:backdrop {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(213, 16, 16, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}

.button.image-button,
.header-bar .titlebutton.button,
.titlebar .titlebutton.button {
    padding: 8px;
}
.button.text-button,
.header-bar .text-button.button.titlebutton,
.titlebar .text-button.button.titlebutton {
    padding-left: 16px;
    padding-right: 16px;
}
.button.text-button.image-button,
.header-bar .text-button.titlebutton.button,
.titlebar .text-button.titlebutton.button {
    padding: 6px 8px;
}
.button.text-button.image-button .label:first-child,
.header-bar .text-button.titlebutton.button .label:first-child,
.titlebar .text-button.titlebutton.button .label:first-child {
    padding-left: 8px;
}
.button.text-button.image-button .label:last-child,
.header-bar .text-button.titlebutton.button .label:last-child,
.titlebar .text-button.titlebutton.button .label:last-child {
    padding-right: 8px;
}

.stack-switcher > button,
.stack-switcher > .button,
.header-bar .stack-switcher > .button.titlebutton,
.titlebar .stack-switcher > .button.titlebutton {
    outline-offset: -3px; 
}
.stack-switcher > button > label,
.stack-switcher > .button > .label {
    padding-left: 6px;
    padding-right: 6px;
}
.stack-switcher > button > image,
.stack-switcher > .button > GtkImage,
.header-bar .stack-switcher > .button.titlebutton > GtkImage,
.titlebar .stack-switcher > .button.titlebutton > GtkImage {
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 3px;
    padding-bottom: 3px; 
}
.stack-switcher > button.text-button,
.stack-switcher > .button.text-button,
.header-bar .stack-switcher > .text-button.button.titlebutton,
.titlebar .stack-switcher > .text-button.button.titlebutton {
    padding-left: 10px;
    padding-right: 10px;
}
.stack-switcher > button.image-button,
.stack-switcher > .button.image-button,
.header-bar .stack-switcher > .titlebutton.button,
.titlebar .stack-switcher > .titlebutton.button {
    padding-left: 2px;
    padding-right: 2px;
}
.stack-switcher > button.needs-attention:active > label,
.stack-switcher > button.needs-attention:active > image,
.stack-switcher > button.needs-attention:checked > label,
.stack-switcher > button.needs-attention:checked > image,
.stack-switcher > .button.needs-attention:active > .label,
.stack-switcher > .button.needs-attention:active > GtkImage,
.stack-switcher > .button.needs-attention:checked > .label,
.stack-switcher > .button.needs-attention:checked > GtkImage {
    animation: none;
    background-image: none;
}

.inline-toolbar .button,
.inline-toolbar .header-bar .button.titlebutton,
.header-bar .inline-toolbar .button.titlebutton,
.inline-toolbar .titlebar .button.titlebutton,
.titlebar .inline-toolbar .button.titlebutton,
.inline-toolbar .button:backdrop {
    border-radius: 2px;
    border-width: 1px;
}

button.font separator,
button.file separator {
    background-color: transparent;
}
button.font > box > box > label {
    font-weight: bold;
}
.inline-toolbar button,
.inline-toolbar button:backdrop {
    border-radius: 2px;
    border-width: 1px; 
}
.primary-toolbar button {
    icon-shadow: none;
}
button.circular {
    border-radius: 9999px;
    background-origin: padding-box, border-box;
    background-clip: padding-box, border-box;
    padding: 0px;
}
button.circular label {
    padding: 0;
}
button.circular:not(.flat):not(:checked):not(:active):not(:insensitive):not(:backdrop) {
    color: @theme_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    border-bottom-color: @button_bgcirc_a;
    text-shadow: 0 -1px alpha(@button_fgcirc_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@button_fgcirc_shadow, 0.8);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(to bottom, @button_bgcirc_a, @button_bgcirc_b 60%, @button_bgcirc_c);
    border-color: transparent;
}
button.circular:hover:not(:checked):not(:active):not(:insensitive):not(:backdrop) {
    color: @theme_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    border-bottom-color: @button_bgcirc_flt_a;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.77945);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.77945);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(to top, @button_bgcirc_flt_a 25%, @button_bgcirc_flt_b 50%);
    border-color: transparent;
}

.stack-switcher > button.needs-attention > label,
.stack-switcher > button.needs-attention > image,
stacksidebar row.needs-attention > label,
.stack-switcher > .button.needs-attention > .label,
.stack-switcher > .button.needs-attention > GtkImage,
.sidebar-item.needs-attention > .label {
    animation: needs_attention 150ms ease-in;
    background-image: -gtk-gradient(radial, center center, 0, center center, 0.5, to(@theme_accent_color), to(transparent)),
                      -gtk-gradient(radial, center center, 0, center center, 0.45, to(rgba(0, 0, 0, 0.82745)), to(transparent));
    background-size: 6px 6px, 6px 6px;
    background-repeat: no-repeat;
    background-position: right 3px, right 2px;
}
.stack-switcher > button.needs-attention > label:backdrop,
.stack-switcher > button.needs-attention > image:backdrop,
stacksidebar row.needs-attention > label:backdrop {
    background-size: 6px 6px, 0 0;
}
.stack-switcher > button.needs-attention > label:dir(rtl),
.stack-switcher > button.needs-attention > image:dir(rtl),
stacksidebar row.needs-attention > label:dir(rtl),
.stack-switcher > .button.needs-attention > .label:dir(rtl),
.stack-switcher > .button.needs-attention > GtkImage:dir(rtl),
.sidebar-item.needs-attention > .label:dir(rtl) {
    background-position: left 3px, left 2px;
}

.inline-toolbar toolbutton > button,
.inline-toolbar GtkToolButton > .button,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton {
    color: @button_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    border-bottom-color: @button_border;
    background-image: linear-gradient(to bottom, @button_bg_a, @button_bg_b 60%, @button_bg_c);
    text-shadow: 0 -1px alpha(@button_fg_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@button_fg_shadow, 0.8);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
.inline-toolbar toolbutton > button:hover,
.inline-toolbar GtkToolButton > .button:hover,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:hover,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:hover {
    color: @button_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    border-bottom-color: @button_border;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.77945);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.77945);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @button_bg_a_hov, @button_bg_b_hov 60%, @button_bg_c_hov);
}
.inline-toolbar toolbutton > button:active,
.inline-toolbar toolbutton > button:checked,
.inline-toolbar GtkToolButton > .button:active,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:active,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:active,
.inline-toolbar GtkToolButton > .button:checked,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:checked,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:checked {
    color: @button_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @titlebutton_border;
    background-image: linear-gradient(to bottom, @button_bg_a_act, @button_bg_b_act 60%, @button_bg_c_act);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}
.inline-toolbar toolbutton > button:insensitive,
.inline-toolbar GtkToolButton > .button:insensitive,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:insensitive,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:insensitive {
    border-color: @button_border;
    background-color: @insensitive_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.inline-toolbar toolbutton > button:insensitive label,
.inline-toolbar toolbutton > button:insensitive,
.inline-toolbar GtkToolButton > .button:insensitive > .label {
    color: @theme_fg_color_dis;
}
.inline-toolbar toolbutton > button:insensitive:active,
.inline-toolbar toolbutton > button:insensitive:checked,
.inline-toolbar GtkToolButton > .button:backdrop,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:backdrop,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:backdrop,
.inline-toolbar GtkToolButton > .button:insensitive:active,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:insensitive:active,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:insensitive:active,
.inline-toolbar GtkToolButton > .button:insensitive:checked,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:insensitive:checked,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:insensitive:checked {
    border-color: @button_border;
    background-color: @button_bg_a_dis;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @theme_fg_color_dis;
}
.inline-toolbar toolbutton > button:insensitive:active label,
.inline-toolbar toolbutton > button:insensitive:active,
.inline-toolbar toolbutton > button:insensitive:checked label,
.inline-toolbar toolbutton > button:insensitive:checked,
.inline-toolbar GtkToolButton > .button:insensitive:active > .label,
.inline-toolbar GtkToolButton > .button:insensitive:checked > .label {
    color: @theme_fg_color_dis;
}
.inline-toolbar toolbutton > button:backdrop {
    border-color: @unfocused_borders;
    background-color: @theme_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.inline-toolbar toolbutton > button:backdrop label,
.inline-toolbar toolbutton > button:backdrop {
    color: @theme_fg_color_dis;
}
.inline-toolbar toolbutton > button:backdrop:active,
.inline-toolbar toolbutton > button:backdrop:checked,
.inline-toolbar GtkToolButton > .button:backdrop:active,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:backdrop:active,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:backdrop:active,
.inline-toolbar GtkToolButton > .button:backdrop:checked,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:backdrop:checked,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:backdrop:checked {
    border-color: @unfocused_borders;
    background-color: @button_bg_dis_a;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @theme_fg_color_dis;
}
.inline-toolbar toolbutton > button:backdrop:active label,
.inline-toolbar toolbutton > button:backdrop:active,
.inline-toolbar toolbutton > button:backdrop:checked label,
.inline-toolbar toolbutton > button:backdrop:checked {
    color: @theme_fg_color_dis;
}
.inline-toolbar toolbutton > button:backdrop:insensitive,
.inline-toolbar GtkToolButton > .button:backdrop:insensitive,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:backdrop:insensitive,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:backdrop:insensitive {
    border-color: @unfocused_borders;
    background-color: @insensitive_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.inline-toolbar toolbutton > button:backdrop:insensitive label,
.inline-toolbar toolbutton > button:backdrop:insensitive,
.inline-toolbar GtkToolButton > .button:backdrop:insensitive > .label {
    color: @titlebutton_fg_dis;
}
.inline-toolbar toolbutton > button:backdrop:insensitive:active,
.inline-toolbar toolbutton > button:backdrop:insensitive:checked,
.inline-toolbar GtkToolButton > .button:backdrop:insensitive:active,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:backdrop:insensitive:active,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:backdrop:insensitive:active,
.inline-toolbar GtkToolButton > .button:backdrop:insensitive:checked,
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:backdrop:insensitive:checked,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:backdrop:insensitive:checked {
    border-color: @unfocused_borders;
    background-color: @button_bg_dis_a;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.inline-toolbar toolbutton > button:backdrop:insensitive:active label,
.inline-toolbar toolbutton > button:backdrop:insensitive:checked label,
.inline-toolbar GtkToolButton > .button:backdrop:insensitive:active > .label,
.inline-toolbar GtkToolButton > .button:backdrop:insensitive:checked > .label {
    color: @titlebutton_fg_dis;
}

.inline-toolbar.toolbar GtkToolButton > .button.flat, 
.inline-toolbar GtkToolButton > .button.flat, 
.inline-toolbar.search-bar GtkToolButton > .button.flat, 
.inline-toolbar.location-bar GtkToolButton > .button.flat, 
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton, 
.header-bar .inline-toolbar GtkToolButton > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton > .button.titlebutton,
.inline-toolbar.toolbar GtkToolButton:backdrop > .button.flat,
.inline-toolbar GtkToolButton:backdrop > .button.flat,
.inline-toolbar.search-bar GtkToolButton:backdrop > .button.flat,
.inline-toolbar.location-bar GtkToolButton:backdrop > .button.flat,
.inline-toolbar .header-bar GtkToolButton:backdrop > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:backdrop > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:backdrop > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:backdrop > .button.titlebutton, 
.osd .button:hover, 
.osd .button:active, 
.osd .button:checked, 
.osd .button:backdrop:active, 
.osd .button:backdrop:checked, 
.osd .button:insensitive, 
.osd .button:backdrop:insensitive, 
.osd .button:backdrop, 
.osd .button.suggested-action, 
.osd .button.suggested-action:hover, 
.osd .button.suggested-action:active, 
.osd .button.suggested-action:checked, 
.osd .button.suggested-action:backdrop:active, 
.osd .button.suggested-action:backdrop:checked, 
.osd .button.suggested-action:insensitive, 
.osd .button.suggested-action:backdrop:insensitive, 
.osd .button.suggested-action:backdrop, 
.osd .button.destructive-action, 
.osd .button.destructive-action:hover, 
.osd .button.destructive-action:active,
.osd .button.destructive-action:checked, 
.osd .button.destructive-action:backdrop:active, 
.osd .button.destructive-action:backdrop:checked, 
.osd .button.destructive-action:insensitive, 
.osd .button.destructive-action:backdrop:insensitive, 
.osd .button.destructive-action:backdrop, 
.inline-toolbar .button, 
.inline-toolbar .header-bar .button.titlebutton, 
.header-bar .inline-toolbar .button.titlebutton,
.inline-toolbar .titlebar .button.titlebutton,
.titlebar .inline-toolbar .button.titlebutton, 
.inline-toolbar .button:backdrop, .linked > .button, 
.header-bar .linked > .button.titlebutton,
.titlebar .linked > .button.titlebutton, 
.linked > .button:hover, 
.linked > .button:active, 
.linked > .button:checked, 
.linked > .button:backdrop, 
GtkComboBox.combobox-entry .entry, 
GtkComboBox.combobox-entry .button, 
GtkComboBox.combobox-entry .header-bar .button.titlebutton, 
.header-bar GtkComboBox.combobox-entry .button.titlebutton,
GtkComboBox.combobox-entry .titlebar .button.titlebutton,
.titlebar GtkComboBox.combobox-entry .button.titlebutton, 
GtkComboBox.combobox-entry .button:backdrop, 
.linked > GtkComboBox > .button:dir(ltr) {
    border-radius: 0;
    border-left-style: none; 
}

toolbar.inline-toolbar toolbutton > button.flat,
toolbar.inline-toolbar toolbutton:backdrop > button.flat,
.linked:not(.vertical) > spinbutton:not(.vertical),
.linked:not(.vertical) > entry,
.inline-toolbar button,
.inline-toolbar button:backdrop,
.linked > button,
.linked > button:hover,
.linked > button:active,
.linked > button:checked,
.linked > button:backdrop,
.linked > combobox > box > button.combo:dir(ltr),
.linked > combobox > box > button.combo:dir(rtl),
.inline-toolbar GtkToolButton > .button.flat:dir(rtl),
.inline-toolbar .header-bar GtkToolButton > .button.titlebutton:dir(rtl),
.header-bar .inline-toolbar GtkToolButton > .button.titlebutton:dir(rtl),
.inline-toolbar .titlebar GtkToolButton > .button.titlebutton:dir(rtl),
.titlebar .inline-toolbar GtkToolButton > .button.titlebutton:dir(rtl),
.inline-toolbar GtkToolButton:backdrop > .button.flat:dir(rtl),
.inline-toolbar.toolbar GtkToolButton:dir(rtl) > .button.flat,
.inline-toolbar GtkToolButton:dir(rtl) > .button.flat,
.inline-toolbar.search-bar GtkToolButton:dir(rtl) > .button.flat,
.inline-toolbar.location-bar GtkToolButton:dir(rtl) > .button.flat,
.inline-toolbar .header-bar GtkToolButton:dir(rtl) > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:dir(rtl) > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:dir(rtl) > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:dir(rtl) > .button.titlebutton,
.inline-toolbar.toolbar GtkToolButton:backdrop:dir(rtl) > .button.flat,
.inline-toolbar GtkToolButton:backdrop:dir(rtl) > .button.flat,
.inline-toolbar.search-bar GtkToolButton:backdrop:dir(rtl) > .button.flat,
.inline-toolbar.location-bar GtkToolButton:backdrop:dir(rtl) > .button.flat,
.inline-toolbar .header-bar GtkToolButton:backdrop:dir(rtl) > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:backdrop:dir(rtl) > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:backdrop:dir(rtl) > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:backdrop:dir(rtl) > .button.titlebutton,
.osd .button:dir(rtl):hover,
.osd .button:dir(rtl):active,
.osd .button:dir(rtl):checked,
.osd .button:dir(rtl):insensitive,
.osd .button:dir(rtl):backdrop,
.osd .button.suggested-action:dir(rtl),
.osd .button.destructive-action:dir(rtl),
.inline-toolbar .button:dir(rtl),
.linked > .button:dir(rtl),
.header-bar .linked > .button.titlebutton:dir(rtl),
.titlebar .linked > .button.titlebutton:dir(rtl),
GtkComboBox.combobox-entry .entry:dir(rtl),
GtkComboBox.combobox-entry .button:dir(rtl),
.linked > GtkComboBox > .button:dir(rtl) {
    border-radius: 0;
    border-right-style: none;
    margin-left: 0px;
    margin-right: 0px;
}

.linked:not(.vertical) > spinbutton:first-child:not(.vertical),
.linked:not(.vertical) > entry:first-child,
GtkComboBox.combobox-entry .entry:first-child {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
    border-left-style: solid; 
}


.inline-toolbar button:first-child,
.linked > button:first-child,
toolbar.inline-toolbar toolbutton:first-child > button.flat,
toolbar.inline-toolbar toolbutton:backdrop:first-child > button.flat,
combobox.linked button:nth-child(2):dir(rtl),
.linked:not(.vertical) > combobox:first-child > box > button.combo,
.osd .button:first-child:hover,
.osd .button:first-child:active,
.osd .button:first-child:checked,
.osd .button:first-child:insensitive,
.osd .button:first-child:backdrop,
.osd .button.suggested-action:first-child,
.osd .button.destructive-action:first-child,
.inline-toolbar .button:first-child,
.linked > .button:first-child,
.header-bar .linked > .button.titlebutton:first-child,
.titlebar .linked > .button.titlebutton:first-child,
.inline-toolbar.toolbar GtkToolButton:first-child > .button.flat,
.inline-toolbar GtkToolButton:first-child > .button.flat,
.inline-toolbar.search-bar GtkToolButton:first-child > .button.flat,
.inline-toolbar.location-bar GtkToolButton:first-child > .button.flat,
.inline-toolbar .header-bar GtkToolButton:first-child > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:first-child > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:first-child > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:first-child > .button.titlebutton,
.inline-toolbar.toolbar GtkToolButton:backdrop:first-child > .button.flat,
.inline-toolbar GtkToolButton:backdrop:first-child > .button.flat,
.inline-toolbar.search-bar GtkToolButton:backdrop:first-child > .button.flat,
.inline-toolbar.location-bar GtkToolButton:backdrop:first-child > .button.flat,
.inline-toolbar .header-bar GtkToolButton:backdrop:first-child > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:backdrop:first-child > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:backdrop:first-child > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:backdrop:first-child > .button.titlebutton,
GtkComboBox.combobox-entry .button:first-child,
.linked > GtkComboBox:first-child > .button {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border-left-style: solid; 
}


.linked:not(.vertical) > spinbutton:last-child:not(.vertical),
.linked:not(.vertical) > entry:last-child,
GtkComboBox.combobox-entry .entry:last-child {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
    border-right-style: solid; 
}


.inline-toolbar button:last-child,
.linked > button:last-child,
toolbar.inline-toolbar toolbutton:last-child > button.flat,
toolbar.inline-toolbar toolbutton:backdrop:last-child > button.flat,
combobox.linked button:nth-child(2):dir(ltr),
.linked:not(.vertical) > combobox:last-child > box > button.combo,
.osd .button:last-child:hover,
.osd .button:last-child:active,
.osd .button:last-child:checked,
.osd .button:last-child:insensitive,
.osd .button:last-child:backdrop,
.osd .button.suggested-action:last-child,
.osd .button.destructive-action:last-child,
.inline-toolbar .button:last-child, .linked > .button:last-child,
.header-bar .linked > .button.titlebutton:last-child,
.titlebar .linked > .button.titlebutton:last-child,
.inline-toolbar.toolbar GtkToolButton:last-child > .button.flat,
.inline-toolbar GtkToolButton:last-child > .button.flat,
.inline-toolbar.search-bar GtkToolButton:last-child > .button.flat,
.inline-toolbar.location-bar GtkToolButton:last-child > .button.flat,
.inline-toolbar .header-bar GtkToolButton:last-child > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:last-child > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:last-child > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:last-child > .button.titlebutton,
.inline-toolbar.toolbar GtkToolButton:backdrop:last-child > .button.flat,
.inline-toolbar GtkToolButton:backdrop:last-child > .button.flat,
.inline-toolbar.search-bar GtkToolButton:backdrop:last-child > .button.flat,
.inline-toolbar.location-bar GtkToolButton:backdrop:last-child > .button.flat,
.inline-toolbar .header-bar GtkToolButton:backdrop:last-child > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:backdrop:last-child > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:backdrop:last-child > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:backdrop:last-child > .button.titlebutton,
GtkComboBox.combobox-entry .button:last-child,
.linked > GtkComboBox:last-child > .button {
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    border-right-style: solid; 
}

.linked:not(.vertical) > spinbutton:only-child:not(.vertical),
.linked:not(.vertical) > entry:only-child,
.inline-toolbar button:only-child,
.linked > button:only-child,
toolbar.inline-toolbar toolbutton:only-child > button.flat,
toolbar.inline-toolbar toolbutton:backdrop:only-child > button.flat,
.linked:not(.vertical) > combobox:only-child > box > button.combo,
.osd .button:only-child:hover,
.osd .button:only-child:active,
.osd .button:only-child:checked,
.osd .button:only-child:insensitive,
.osd .button:only-child:backdrop,
.osd .button.suggested-action:only-child,
.osd .button.destructive-action:only-child,
.inline-toolbar .button:only-child,
.linked > .button:only-child,
.header-bar .linked > .button.titlebutton:only-child,
.titlebar .linked > .button.titlebutton:only-child,
.inline-toolbar.toolbar GtkToolButton:only-child > .button.flat,
.inline-toolbar GtkToolButton:only-child > .button.flat,
.inline-toolbar.search-bar GtkToolButton:only-child > .button.flat,
.inline-toolbar.location-bar GtkToolButton:only-child > .button.flat,
.inline-toolbar .header-bar GtkToolButton:only-child > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:only-child > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:only-child > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:only-child > .button.titlebutton,
.inline-toolbar.toolbar GtkToolButton:backdrop:only-child > .button.flat,
.inline-toolbar GtkToolButton:backdrop:only-child > .button.flat,
.inline-toolbar.search-bar GtkToolButton:backdrop:only-child > .button.flat,
.inline-toolbar.location-bar GtkToolButton:backdrop:only-child > .button.flat,
.inline-toolbar .header-bar GtkToolButton:backdrop:only-child > .button.titlebutton,
.header-bar .inline-toolbar GtkToolButton:backdrop:only-child > .button.titlebutton,
.inline-toolbar .titlebar GtkToolButton:backdrop:only-child > .button.titlebutton,
.titlebar .inline-toolbar GtkToolButton:backdrop:only-child > .button.titlebutton,
GtkComboBox.combobox-entry .entry:only-child,
GtkComboBox.combobox-entry .button:only-child,
.linked > GtkComboBox:only-child > .button {
    border-radius: 4px;
}

.linked.vertical > spinbutton:not(.vertical),
.linked.vertical > entry,
.linked.vertical > button,
.linked.vertical > button:hover,
.linked.vertical > button:active,
.linked.vertical > button:checked,
.linked.vertical > button:backdrop,
.linked.vertical > combobox > box > button.combo,
.linked.vertical > .entry, .linked.vertical > .entry:focus,
.linked.vertical > .entry:insensitive, .linked.vertical > .entry:insensitive:backdrop,
.linked.vertical > .entry:backdrop, .linked.vertical > .button,
.header-bar .linked.vertical > .button.titlebutton,
.titlebar .linked.vertical > .button.titlebutton,
.linked.vertical > .button:hover,
.linked.vertical > .button:active,
.linked.vertical > .button:checked,
.linked.vertical > .button:backdrop,
.linked.vertical > GtkComboBoxText > .button,
.linked.vertical > GtkComboBox > .button {
    border-style: solid solid none solid;
    border-radius: 0; 
}

.linked.vertical > button:first-child,
.linked.vertical > combobox:first-child > box > button.combo,
.linked.vertical > .button:first-child,
.header-bar .linked.vertical > .button.titlebutton:first-child,
.titlebar .linked.vertical > .button.titlebutton:first-child,
.linked.vertical > GtkComboBoxText:first-child > .button,
.linked.vertical > GtkComboBox:first-child > .button {
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.linked.vertical > button:last-child,
.linked.vertical > combobox:last-child > box > button.combo,
.linked.vertical > .button:last-child,
.header-bar .linked.vertical > .button.titlebutton:last-child,
.titlebar .linked.vertical > .button.titlebutton:last-child,
.linked.vertical > GtkComboBoxText:last-child > .button,
.linked.vertical > GtkComboBox:last-child > .button {
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    border-style: solid;
}

.linked.vertical > spinbutton:first-child:not(.vertical),
.linked.vertical > entry:first-child,
.linked.vertical > .entry:first-child {
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.linked.vertical > spinbutton:last-child:not(.vertical),
.linked.vertical > entry:last-child,
.linked.vertical > .entry:last-child {
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border-style: solid;
}

.linked.vertical > button:only-child,
.linked.vertical > combobox:only-child > box > button.combo,
.linked.vertical > .button:only-child,
.header-bar .linked.vertical > .button.titlebutton:only-child,
.titlebar .linked.vertical > .button.titlebutton:only-child,
.linked.vertical > GtkComboBoxText:only-child > .button,
.linked.vertical > GtkComboBox:only-child > .button {
    border-radius: 4px;
}
.linked.vertical > spinbutton:only-child:not(.vertical),
.linked.vertical > entry:only-child,
.linked.vertical > .entry:only-child {
    border-radius: 3px;
}

modelbutton.flat,
.menuitem.button.flat, 
modelbutton.flat:backdrop,
modelbutton.flat:backdrop:hover,
.menuitem.button.flat:backdrop,
.menuitem.button.flat:backdrop:hover, 
button:link,
button:visited,
button:link:hover,
button:link:active,
button:link:checked,
button:visited:hover,
button:visited:active,
button:visited:checked,
calendar.button,
.scale-popup button:hover,
.scale-popup button:backdrop:hover,
.scale-popup button:backdrop:insensitive,
.scale-popup button:backdrop,
.menuitem.button.flat,
.header-bar .menuitem.titlebutton.button,
.titlebar .menuitem.titlebutton.button,
.menuitem.button.flat:backdrop,
.menuitem.button.flat:backdrop:hover,
.header-bar .menuitem.titlebutton.button:backdrop:hover,
.titlebar .menuitem.titlebutton.button:backdrop:hover,
.button:link, .header-bar .button.titlebutton:link,
.titlebar .button.titlebutton:link,
.button:visited,
.header-bar .button.titlebutton:visited,
.titlebar .button.titlebutton:visited,
.button:link:hover,
.button:link:active,
.button:link:checked,
.button:visited:hover,
.button:visited:active,
.button:visited:checked,
.button:link:backdrop,
.button:visited:backdrop,
.menu.button,
.header-bar .menu.button.titlebutton,
.titlebar .menu.button.titlebutton,
.notebook tab .button,
.notebook tab .header-bar .button.titlebutton,
.header-bar .notebook tab .button.titlebutton,
.notebook tab .titlebar .button.titlebutton,
.titlebar .notebook tab .button.titlebutton,
.list-row.button,
.header-bar .list-row.button.titlebutton,
.titlebar .list-row.button.titlebutton,
.list-row.button:backdrop,
.list-row.button:backdrop:active,
.list-row.button:backdrop:checked,
.list-row.button:backdrop:insensitive,
.list-row.button:backdrop:insensitive:active,
.list-row.button:backdrop:insensitive:checked,
.list-row.button:insensitive:active,
.list-row.button:insensitive:checked,
.app-notification .button.flat,
.app-notification .header-bar .titlebutton.button,
.header-bar .app-notification .titlebutton.button,
.app-notification .titlebar .titlebutton.button,
.titlebar .app-notification .titlebutton.button,
.app-notification.frame .button.flat,
.app-notification .button.flat:backdrop,
.app-notification .button.flat:insensitive,
.app-notification .button.flat:backdrop:insensitive,
.app-notification .header-bar .titlebutton.button:backdrop:insensitive,
.header-bar .app-notification .titlebutton.button:backdrop:insensitive,
.app-notification .titlebar .titlebutton.button:backdrop:insensitive,
.titlebar .app-notification .titlebutton.button:backdrop:insensitive,
.app-notification.frame .button.flat:backdrop,
.app-notification.frame .header-bar .button.titlebutton:backdrop,
.header-bar .app-notification.frame .button.titlebutton:backdrop,
.app-notification.frame .titlebar .button.titlebutton:backdrop,
.titlebar .app-notification.frame .button.titlebutton:backdrop,
.app-notification.frame .button.flat:insensitive,
.app-notification.frame .header-bar .button.titlebutton:insensitive,
.header-bar .app-notification.frame .button.titlebutton:insensitive,
.app-notification.frame .titlebar .button.titlebutton:insensitive,
.titlebar .app-notification.frame .button.titlebutton:insensitive,
.app-notification.frame .button.flat:backdrop:insensitive, GtkCalendar.button,
.header-bar GtkCalendar.button.titlebutton,
.titlebar GtkCalendar.button.titlebutton,
GtkCalendar.button:hover,
GtkCalendar.button:backdrop,
.scale-popup .button:hover,
.scale-popup .button:backdrop,
.scale-popup .button:backdrop:hover,
.scale-popup .button:backdrop:insensitive {
    background-color: transparent;
    background-image: none;
    border-color: transparent;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}

modelbutton.flat,
.menuitem.button.flat,
.menuitem.button.flat,
.header-bar .menuitem.titlebutton.button,
.titlebar .menuitem.titlebutton.button {
    padding-left: 5px;
    padding-right: 5px;
    border-radius: 3px;
    outline-offset: -2px;
    box-shadow: none;
}
modelbutton.flat:hover,
.menuitem.button.flat:hover,
.header-bar .menuitem.titlebutton.button:hover,
.titlebar .menuitem.titlebutton.button:hover {
    background-color: @headermenu_bg_hover;
    box-shadow: none;
}

modelbutton.flat arrow {
    background: none;
}
modelbutton.flat arrow:hover {
    background: none;
}
modelbutton.flat arrow.left {
    -gtk-icon-source: -gtk-icontheme("pan-start-symbolic");
}
modelbutton.flat arrow.right {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
}

button.color,
GtkColorButton.button,
.header-bar GtkColorButton.button.titlebutton,
.titlebar GtkColorButton.button.titlebutton {
    padding: 4px;
}
button.color colorswatch:only-child,
button.color colorswatch:only-child overlay {
    border-radius: 0;
}

/***************************************************************************************************
 * Links
 **************************************************************************************************/
button:link > label,
button:visited > label,
*:link,
button:link,
button:visited,
*:link,
.button:link,
.header-bar .button.titlebutton:link,
.titlebar .button.titlebutton:link,
.button:visited,
.header-bar .button.titlebutton:visited,
.titlebar .button.titlebutton:visited {
  color: @theme_fg_color_sel;
}
button:link > label:visited,
button:visited > label:visited,
*:link:visited,
button:visited,
*:link:visited,
.button:visited,
.header-bar .button.titlebutton:visited,
.titlebar .button.titlebutton:visited {
    color: @theme_fg_color_sel;
}
*:selected button:link > label:visited,
*:selected button:visited > label:visited,
*:selected *:link:visited,
*:selected button:visited:link,
*:selected button:visited,
*:selected *:link:visited,
*:selected .button:visited {
    color: @theme_fg_color_sel;
}
button:link > label:hover,
button:visited > label:hover,
*:link:hover,
button:hover:link,
button:hover:visited,
*:link:hover,
.button:hover:link,
.button:hover:visited {
    color: @theme_fg_color;
}
*:selected button:link > label:hover,
*:selected button:visited > label:hover,
*:selected *:link:hover,
*:selected button:hover:link,
*:selected button:hover:visited,
*:selected *:link:hover,
*:selected .button:hover:link,
*:selected .button:hover:visited {
    color: @theme_fg_color;
}
button:link > label:active,
button:visited > label:active,
*:link:active,
button:active:link,
button:active:visited,
*:link:active,
.button:active:link,
.button:active:visited {
    color: @theme_fg_color_sel;
}
*:selected button:link > label:active,
*:selected button:visited > label:active,
*:selected *:link:active,
*:selected button:active:link,
*:selected button:active:visited,
*:selected *:link:active,
*:selected .button:active:link,
*:selected .button:active:visited {
    color: @theme_fg_color;
}
button:link > label:backdrop:backdrop:hover,
button:visited > label:backdrop:backdrop:hover,
button:link > label:backdrop:backdrop:hover:selected,
button:visited > label:backdrop:backdrop:hover:selected,
button:link > label:backdrop,
button:visited > label:backdrop,
*:link:backdrop:backdrop:hover,
button:backdrop:backdrop:hover:link,
button:backdrop:backdrop:hover:visited,
*:link:backdrop:backdrop:hover:selected,
button:backdrop:backdrop:hover:selected:link,
button:backdrop:backdrop:hover:selected:visited,
selection-mode.titlebar:not(headerbar) .subtitle:backdrop:backdrop:hover:link,
headerbar.selection-mode .subtitle:backdrop:backdrop:hover:link,
*:link:backdrop,
button:backdrop:link,
button:backdrop:visited,
*:link:backdrop,
.button:backdrop:link,
.button:backdrop:visited,
*:link:backdrop:hover,
.button:backdrop:hover:link,
.button:backdrop:hover:visited,
*:link:backdrop:hover:selected,
.button:backdrop:hover:selected:link,
.button:backdrop:hover:selected:visited,
.titlebar.selection-mode .subtitle:backdrop:hover:link,
.header-bar.selection-mode .subtitle:backdrop:hover:link {
    color: @theme_accent_color;
}
infobar.info *:link,
infobar.info button:link,
infobar.info button:visited,
infobar.question *:link,
infobar.question button:link,
infobar.question button:visited,
infobar.warning *:link,
infobar.warning button:link,
infobar.warning button:visited,
infobar.error *:link,
infobar.error button:link,
infobar.error button:visited,
button:link > label:selected,
button:visited > label:selected,
*:selected button:link > label,
*:selected button:visited > label,
*:link:selected,
button:selected:link,
button:selected:visited,
.selection-mode.titlebar:not(headerbar) .subtitle:link,
headerbar.selection-mode .subtitle:link,
*:selected *:link,
*:selected button:link,
*:selected button:visited,
*:link:selected,
.button:selected:link,
.button:selected:visited,
.titlebar.selection-mode .subtitle:link,
.header-bar.selection-mode .subtitle:link,
*:selected *:link,
*:selected .button:link,
*:selected .button:visited {
    color: @theme_fg_color;
}
button:link,
button:visited,
.button:link,
.header-bar .button.titlebutton:link,
.titlebar .button.titlebutton:link,
.button:visited,
.header-bar .button.titlebutton:visited,
.titlebar .button.titlebutton:visited {
  text-shadow: none;
}
button:link:hover,
button:link:active,
button:link:checked,
button:visited:hover,
button:visited:active,
button:visited:checked,
.button:link:hover,
.button:link:active,
.button:link:checked,
.button:visited:hover,
.button:visited:active,
.button:visited:checked {
    text-shadow: none; 
}
button:link > label,
button:visited > label {
    text-decoration-line: underline;
}

/***************************************************************************************************
 * GtkSpinButton *
 **************************************************************************************************/
spinbutton:not(.vertical) {
    padding: 0;
}
spinbutton:not(.vertical) entry {
    margin: 0;
    background: none;
    background-color: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
spinbutton:not(.vertical) entry:backdrop:insensitive {
    background-color: transparent;
}
spinbutton:not(.vertical) button {
    margin: 0;
    padding-bottom: 0;
    padding-top: 0;
    color: @theme_fg_color;
    background-image: none;
    border-style: none none none solid;
    border-color: rgba(27, 31, 32, 0.3);
    border-radius: 0;
    box-shadow: none;
}
spinbutton:not(.vertical) button:dir(rtl) {
    border-style: none solid none none;
}
spinbutton:not(.vertical) button:hover {
    color: @theme_fg_color;
    background-color: rgba(238, 238, 236, 0.05);
}
spinbutton:not(.vertical) button:insensitive {
    color: rgba(145, 148, 148, 0.3);
    background-color: transparent;
}
spinbutton:not(.vertical) button:active {
    background-color: rgba(0, 0, 0, 0.1);
    box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.2);
}
spinbutton:not(.vertical) button:backdrop {
    color: @theme_fg_color_dis;
    background-color: transparent;
    border-color: rgba(32, 36, 37, 0.3);
    transition: 200ms ease-out;
}
spinbutton:not(.vertical) button:backdrop:insensitive {
    color: rgba(86, 97, 100, 0.3);
    background-color: transparent;
    border-style: none none none solid; 
}
spinbutton:not(.vertical) button:backdrop:insensitive:dir(rtl) {
    border-style: none solid none none; 
}
spinbutton:not(.vertical) button:dir(ltr):last-child {
    border-radius: 0 3px 3px 0;
}
spinbutton:not(.vertical) button:dir(rtl):first-child {
    border-radius: 3px 0 0 3px;
}
.osd spinbutton:not(.vertical) button {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color;
    border-style: none none none solid;
    border-color: rgba(0, 0, 0, 0.4);
    border-radius: 0;
    box-shadow: none;
    icon-shadow: 0 1px black;
}
.osd spinbutton:not(.vertical) button:dir(rtl) {
    border-style: none solid none none; }
.osd spinbutton:not(.vertical) button:hover {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.5);
    background-color: rgba(238, 238, 236, 0.1);
    icon-shadow: 0 1px black;
    box-shadow: none; 
}
.osd spinbutton:not(.vertical) button:backdrop {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.5);
    icon-shadow: none;
    box-shadow: none; 
}
.osd spinbutton:not(.vertical) button:insensitive {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.5);
    icon-shadow: none;
    box-shadow: none;
}
.osd spinbutton:not(.vertical) button:dir(ltr):last-child {
    border-radius: 0 3px 3px 0;
}
.osd spinbutton:not(.vertical) button:dir(rtl):first-child {
    border-radius: 3px 0 0 3px;
}
spinbutton.vertical:insensitive {
    color: @theme_fg_color_dis;
}
spinbutton.vertical:backdrop:insensitive {
    color: @button_fg_dis;
}
spinbutton.vertical entry {
    padding: 0;
    border-radius: 0;
}
spinbutton.vertical button {
    padding: 0;
}
spinbutton.vertical button.up {
    border-radius: 3px 3px 0 0;
    border-style: solid solid none solid;
}
spinbutton.vertical button.down {
    border-radius: 0 0 3px 3px;
    border-style: none solid solid solid;
}

.osd spinbutton.vertical button:first-child {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.5);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}
.osd spinbutton.vertical button:first-child:hover {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.5);
    background-color: rgba(57, 63, 65, 0.7);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
}
.osd spinbutton.vertical button:first-child:active {
    color: @button_fg_color;
    border-color: rgba(0, 0, 0, 0.5);
    background-color: rgba(0, 0, 0, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3);
}
.osd spinbutton.vertical button:first-child:insensitive {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.5);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none; }
.osd spinbutton.vertical button:first-child:backdrop {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.5);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
}
treeview spinbutton:not(.vertical) {
    border-style: none;
    border-radius: 0;
}
treeview spinbutton:not(.vertical) entry,
GtkTreeView .spinbutton.entry,
GtkTreeView .spinbutton.entry:focus {
    padding: 1px 2px;
}

.spinbutton .button, 
.spinbutton .header-bar .button.titlebutton, 
.header-bar .spinbutton .button.titlebutton,
.spinbutton .titlebar .button.titlebutton,
.titlebar .spinbutton .button.titlebutton {
  background-image: none;
  border-style: none none none solid;
  border-color: rgba(28, 31, 31, 0.3);
  color: @theme_fg_color;
  border-radius: 0;
  box-shadow: none; 
}
.spinbutton .button:dir(rtl) {
  border-style: none solid none none; 
}
.spinbutton .button:hover {
  color: @theme_fg_color;
  background-image: none;
  background-color: rgba(238, 238, 236, 0.05);
}
.spinbutton .button:insensitive {
  color: rgba(145, 148, 148, 0.3);
  background-image: none; 
}
.spinbutton .button:active {
  box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.2);
  background-color: rgba(0, 0, 0, 0.1);
  background-image: none; 
}
.spinbutton .button:backdrop {
  color: @theme_fg_color_dis;
  border-color: rgba(0, 0, 0, 0.5);
  background-color: transparent; 
}
.spinbutton .button:backdrop:insensitive {
  background-image: none;
  color: @theme_fg_color_dis;
  border-style: none none none solid; 
}
.spinbutton .button:backdrop:insensitive:dir(rtl) {
  border-style: none solid none none; 
}
.osd .spinbutton .button {
  border-color: transparent;
  background-color: transparent;
  background-image: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
  text-shadow: none;
  icon-shadow: none;
  color: @theme_fg_color;
  border-style: none none none solid;
  border-color: rgba(0, 0, 0, 0.5);
  border-radius: 0;
  box-shadow: none;
  icon-shadow: 0 1px black; 
}
.osd .spinbutton .button:dir(rtl) {
  border-style: none solid none none; 
}
.osd .spinbutton .button:hover {
  background-color: transparent;
  background-image: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
  text-shadow: none;
  icon-shadow: none;
  color: @theme_fg_color;
  border-color: rgba(0, 0, 0, 0.5);
  background-color: rgba(238, 238, 236, 0.1);
  icon-shadow: 0 1px black;
  box-shadow: none; 
}
.osd .spinbutton .button:backdrop {
  background-color: transparent;
  background-image: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
  text-shadow: none;
  icon-shadow: none;
  color: @theme_fg_color_dis;
  border-color: rgba(0, 0, 0, 0.5);
  icon-shadow: none;
  box-shadow: none; 
}
.osd .spinbutton .button:insensitive {
  background-color: transparent;
  background-image: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0);
  text-shadow: none;
  icon-shadow: none;
  color: rgba(145, 148, 148, 0.3);
  border-color: rgba(0, 0, 0, 0.5);
  icon-shadow: none;
  box-shadow: none; 
}
.osd .spinbutton .button:last-child {
  border-radius: 0 3px 3px 0; 
}
.osd .spinbutton .button:dir(rtl):first-child {
    border-radius: 3px 0 0 3px; 
}
.spinbutton.vertical .button, 
.spinbutton.vertical:dir(rtl) .button {
  padding-top: 8px;
  padding-bottom: 8px; 
}
.spinbutton.vertical .button:first-child, 
.spinbutton.vertical:dir(rtl) .button:first-child {
  color: @theme_fg_color;
  outline-color: rgba(238, 238, 236, 0.3);
  border-color: rgba(27, 31, 32, 0.3);
  background-image: linear-gradient(to bottom, #454c4c, #393f3f 40%, #2d3232);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.81176);
  icon-shadow: 0 -1px rgba(0, 0, 0, 0.81176);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1); 
}
.spinbutton.vertical .button:first-child:active, 
.spinbutton.vertical:dir(rtl) .button:first-child:active {
  color: @theme_fg_color;
  outline-color: rgba(238, 238, 236, 0.3);
  border-color: rgba(27, 31, 32, 0.3);
  background-color: rgba(0, 0, 0, 0.1);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.89176);
  icon-shadow: 0 -1px rgba(0, 0, 0, 0.89176);
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.07), inset 0 2px 1px -2px rgba(0, 0, 0, 0.6); 
}
.spinbutton.vertical .button:first-child:hover, 
.spinbutton.vertical:dir(rtl) .button:first-child:hover {
  color: @theme_fg_color;
  outline-color: rgba(238, 238, 236, 0.3);
  border-color: @border_normal;
  background-image: linear-gradient(to bottom, #5b6464, #434a4a 40%, #393f3f);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.77976);
  icon-shadow: 0 -1px rgba(0, 0, 0, 0.77976);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1); 
}
.spinbutton.vertical .button:first-child:insensitive, 
.spinbutton.vertical:dir(rtl) .button:first-child:insensitive {
  color: @theme_fg_color_dis;
  border-color: @border_normal;
  background-color: transparent;
  text-shadow: none;
  icon-shadow: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0); 
}
.spinbutton.vertical .button:first-child:insensitive > .label, 
.spinbutton.vertical .header-bar .button.titlebutton:first-child:insensitive > .label,
.spinbutton.vertical .titlebar .button.titlebutton:first-child:insensitive > .label, 
.spinbutton.vertical:dir(rtl) .button:first-child:insensitive > .label, 
.spinbutton.vertical:dir(rtl) .header-bar .button.titlebutton:first-child:insensitive > .label,
.spinbutton.vertical:dir(rtl) .titlebar .button.titlebutton:first-child:insensitive > .label {
  color: inherit; 
}
.spinbutton.vertical .button:first-child:backdrop, 
.spinbutton.vertical:dir(rtl) .button:first-child:backdrop {
  color: @theme_fg_color;
  text-shadow: none;
  icon-shadow: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0); 
}
.spinbutton.vertical .button:last-child, 
.spinbutton.vertical:dir(rtl) .button:last-child {
  color: @theme_fg_color;
  outline-color: rgba(238, 238, 236, 0.3);
  border-color: @border_normal;
  background-image: linear-gradient(to bottom, #454c4c, #393f3f 40%, #2d3232);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.81176);
  icon-shadow: 0 -1px rgba(0, 0, 0, 0.81176);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px rgba(238, 238, 236, 0.1); 
}
.spinbutton.vertical .button:last-child:active, 
.spinbutton.vertical:dir(rtl) .button:last-child:active {
  color: @theme_fg_color;
  outline-color: rgba(238, 238, 236, 0.3);
  border-color: @border_normal;
  background-color: rgba(0, 0, 0, 0.1);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.89176);
  icon-shadow: 0 -1px rgba(0, 0, 0, 0.89176);
  box-shadow: inset 0 1px rgba(0, 0, 0, 0.07), inset 0 2px 1px -2px rgba(0, 0, 0, 0.6), 0 1px rgba(238, 238, 236, 0.1); 
}
.spinbutton.vertical .button:last-child:hover, 
.spinbutton.vertical:dir(rtl) .button:last-child:hover {
  color: @theme_fg_color;
  outline-color: rgba(238, 238, 236, 0.3);
  border-color: @border_normal;
  background-image: linear-gradient(to bottom, #5b6464, #434a4a 40%, #393f3f);
  text-shadow: 0 -1px rgba(0, 0, 0, 0.77976);
  icon-shadow: 0 -1px rgba(0, 0, 0, 0.77976);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1), 0 1px rgba(238, 238, 236, 0.1); 
}
.spinbutton.vertical .button:last-child:insensitive, 
.spinbutton.vertical:dir(rtl) .button:last-child:insensitive {
  color: @theme_fg_color_dis;
  border-color: @border_normal;
  background-color: transparent;
  text-shadow: none;
  icon-shadow: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0.1); 
}
.spinbutton.vertical .button:last-child:insensitive > .label, 
.spinbutton.vertical .header-bar .button.titlebutton:last-child:insensitive > .label,
.spinbutton.vertical .titlebar .button.titlebutton:last-child:insensitive > .label, 
.spinbutton.vertical:dir(rtl) .button:last-child:insensitive > .label, 
.spinbutton.vertical:dir(rtl) .header-bar .button.titlebutton:last-child:insensitive > .label,
.spinbutton.vertical:dir(rtl) .titlebar .button.titlebutton:last-child:insensitive > .label {
  color: inherit; 
}
.spinbutton.vertical .button:last-child:backdrop, 
.spinbutton.vertical:dir(rtl) .button:last-child:backdrop {
  color: @theme_fg_color;
  text-shadow: none;
  icon-shadow: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0); 
}
.spinbutton.vertical .button:backdrop:insensitive, .spinbutton.vertical:dir(rtl) .button:backdrop:insensitive {
  color: @theme_fg_color_dis;
  background-color: transparent;
  text-shadow: none;
  icon-shadow: none;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0), 0 1px rgba(238, 238, 236, 0); 
}
.spinbutton.vertical .button:backdrop:insensitive > .label, 
.spinbutton.vertical .header-bar .button.titlebutton:backdrop:insensitive > .label,
.spinbutton.vertical .titlebar .button.titlebutton:backdrop:insensitive > .label, 
.spinbutton.vertical:dir(rtl) .button:backdrop:insensitive > .label, 
.spinbutton.vertical:dir(rtl) .header-bar .button.titlebutton:backdrop:insensitive > .label,
.spinbutton.vertical:dir(rtl) .titlebar .button.titlebutton:backdrop:insensitive > .label {
  color: inherit; 
}
.spinbutton.vertical.entry, 
.spinbutton.vertical:dir(rtl).entry {
  border-radius: 0;
  padding-left: 3px;
  padding-right: 3px; 
}
.spinbutton.vertical .button:first-child, 
.spinbutton.vertical:dir(rtl) .button:first-child, 
.spinbutton.vertical .button:first-child:active, 
.spinbutton.vertical:dir(rtl) .button:first-child:active, 
.spinbutton.vertical .button:first-child:hover, 
.spinbutton.vertical:dir(rtl) .button:first-child:hover, 
.spinbutton.vertical .button:first-child:insensitive, 
.spinbutton.vertical:dir(rtl) .button:first-child:insensitive, 
.spinbutton.vertical .button:first-child:backdrop, 
.spinbutton.vertical:dir(rtl) .button:first-child:backdrop, 
.spinbutton.vertical:dir(rtl) .button:first-child, 
.spinbutton.vertical:dir(rtl) .button:first-child:active, 
.spinbutton.vertical:dir(rtl) .button:first-child:hover, 
.spinbutton.vertical:dir(rtl) .button:first-child:insensitive, 
.spinbutton.vertical:dir(rtl) .button:first-child:backdrop {
  border-radius: 3px 3px 0 0;
  border-style: solid solid none solid; 
}
.spinbutton.vertical .button:last-child, 
.spinbutton.vertical:dir(rtl) .button:last-child, 
.spinbutton.vertical .button:last-child:active, 
.spinbutton.vertical:dir(rtl) .button:last-child:active, 
.spinbutton.vertical .button:last-child:hover, 
.spinbutton.vertical:dir(rtl) .button:last-child:hover, 
.spinbutton.vertical .button:last-child:insensitive, 
.spinbutton.vertical:dir(rtl) .button:last-child:insensitive, 
.spinbutton.vertical .button:last-child:backdrop, 
.spinbutton.vertical:dir(rtl) .button:last-child:backdrop, 
.spinbutton.vertical:dir(rtl) .button:last-child, 
.spinbutton.vertical:dir(rtl) .button:last-child:active, 
.spinbutton.vertical:dir(rtl) .button:last-child:hover, 
.spinbutton.vertical:dir(rtl) .button:last-child:insensitive, 
.spinbutton.vertical:dir(rtl) .button:last-child:backdrop {
  border-radius: 0 0 3px 3px;
  border-style: none solid solid solid; 
}


/***************************************************************************************************
 * ComboBoxes *
 **************************************************************************************************/
combobox arrow {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}

GtkComboBox {
    -GtkComboBox-arrow-scaling: 0.5;
    -GtkComboBox-shadow-type: none;
    /*box-shadow: 0 1px rgba(238, 238, 236, 0.1);
    text-shadow: 0 -1px rgba(0, 0, 0, 0.81176);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.81176);*/
}
GtkComboBox > .button,
.header-bar GtkComboBox > .button.titlebutton,
.titlebar GtkComboBox > .button.titlebutton {
    padding-top: 3px;
    padding-bottom: 4px;
}
GtkComboBox:insensitive {
    text-shadow: none;
    icon-shadow: none;
}
GtkComboBox:backdrop {
    text-shadow: none;
    icon-shadow: none;
}
GtkComboBox .menuitem {
    text-shadow: none;
}
GtkComboBox .separator.vertical,
GtkComboBox GtkPlacesSidebar.sidebar .view .vertical.separator,
GtkPlacesSidebar.sidebar .view GtkComboBox .vertical.separator {
    -GtkWidget-wide-separators: true;
}


/****************
 * content view *
 ****************/
 
.content-view.view {
    background-color: @content_view_bg;
}

.content-view.view:insensitive {
}

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

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

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

/***************************************************************************************************
 * Toolbars *
 **************************************************************************************************/
.inline-toolbar,
searchbar,
toolbar,
.toolbar,
.location-bar,
.search-bar,
.location-bar {
    -GtkWidget-window-dragging: true;
    padding: 4px;
    border-top: 1px solid @border_box;
    background-color: @theme_base_color;
}

.primary-toolbar {
    border-bottom: 1px solid @border_box;
    border-top: 1px solid @border_box;
}

toolbar {
    padding: 4px 3px 3px 4px;
}
.osd toolbar {
    background-color: transparent;
}
toolbar.osd {
    padding: 13px;
    border: none;
    border-radius: 5px;
    background-color: rgba(28, 31, 32, 0.7);
}
toolbar.osd.left,
toolbar.osd.right,
toolbar.osd.top,
toolbar.osd.bottom {
    border-radius: 0;
}
toolbar.horizontal separator {
    margin: 0 7px 1px 6px;
}
toolbar.vertical separator {
    margin: 6px 1px 7px 0;
}
toolbar:not(.inline-toolbar):not(.osd) switch,
toolbar:not(.inline-toolbar):not(.osd) scale,
toolbar:not(.inline-toolbar):not(.osd) entry,
toolbar:not(.inline-toolbar):not(.osd) spinbutton,
toolbar:not(.inline-toolbar):not(.osd) button {
    margin-right: 0px;
    margin-bottom: 1px;
}

.inline-toolbar {
    padding: 3px;
    border-width: 0 1px 1px;
    border-radius: 0  0 5px 5px; 
}

searchbar,
.search-bar,
.location-bar {
    border-width: 0 0 1px;
    padding: 3px; 
}

.inline-toolbar,
searchbar,
.location-bar {
    border-style: none;
    border-color: @border_normal;
    background-color: @inline_bg;
}
.inline-toolbar:backdrop,
searchbar:backdrop,
.location-bar:backdrop,
.search-bar:backdrop,
.location-bar:backdrop {
    border-color: @unfocused_borders;
    background-color: @inline_bg;
    box-shadow: none;
    transition: 200ms ease-out;
}

.inline-toolbar,
.search-bar,
.location-bar {
    border-style: solid;
}

/***************************************************************************************************
 * Header bars *
 **************************************************************************************************/
.titlebar:not(headerbar),
headerbar,
.titlebar,
.header-bar {
    color: @header_fg_color;
    padding: 2px 8px 2px 8px;
    border-width: 0px;
    border-radius: 0px;
    border-bottom: 1px solid @separator;
    background-image: linear-gradient(to bottom, @header_bg_a, @header_bg_b);
}
.titlebar:backdrop:not(headerbar),
headerbar:backdrop,
.titlebar:backdrop,
.header-bar:backdrop {
    background-image: linear-gradient(to bottom, @header_bg_a, @header_bg_b);
    transition: 200ms ease-out;
}
.titlebar:not(headerbar) .title,
headerbar .title,
.titlebar .title,
.header-bar .title {
    padding-left: 12px;
    padding-right: 12px;
    font-weight: bold;
    color: @header_fg_color;
}
headerbar label,
.titlebar .label,
.header-bar .label {
    color: @header_fg_color;
}
.titlebar:not(headerbar) .subtitle,
headerbar .subtitle,
.titlebar .subtitle,
.header-bar .subtitle {
    font-size: smaller;
    padding-left: 12px;
    padding-right: 12px;
    color: @header_fg_color_sub;
}
/* no need for selection mode style */
/*
.selection-mode .titlebar:not(headerbar),
headerbar.selection-mode,
.selection-mode headerbar,
.titlebar.selection-mode,
.header-bar.selection-mode {
    color: @header_fg_color;
    border-color: @button_border_sugg;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.5);
    background-image: linear-gradient(to bottom, @button_bg_sugg_a, @button_bg_sugg_c);
    box-shadow: inset 0 1px alpha(@theme_accent_color, 0.5);
}
.selection-mode.titlebar:backdrop:not(headerbar),
headerbar.selection-mode:backdrop,
.titlebar.selection-mode:backdrop,
.header-bar.selection-mode:backdrop {
    background-color: @button_bg_sugg_b;
    box-shadow: inset 0 1px alpha(@theme_accent_color, 0.4);
}
.selection-mode.titlebar:not(headerbar) button,
headerbar.selection-mode button,
.header-bar.selection-mode .titlebutton.button,
.titlebar.selection-mode .titlebutton.button,
.titlebar.selection-mode .button,
.header-bar.selection-mode .button {
    color: @button_fg_sugg_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_sugg;
    background-image: linear-gradient(to bottom, @button_bg_sugg_a, @button_bg_sugg_b 40%, @button_bg_sugg_c);
    text-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
.selection-mode.titlebar:not(headerbar) button.flat,
headerbar.selection-mode button.flat,
.titlebar.selection-mode .button.flat,
.titlebar.selection-mode .titlebutton.button,
.header-bar.selection-mode .button.flat,
.header-bar.selection-mode .titlebutton.button {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}
.selection-mode.titlebar:not(headerbar) button:hover,
headerbar.selection-mode button:hover,
.titlebar.selection-mode .button:hover,
.header-bar.selection-mode .button:hover {
    color: @button_fg_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_sugg;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.65553);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.65553);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @button_bg_sugg_a_hov, @button_bg_sugg_b_hov 40%, @button_bg_sugg_c_hov);
}
.selection-mode.titlebar:not(headerbar) button:active,
.selection-mode.titlebar:not(headerbar) button:checked,
headerbar.selection-mode button:active,
headerbar.selection-mode button:checked,
.titlebar.selection-mode .button:active,
.titlebar.selection-mode .button:checked,
.header-bar.selection-mode .button:active,
.header-bar.selection-mode .button:checked {
    color: @button_fg_color;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat,
.selection-mode.titlebar:not(headerbar) button:backdrop,
headerbar.selection-mode button:backdrop.flat,
headerbar.selection-mode button:backdrop,
.header-bar.selection-mode .titlebutton.button:backdrop,
.titlebar.selection-mode .titlebutton.button:backdrop,
.titlebar.selection-mode .button:backdrop,
.titlebar.selection-mode .button.flat:backdrop,
.titlebar.selection-mode .titlebutton.button:backdrop,
.header-bar.selection-mode .button:backdrop,
.header-bar.selection-mode .button.flat:backdrop,
.header-bar.selection-mode .titlebutton.button:backdrop {
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_b;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border-color: @button_border_sugg;
    color: @theme_fg_color;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat label,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat,
.selection-mode.titlebar:not(headerbar) button:backdrop label,
.selection-mode.titlebar:not(headerbar) button:backdrop,
headerbar.selection-mode button:backdrop.flat label,
headerbar.selection-mode button:backdrop.flat,
headerbar.selection-mode button:backdrop label,
headerbar.selection-mode button:backdrop {
    color: @theme_fg_color;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:active,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:checked,
.selection-mode.titlebar:not(headerbar) button:backdrop:active,
.selection-mode.titlebar:not(headerbar) button:backdrop:checked,
headerbar.selection-mode button:backdrop.flat:active,
headerbar.selection-mode button:backdrop.flat:checked,
headerbar.selection-mode button:backdrop:active,
headerbar.selection-mode button:backdrop:checked,
.titlebar.selection-mode .button:backdrop:active,
.titlebar.selection-mode .button:backdrop:checked,
.titlebar.selection-mode .button.flat:backdrop:active,
.titlebar.selection-mode .titlebutton.button:backdrop:active,
.titlebar.selection-mode .button.flat:backdrop:checked,
.titlebar.selection-mode .titlebutton.button:backdrop:checked,
.header-bar.selection-mode .button:backdrop:active,
.header-bar.selection-mode .button:backdrop:checked,
.header-bar.selection-mode .button.flat:backdrop:active,
.header-bar.selection-mode .titlebutton.button:backdrop:active,
.header-bar.selection-mode .button.flat:backdrop:checked,
.header-bar.selection-mode .titlebutton.button:backdrop:checked {
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border-color: @button_border_sugg;
    color: @theme_fg_color;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:active label,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:active,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:checked label,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:checked,
.selection-mode.titlebar:not(headerbar) button:backdrop:active label,
.selection-mode.titlebar:not(headerbar) button:backdrop:active,
.selection-mode.titlebar:not(headerbar) button:backdrop:checked label,
.selection-mode.titlebar:not(headerbar) button:backdrop:checked,
headerbar.selection-mode button:backdrop.flat:active label,
headerbar.selection-mode button:backdrop.flat:active,
headerbar.selection-mode button:backdrop.flat:checked label,
headerbar.selection-mode button:backdrop.flat:checked,
headerbar.selection-mode button:backdrop:active label,
headerbar.selection-mode button:backdrop:active,
headerbar.selection-mode button:backdrop:checked label,
headerbar.selection-mode button:backdrop:checked {
    color: @theme_fg_color;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive,
headerbar.selection-mode button:backdrop.flat:insensitive,
headerbar.selection-mode button:backdrop:insensitive,
.titlebar.selection-mode .button:backdrop:insensitive,
.titlebar.selection-mode .button.flat:backdrop:insensitive,
.titlebar.selection-mode .titlebutton.button:backdrop:insensitive,
.header-bar.selection-mode .button:backdrop:insensitive,
.header-bar.selection-mode .button.flat:backdrop:insensitive,
.header-bar.selection-mode .titlebutton.button:backdrop:insensitive {
    background-color: @button_bg_sugg_flt;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border-color: @button_border_sugg;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive label,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive label,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive,
headerbar.selection-mode button:backdrop.flat:insensitive label,
headerbar.selection-mode button:backdrop.flat:insensitive,
headerbar.selection-mode button:backdrop:insensitive label,
headerbar.selection-mode button:backdrop:insensitive,
.titlebar.selection-mode .button:backdrop:insensitive > .label,
.titlebar.selection-mode .header-bar .button.titlebutton:backdrop:insensitive > .label,
.titlebar.selection-mode .button.flat:backdrop:insensitive > .label,
.titlebar.selection-mode .header-bar .titlebutton.button:backdrop:insensitive > .label,
.titlebar.selection-mode .titlebutton.button:backdrop:insensitive > .label,
.header-bar.selection-mode .button:backdrop:insensitive > .label,
.header-bar.selection-mode .titlebar .button.titlebutton:backdrop:insensitive > .label,
.header-bar.selection-mode .button.flat:backdrop:insensitive > .label,
.header-bar.selection-mode .titlebutton.button:backdrop:insensitive > .label,
.header-bar.selection-mode .titlebar .titlebutton.button:backdrop:insensitive > .label {
    color: @theme_accent_color;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive:active,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive:checked,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive:active,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive:checked,
headerbar.selection-mode button:backdrop.flat:insensitive:active,
headerbar.selection-mode button:backdrop.flat:insensitive:checked,
headerbar.selection-mode button:backdrop:insensitive:active,
headerbar.selection-mode button:backdrop:insensitive:checked,
.titlebar.selection-mode .button:backdrop:insensitive:active,
.titlebar.selection-mode .button:backdrop:insensitive:checked,
.titlebar.selection-mode .button.flat:backdrop:insensitive:active,
.titlebar.selection-mode .titlebutton.button:backdrop:insensitive:active,
.titlebar.selection-mode .button.flat:backdrop:insensitive:checked,
.titlebar.selection-mode .titlebutton.button:backdrop:insensitive:checked,
.header-bar.selection-mode .button:backdrop:insensitive:active,
.header-bar.selection-mode .button:backdrop:insensitive:checked,
.header-bar.selection-mode .button.flat:backdrop:insensitive:active,
.header-bar.selection-mode .titlebutton.button:backdrop:insensitive:active,
.header-bar.selection-mode .button.flat:backdrop:insensitive:checked,
.header-bar.selection-mode .titlebutton.button:backdrop:insensitive:checked {
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border-color: @button_border_sugg;
}
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive:active label,
.selection-mode.titlebar:not(headerbar) button:backdrop.flat:insensitive:checked label,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive:active label,
.selection-mode.titlebar:not(headerbar) button:backdrop:insensitive:checked label,
headerbar.selection-mode button:backdrop.flat:insensitive:active label,
headerbar.selection-mode button:backdrop.flat:insensitive:checked label,
headerbar.selection-mode button:backdrop:insensitive:active label,
headerbar.selection-mode button:backdrop:insensitive:checked label,
.titlebar.selection-mode .button:backdrop:insensitive:active > .label,
.titlebar.selection-mode .header-bar .button.titlebutton:backdrop:insensitive:active > .label,
.titlebar.selection-mode .button:backdrop:insensitive:checked > .label,
.titlebar.selection-mode .header-bar .button.titlebutton:backdrop:insensitive:checked > .label,
.titlebar.selection-mode .button.flat:backdrop:insensitive:active > .label,
.titlebar.selection-mode .header-bar .titlebutton.button:backdrop:insensitive:active > .label,
.titlebar.selection-mode .titlebutton.button:backdrop:insensitive:active > .label,
.titlebar.selection-mode .button.flat:backdrop:insensitive:checked > .label,
.titlebar.selection-mode .header-bar .titlebutton.button:backdrop:insensitive:checked > .label,
.titlebar.selection-mode .titlebutton.button:backdrop:insensitive:checked > .label,
.header-bar.selection-mode .button:backdrop:insensitive:active > .label,
.header-bar.selection-mode .titlebar .button.titlebutton:backdrop:insensitive:active > .label,
.header-bar.selection-mode .button:backdrop:insensitive:checked > .label,
.header-bar.selection-mode .titlebar .button.titlebutton:backdrop:insensitive:checked > .label,
.header-bar.selection-mode .button.flat:backdrop:insensitive:active > .label,
.header-bar.selection-mode .titlebutton.button:backdrop:insensitive:active > .label,
.header-bar.selection-mode .titlebar .titlebutton.button:backdrop:insensitive:active > .label,
.header-bar.selection-mode .button.flat:backdrop:insensitive:checked > .label,
.header-bar.selection-mode .titlebutton.button:backdrop:insensitive:checked > .label,
.header-bar.selection-mode .titlebar .titlebutton.button:backdrop:insensitive:checked > .label {
    color: @theme_accent_color;
}
.selection-mode.titlebar:not(headerbar) button.flat:backdrop,
.selection-mode.titlebar:not(headerbar) button.flat:insensitive,
.selection-mode.titlebar:not(headerbar) button.flat:backdrop:insensitive,
headerbar.selection-mode button.flat:backdrop,
headerbar.selection-mode button.flat:insensitive,
headerbar.selection-mode button.flat:backdrop:insensitive,
.titlebar.selection-mode .button.flat:backdrop,
.titlebar.selection-mode .titlebutton.button:backdrop,
.titlebar.selection-mode .button.flat:insensitive,
.titlebar.selection-mode .titlebutton.button:insensitive,
.titlebar.selection-mode .button.flat:insensitive:backdrop,
.titlebar.selection-mode .titlebutton.button:insensitive:backdrop,
.header-bar.selection-mode .button.flat:backdrop,
.header-bar.selection-mode .titlebutton.button:backdrop,
.header-bar.selection-mode .button.flat:insensitive,
.header-bar.selection-mode .titlebutton.button:insensitive,
.header-bar.selection-mode .button.flat:insensitive:backdrop,
.header-bar.selection-mode .titlebutton.button:insensitive:backdrop {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}
.selection-mode.titlebar:not(headerbar) button:insensitive,
.selection-mode.titlebar:not(headerbar) button:insensitive label,
headerbar.selection-mode button:insensitive,
.titlebar.selection-mode .button:insensitive,
headerbar.selection-mode button:insensitive label,
.header-bar.selection-mode .button:insensitive {
    color: @theme_fg_color;
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_flt;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.selection-mode.titlebar:not(headerbar) button:insensitive:active,
.selection-mode.titlebar:not(headerbar) button:insensitive:checked,
headerbar.selection-mode button:insensitive:active,
headerbar.selection-mode button:insensitive:checked,
.titlebar.selection-mode .button:insensitive:active,
.titlebar.selection-mode .button:insensitive:checked,
.header-bar.selection-mode .button:insensitive:active,
.header-bar.selection-mode .button:insensitive:checked {
    border-color: @button_border_sugg;
    background-color: @button_bg_sugg_flt;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.selection-mode.titlebar:not(headerbar) button:insensitive:active label,
.selection-mode.titlebar:not(headerbar) button:insensitive:active,
.selection-mode.titlebar:not(headerbar) button:insensitive:checked label,
.selection-mode.titlebar:not(headerbar) button:insensitive:checked,
headerbar.selection-mode button:insensitive:active label,
headerbar.selection-mode button:insensitive:active,
headerbar.selection-mode button:insensitive:checked label,
headerbar.selection-mode button:insensitive:checked,
.titlebar.selection-mode .button:insensitive:active > .label,
.titlebar.selection-mode .header-bar .button.titlebutton:insensitive:active > .label,
.titlebar.selection-mode .button:insensitive:checked > .label,
.titlebar.selection-mode .header-bar .button.titlebutton:insensitive:checked > .label,
.header-bar.selection-mode .button:insensitive:active > .label,
.header-bar.selection-mode .titlebar .button.titlebutton:insensitive:active > .label,
.header-bar.selection-mode .button:insensitive:checked > .label,
.header-bar.selection-mode .titlebar .button.titlebutton:insensitive:checked > .label {
    color: @theme_fg_color;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action,
headerbar.selection-mode button.suggested-action,
.titlebar.selection-mode .button.suggested-action,
.header-bar.selection-mode .button.suggested-action {
    color: @button_fg_sugg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @button_border;
    background-image: linear-gradient(to bottom, @button_bg_sugg_a, @button_bg_sugg_b 40%, @button_bg_sugg_c);
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:hover,
headerbar.selection-mode button.suggested-action:hover,
.titlebar.selection-mode .button.suggested-action:hover,
.header-bar.selection-mode .button.suggested-action:hover {
    color: @button_fg_sugg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    text-shadow: none;
    icon-shadow: 0 -1px alpha(@button_fg_shadow, 0.7);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @button_bg_sugg_a_hov, @button_bg_sugg_a 40%, @button_bg_sugg_b);
    border-color: @button_border_sugg;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:active,
headerbar.selection-mode button.suggested-action:active,
.titlebar.selection-mode .button.suggested-action:active,
.header-bar.selection-mode .button.suggested-action:active {
    color: @button_fg_sugg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    background-image: linear-gradient(to bottom, @button_bg_sugg_a_hov, @button_bg_sugg_a 40%, @button_bg_sugg_b);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    border-color: @button_border_sugg;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:insensitive,
headerbar.selection-mode button.suggested-action:insensitive,
headerbar button.suggested-action:insensitive,
.titlebar.selection-mode .button.suggested-action:insensitive,
.header-bar.selection-mode .button.suggested-action:insensitive {
    background-color: @titlebutton_bg_a_dis;
    border-color: @titlebutton_border;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:insensitive label,
.selection-mode.titlebar:not(headerbar) button.suggested-action:insensitive,
headerbar.selection-mode button.suggested-action:insensitive label,
headerbar.selection-mode button.suggested-action:insensitive,
.titlebar.selection-mode .button.suggested-action:insensitive > .label,
.titlebar.selection-mode .header-bar .suggested-action.button.titlebutton:insensitive > .label,
.header-bar.selection-mode .button.suggested-action:insensitive > .label,
.header-bar.selection-mode .titlebar .suggested-action.button.titlebutton:insensitive > .label {
    color: @theme_fg_color_dis;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:backdrop,
headerbar button.suggested-action:backdrop,
headerbar.selection-mode button.suggested-action:backdrop,
.titlebar.selection-mode .button.suggested-action:backdrop,
.header-bar.selection-mode .button.suggested-action:backdrop {
    background-color: @button_bg_sugg_flt;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border-color: @button_border_sugg;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:backdrop label,
.selection-mode.titlebar:not(headerbar) button.suggested-action:backdrop,
headerbar.selection-mode button.suggested-action:backdrop label,
headerbar.selection-mode button.suggested-action:backdrop {
    color: @theme_fg_color_dis;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:backdrop:insensitive,
headerbar button.suggested-action:backdrop:insensitive,
headerbar.selection-mode button.suggested-action:backdrop:insensitive,
.titlebar.selection-mode .button.suggested-action:backdrop:insensitive,
.header-bar.selection-mode .button.suggested-action:backdrop:insensitive {
    background-color: @titlebutton_bg_a_dis;
    border-color: @titlebutton_border;
}
.selection-mode.titlebar:not(headerbar) button.suggested-action:backdrop:insensitive label,
.selection-mode.titlebar:not(headerbar) button.suggested-action:backdrop:insensitive,
headerbar.selection-mode button.suggested-action:backdrop:insensitive label,
headerbar.selection-mode button.suggested-action:backdrop:insensitive,
.titlebar.selection-mode .button.suggested-action:backdrop:insensitive > .label,
.titlebar.selection-mode .header-bar .suggested-action.button.titlebutton:backdrop:insensitive > .label,
.header-bar.selection-mode .button.suggested-action:backdrop:insensitive > .label,
.header-bar.selection-mode .titlebar .suggested-action.button.titlebutton:backdrop:insensitive > .label {
    color: @button_fg_dis;
}
.selection-mode.titlebar:not(headerbar) .selection-menu:backdrop,
.selection-mode.titlebar:not(headerbar) .selection-menu,
headerbar.selection-mode .selection-menu:backdrop,
headerbar.selection-mode .selection-menu,
.titlebar.selection-mode .selection-menu,
.titlebar.selection-mode .selection-menu:backdrop,
.header-bar.selection-mode .selection-menu,
.header-bar.selection-mode .selection-menu:backdrop {
    border-color: alpha(@theme_accent_color, 0);
    background-color: alpha(@theme_accent_color, 0);
    background-image: none;
    box-shadow: none;
    padding-left: 10px;
    padding-right: 10px; 
}
.selection-mode.titlebar:not(headerbar) .selection-menu:backdrop GtkArrow,
.selection-mode.titlebar:not(headerbar) .selection-menu GtkArrow,
headerbar.selection-mode .selection-menu:backdrop GtkArrow,
headerbar.selection-mode .selection-menu GtkArrow {
    -GtkArrow-arrow-scaling: 1;
}
.selection-mode.titlebar:not(headerbar) .selection-menu:backdrop .arrow,
.selection-mode.titlebar:not(headerbar) .selection-menu .arrow,
headerbar.selection-mode .selection-menu:backdrop .arrow,
headerbar.selection-mode .selection-menu .arrow {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
    color: rgba(255, 255, 255, 0.5);
    icon-shadow: none;
}*/
.tiled .titlebar:backdrop:not(headerbar),
.tiled .titlebar:not(headerbar),
.maximized .titlebar:backdrop:not(headerbar),
.maximized .titlebar:not(headerbar),
.tiled headerbar:backdrop,
.tiled headerbar,
.maximized headerbar:backdrop,
.maximized headerbar {
    border-radius: 0;
    background: linear-gradient(to bottom, @header_bg_b, @header_bg_b);
}
.default-decoration.titlebar:not(headerbar) button.titlebutton,
headerbar.default-decoration button.titlebutton {
    margin: 0;
    padding: 0;
}
.solid-csd .titlebar:backdrop:dir(rtl):not(headerbar),
.solid-csd .titlebar:backdrop:dir(ltr):not(headerbar),
.solid-csd .titlebar:dir(rtl):not(headerbar),
.solid-csd .titlebar:dir(ltr):not(headerbar),
.solid-csd headerbar:backdrop:dir(rtl),
.solid-csd headerbar:backdrop:dir(ltr),
.solid-csd headerbar:dir(rtl),
.solid-csd headerbar:dir(ltr) {
    margin-left: -1px;
    margin-right: -1px;
    margin-top: -1px;
    border-radius: 0;
    box-shadow: none;
}

headerbar entry,
headerbar spinbutton,
headerbar button {
    margin-top: 6px;
    margin-bottom: 6px;
}
headerbar separator {
    margin-top: 0px;
    margin-bottom: 0px;
    color: @header_separator;
    background-color: @header_separator; 
    border-color: @header_separator; 
}
headerbar switch {
    margin-top: 9px;
    margin-bottom: 9px;
}

.background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar:backdrop,
.background:not(.tiled):not(.maximized):not(.solid-csd) .titlebar {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

window:not(.tiled):not(.maximized):not(.solid-csd) separator:first-child + headerbar:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) separator:first-child + headerbar,
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:first-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:first-child {
    border-top-left-radius: 6px;
}

window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:last-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) headerbar:last-child {
    border-top-right-radius: 6px;
}
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:first-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:first-child,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:last-child:backdrop,
window:not(.tiled):not(.maximized):not(.solid-csd) stack headerbar:last-child {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}

window.csd > .titlebar:not(headerbar) {
    padding: 0;
    background-color: transparent;
    background-image: none;
    border-style: none;
    border-color: transparent;
    box-shadow: none;
}
.titlebar:not(headerbar) > separator {
    background-color: @separator;
}

.tiled .default-decoration.titlebar:not(headerbar),
.maximized .default-decoration.titlebar:not(headerbar),
.fullscreen .default-decoration.titlebar:not(headerbar),
.tiled headerbar.default-decoration,
.maximized headerbar.default-decoration,
.fullscreen headerbar.default-decoration {
    box-shadow: none;
}

.default-decoration.titlebar:not(headerbar),
.csd .default-decoration.titlebar:not(headerbar),
.default-decoration.titlebar:backdrop:not(headerbar),
.csd .default-decoration.titlebar:backdrop:not(headerbar),
headerbar.default-decoration,
.csd headerbar.default-decoration,
headerbar.default-decoration:backdrop,
.csd headerbar.default-decoration:backdrop {
    box-shadow: none;
    border: none;
}

.titlebar.selection-mode .selection-menu GtkArrow,
.titlebar.selection-mode .selection-menu:backdrop GtkArrow,
.header-bar.selection-mode .selection-menu GtkArrow,
.header-bar.selection-mode .selection-menu:backdrop GtkArrow {
    -GtkArrow-arrow-scaling: 1;
}

.titlebar.selection-mode .selection-menu .arrow,
.header-bar.selection-mode .selection-menu .arrow {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
    color: rgba(255, 255, 255, 0.5);
    icon-shadow: none;
}

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

.titlebar.default-decoration,
.header-bar.default-decoration {
    padding: 4px;
}

.titlebar.default-decoration .button,
.header-bar.default-decoration .button {
    padding: 5px;
}



/***************************************************************************************************
 * Pathbars *
 **************************************************************************************************/
.path-bar {
    background-color: @pathbar_bg;
}
.path-bar button.text-button,
.path-bar button.image-button,
.path-bar button {
    padding-left: 4px;
    padding-right: 4px;
}
.path-bar button.text-button.image-button label {
    padding-left: 0;
    padding-right: 0;
}
.path-bar button.text-button.image-button label:last-child,
.path-bar button label:last-child {
    padding-right: 8px;
}
.path-bar button.text-button.image-button label:first-child,
.path-bar button label:first-child {
    padding-left: 8px;
}
.path-bar button image {
    padding-left: 4px;
    padding-right: 4px;
}
.path-bar button.slider-button {
    padding-left: 0;
    padding-right: 0;
}

.path-bar .button,
.path-bar .header-bar .button.titlebutton,
.header-bar .path-bar .button.titlebutton,
.path-bar .titlebar .button.titlebutton,
.titlebar .path-bar .button.titlebutton {
    padding: 5px 6px 6px;
}

.path-bar .button:first-child {
    padding-left: 8px;
}

.path-bar .button:last-child {
    padding-right: 8px;
}

.path-bar .button:only-child {
    padding-left: 12px;
    padding-right: 12px;
}

.path-bar .button .label:last-child {
    padding-left: 2px;
}

.path-bar .button .label:first-child {
    padding-right: 2px;
}

.path-bar .button .label:only-child {
    padding-right: 0;
    padding-left: 0;
}

.path-bar .button GtkImage,
.path-bar .header-bar .button.titlebutton GtkImage,
.header-bar .path-bar .button.titlebutton GtkImage,
.path-bar .titlebar .button.titlebutton GtkImage,
.titlebar .path-bar .button.titlebutton GtkImage {
    padding-top: 1px;
}

.path-bar-box button,
.path-bar-box button.text-button,
.path-bar-box button.image-button,
.path-bar-box button:backdrop,
.path-bar-box button:backdrop.text-button,
.path-bar-box button:backdrop.image-button {
    background-image: none;
    background-color: transparent;
    background: none;
    border-radius: 0;
    border-right-width: 1px;
    margin: 0px;
    /*border: none;*/
    box-shadow: none;
}

/* dim the icon when not checked */
.path-bar-box button:not(:checked) image {
    opacity: 0.8;
}

/* BEGIN workaround: hide slashes */
.path-bar-box label {
    opacity: 0.0;
}
.path-bar-box button label {
    opacity: 1.0;
}
/* END workaround */

.path-bar-box button,
.path-bar-box button:backdrop {
    border-right: 1px solid @pathbar_bdr;
    border-top-width: 0px;
    border-bottom-width: 0px;
    border-left-width: 0px;
    opacity: 1.0;
}

.path-bar-box button:hover,
.path-bar-box button:backdrop:hover {
    background: linear-gradient(to bottom, rgba(128,128,128,0.5), rgba(128,128,128,0.5));
    border-right: 1px solid @pathbar_bdr;
}

.path-bar-box {
  transition: background-color 200ms;
  border: 1px solid @pathbar_bdr_sub;
  border-radius: 3px;
  background: linear-gradient(to bottom, rgba(128,128,128,0.3), rgba(128,128,128,0.3));
}


/***************************************************************************************************
 * Tree Views *
 **************************************************************************************************/
treeview.view,
GtkTreeView.view {
    -GtkTreeView-horizontal-separator: 4;
    -GtkTreeView-grid-line-width: 1;
    -GtkTreeView-grid-line-pattern: '';
    -GtkTreeView-tree-line-width: 1;
    -GtkTreeView-tree-line-pattern: '';
    -GtkTreeView-expander-size: 16;
    border-left-color: @theme_bg_color;
    border-top-color: @theme_bg_color;
}
.sidebar treeview.view,
.sidebar GtkTreeView.view {
    padding-top: 2px;
    padding-bottom: 2px;
}

GtkTreeView.view:selected,
treeview.view:selected:focus,
treeview.view:selected {
    border-radius: 0;
    color: @treeview_fg_sel; 
}
GtkTreeView.view:selected,
GtkTreeView.view:backdrop:selected,
treeview.view:selected:backdrop,
treeview.view:selected {
    border-left-color: @view_border_sel;
    border-top-color: rgba(238, 238, 236, 0.1);
    color: @treeview_fg_sel; 
}
GtkTreeView.view:insensitive,
treeview.view:insensitive {
    color: @theme_fg_color_dis;
}
GtkTreeView.view:insensitive:selected,
treeview.view:insensitive:selected {
    color: @view_fg_sel
}
GtkTreeView.view:insensitive:selected:backdrop,
treeview.view:insensitive:selected:backdrop {
    color: @view_fg_sel
}
GtkTreeView.view:insensitive:backdrop,
treeview.view:insensitive:backdrop {
    color: @view_fg_dis;
}
treeview.view.separator {
    color: @theme_bg_color;
}
GtkTreeView.view.separator:backdrop,
treeview.view.separator:backdrop {
    color: rgba(51, 57, 59, 0.1);
}
GtkTreeView.view:backdrop,
treeview.view:backdrop {
    border-top: @theme_bg_color;
}
GtkTreeView.view.dnd {
    border-style: solid none;
    border-width: 1px;
    border-color: @view_fg_sel;
}
GtkTreeView.view.expander,
treeview.view.expander {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
    color: @view_fg;
}
GtkTreeView.view.expander:dir(rtl),
treeview.view.expander:dir(rtl) {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl");
}
GtkTreeView.view.expander:hover,
treeview.view.expander:hover {
    color: @theme_fg_color;
}
GtkTreeView.view.expander:selected,
treeview.view.expander:selected {
    color: @treeview_fg_sel;
}
GtkTreeView.view.expander:selected:hover,
treeview.view.expander:selected:hover {
    color: @treeview_fg_sel;
}
GtkTreeView.view.expander:selected:backdrop,
treeview.view.expander:selected:backdrop {
    color: @theme_fg_color_dis;
}
GtkTreeView.view.expander:checked,
treeview.view.expander:checked {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}
GtkTreeView.view.expander:backdrop,
treeview.view.expander:backdrop {
    color: @theme_fg_color_dis;
}
GtkTreeView.view.progressbar,
treeview.view.progressbar {
    color: #fff;
    border: 1px solid @prgbar_border;
    border-radius: 4px;
    background-image: linear-gradient(to bottom, @prgbar_bg_a, @prgbar_bg_b);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.15), 0 1px rgba(0, 0, 0, 0.1);
}
GtkTreeView.view.progressbar:selected,
treeview.view.progressbar:selected:focus,
treeview.view.progressbar:selected {
    border-radius: 4px;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(to bottom, @prgbar_bg_a, @prgbar_bg_b);
}
GtkTreeView.view.progressbar:selected:backdrop,
treeview.view.progressbar:selected:focus:backdrop,
treeview.view.progressbar:selected:backdrop {
    border-color:  @prgbar_border;
    background-color: @view_bg;
}
GtkTreeView.view.progressbar:backdrop,
treeview.view.progressbar:backdrop {
    border-color:  @prgbar_border;
    background-image: linear-gradient(to bottom, @prgbar_bg_a, @prgbar_bg_b);
    box-shadow: none;
}
GtkTreeView.view.trough,
treeview.view.trough {
    border: 1px solid alpha(@prgbar_trough, 0.6);
    background-color: alpha(@prgbar_trough, 0.4);
    border-radius: 4px;
}
GtkTreeView.view.trough:selected,
treeview.view.trough:selected:focus,
treeview.view.trough:selected {
    border: 1px solid rgba(30, 30, 30, 0.6);
    background-color: rgba(30, 30, 30, 0.4);
    border-radius: 4px;
}

column-header.button.dnd,
column-header .button.dnd,
column-header .header-bar .dnd.button.titlebutton,
.header-bar column-header .dnd.button.titlebutton,
column-header .titlebar .dnd.button.titlebutton,
.titlebar column-header .dnd.button.titlebutton,
column-header.button.dnd:active,
column-header.button.dnd:selected,
column-header.button.dnd:hover,
.header-bar column-header.dnd.button.titlebutton,
.titlebar column-header.dnd.button.titlebutton,
treeview.view button.dnd:active,
treeview.view button.dnd:selected,
treeview.view button.dnd:hover,
treeview.view button.dnd,
treeview.view header.button.dnd:active,
treeview.view header.button.dnd:selected,
treeview.view header.button.dnd:hover,
treeview.view header.button.dnd {
    padding: 0 6px;
    color: @button_fg_color;
    background-image: none;
    background-color: @button_bg_sugg_flt;
    border-style: none;
    border-radius: 0;
    box-shadow: inset 0 0 0 1px @button_fg_shadow;
    text-shadow: none;
    transition: none;
}
treeview.view acceleditor > label {
    background-color: @view_bg_acceleditor;
}

GtkTreeView.view .header .button,
GtkTreeView.view .header .button:hover,
GtkTreeView.view .header .button:active,
treeview.view header button,
treeview.view header button:hover,
treeview.view header button:active,
column-header .button,
column-header .header-bar .button.titlebutton,
.header-bar column-header .button.titlebutton,
column-header .titlebar .button.titlebutton,
.titlebar column-header .button.titlebutton {
    color: @treeview_fg;
    /*background-image: linear-gradient(to bottom, @treeview_bg_a, @treeview_bg_b);*/
    font-weight: bold;
    box-shadow: none;
    text-shadow: none;
    background-color: transparent;
    padding: 4px 5px;
    border-style: none solid solid none;
    border-color: @view_hdr_border;
    border-radius: 0;
}
GtkTreeView.view .header .button:hover,
treeview.view header button:hover,
column-header .button:hover,
column-header .header-bar .button.titlebutton:hover,
.header-bar column-header .button.titlebutton:hover,
column-header .titlebar .button.titlebutton:hover,
.titlebar column-header .button.titlebutton:hover {
    color: @button_fg_color;
    border-color: @view_hdr_border;
    box-shadow: none;
    transition: none;
}
GtkTreeView.view .header .button:active,
treeview.view header button:active,
column-header .button:active,
column-header .header-bar .button.titlebutton:active,
.header-bar column-header .button.titlebutton:active,
column-header .titlebar .button.titlebutton:active,
.titlebar column-header .button.titlebutton:active {
    color: @theme_fg_color;
    transition: none;
}
treeview.view header button:last-child:backdrop,
treeview.view header button:last-child,
column-header:last-child .button,
column-header:last-child .header-bar .button.titlebutton,
.header-bar column-header:last-child .button.titlebutton,
column-header:last-child .titlebar .button.titlebutton,
.titlebar column-header:last-child .button.titlebutton,
column-header:last-child .button:backdrop,
column-header:last-child.button,
.header-bar column-header.button.titlebutton:last-child,
.titlebar column-header.button.titlebutton:last-child,
column-header:last-child.button:backdrop {
    border-right-style: none;
}
GtkTreeView.view .header .button:insensitive,
treeview.view header button:insensitive,
column-header .button:insensitive,
column-header .header-bar .button.titlebutton:insensitive,
.header-bar column-header .button.titlebutton:insensitive,
column-header .titlebar .button.titlebutton:insensitive,
.titlebar column-header .button.titlebutton:insensitive {
    border-color: @view_hdr_border;
    background-image: none;
}
GtkTreeView.view .header .button:backdrop,
treeview.view header button:backdrop,
column-header .button:backdrop,
column-header .header-bar .button.titlebutton:backdrop,
.header-bar column-header .button.titlebutton:backdrop,
column-header .titlebar .button.titlebutton:backdrop,
.titlebar column-header .button.titlebutton:backdrop {
    color: @theme_fg_color_dis;
    border-color: @view_hdr_border;
    border-style: none solid solid none;
}
treeview.view header button:backdrop:insensitive,
column-header .button:backdrop:insensitive {
    border-color: @view_hdr_border;
    background-image: none;
}



/***************************************************************************************************
 * Menus *
 **************************************************************************************************/
menubar,
.menubar {
    -GtkWidget-window-dragging: true;
    padding: 0px;
    box-shadow: none;
    background-color: @menu_bg;
    color: @menuitem_fg_normal;
}
menubar *,
.menubar * {
    color: @menuitem_fg_normal;
}
menubar:backdrop,
.menubar:backdrop {
    background-color: @menu_bg;
}
.menu .menuitem,
.menubar > .menuitem,
menubar menuitem,
.menubar > menuitem {
    color: @menuitem_fg_normal;
    padding: 4px 8px;
    background-color: @menu_bg;
}
.menu .menuitem:hover,
.menu > .menuitem:hover,
.menubar > .menuitem:hover,
menubar menuitem:hover,
.menubar > menuitem:hover {
    background-color: @menuitem_bg_hover;
    color: @menuitem_fg_hover;
}
.menubar > .menuitem:hover,
menubar menuitem:hover,
.menubar > menuitem:hover {
   border-top-left-radius: 4px;
   border-top-right-radius: 4px;
}
.menu .menuitem:insensitive {
  color: @menuitem_fg_dis;
}
.menubar > .menuitem:insensitive, 
menubar menuitem:insensitive, 
.menubar > menuitem:insensitive {
  color: @menuitem_fg_dis;
  box-shadow: none;   
}

menu,
.menu,
.context-menu {
    margin: 4px;
    padding: 2px 1px;
    background-color: @menu_bg;
    border: 1px solid @border;
}
.csd menu,
.csd .menu,
.csd .context-menu {
    border: none; 
}
menu:backdrop,
.menu:backdrop,
.context-menu:backdrop {
    background-color: @menu_bg;
}
menu menuitem,
.menu menuitem,
.context-menu menuitem {
    color: @menuitem_fg_normal;
    padding: 4px 6px;
    text-shadow: none;
}
menu menuitem label,
.menu menuitem label {
    color: @menuitem_fg_normal;
}
menu menuitem:hover label,
.menu menuitem:hover label {
    color: @menuitem_fg_hover;
}
menu menuitem:hover,
.menu menuitem:hover,
.context-menu menuitem:hover {
    color: @menuitem_fg_hover; 
    background-color: @menuitem_bg_hover;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
}
menu menuitem:insensitive,
.menu menuitem:insensitive,
.context-menu menuitem:insensitive {
    color: @menuitem_fg_dis;
}
.menu .menuitem:insensitive:backdrop,
menu menuitem:insensitive:backdrop,
.menu menuitem:insensitive:backdrop,
.context-menu menuitem:insensitive:backdrop {
    color: @menuitem_fg_dis;
}
.menu .menuitem:backdrop,
.menu .menuitem:backdrop:hover,
menu menuitem:backdrop,
menu menuitem:backdrop:hover,
.menu menuitem:backdrop,
.menu menuitem:backdrop:hover,
.context-menu menuitem:backdrop,
.context-menu menuitem:backdrop:hover {
    color: @menuitem_fg_dis;
    background-color: transparent;
}
.menu .menuitem.arrow,
menu menuitem arrow:dir(ltr),
.menu menuitem arrow:dir(ltr),
.context-menu menuitem arrow:dir(ltr) {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
    margin-left: 10px;
}
.menu .menuitem.arrow:dir(rtl),
menu menuitem arrow:dir(rtl),
.menu menuitem arrow:dir(rtl),
.context-menu menuitem arrow:dir(rtl) {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl");
    margin-right: 10px;
}
menu menuitem label:dir(rtl),
menu menuitem label:dir(ltr),
.menu menuitem label:dir(rtl),
.menu menuitem label:dir(ltr),
.context-menu menuitem label:dir(rtl),
.context-menu menuitem label:dir(ltr) {
    color: inherit;
}
menu > arrow,
.menu > arrow,
.context-menu > arrow {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    padding: 4px;
    background-color: @menu_bdr;
    border-radius: 0;
}
menu > arrow.top,
.menu > arrow.top,
.context-menu > arrow.top {
    margin-top: -6px;
    border-bottom: 1px solid @menu_bdr;
    -gtk-icon-source: -gtk-icontheme("pan-up-symbolic");
}
menu > arrow.bottom,
.menu > arrow.bottom,
.context-menu > arrow.bottom {
    margin-bottom: -6px;
    border-top: 1px solid @menu_bdr;
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic"); }
menu > arrow:hover,
.menu > arrow:hover,
.context-menu > arrow:hover {
    background-color: @menu_bdr;
}
menu > arrow:backdrop,
.menu > arrow:backdrop,
.context-menu > arrow:backdrop {
    background-color: @menu_arr_dis;
}
menu > arrow:insensitive,
.menu > arrow:insensitive,
.context-menu > arrow:insensitive {
    color: transparent;
    background-color: transparent;
    border-color: transparent;
}

menuitem accelerator {
    color: alpha(currentColor,0.55);
}
menuitem check:dir(ltr),
menuitem radio:dir(ltr) {
    margin-right: 7px;
}
menuitem check:dir(rtl),
menuitem radio:dir(rtl) {
    margin-left: 7px;
}

menuitem separator,
menu separator,
.menuitem .separator,
.menu .separator {
    -GtkMenuItem-horizontal-padding: 0;
    border-top: 1px solid @menuitem_separator_a;
    background-color: @menuitem_separator_b;
    margin: 5px;
}


/***************************************************************************************************
 * Popovers   *
 **************************************************************************************************/
.popover,
popover.background {
    padding: 2px;
    border-radius: 5px;
    background-color: @popover;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    border: 1px solid @border_box;
}
.popover:backdrop,
.csd popover.background,
popover.background {
    border: 1px solid @border_box;
}
popover.background:backdrop {
    background-color: @popover;
    box-shadow: none;
}
.popover > .list,
.popover > .view,
.popover > .toolbar,
.popover > .inline-toolbar,
.popover > .search-bar,
.popover > .location-bar,
.popover.osd > .toolbar,
.popover.osd > .inline-toolbar,
.popover.osd > .search-bar,
.popover.osd > .location-bar,
popover.background > list,
popover.background > .view,
popover.background > iconview,
popover.background > toolbar {
    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;
    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 transparent;
    color: @theme_fg_color;
    background-color: @theme_bg_color_hov;
    background-image: none;
    color: @theme_fg_color;
    box-shadow: none;
}
.popover .button.flat:backdrop:hover,
.popover .button.flat:backdrop:active,
.popover .button.flat:backdrop:active:hover,
.popover .button.flat:backdrop:checked:hover {
    border: 1px solid transparent;
    background-color: @theme_bg_color_hov;
    background-image: none;
    color: @theme_fg_color;
    box-shadow: none;
}

.entry.cursor-handle,
.cursor-handle {
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    border-style: none;
}

.entry.cursor-handle.top,
.cursor-handle.top {
    -gtk-icon-source: -gtk-icontheme("selection-start-symbolic");
}

.entry.cursor-handle.bottom,
.cursor-handle.bottom {
    -gtk-icon-source: -gtk-icontheme("selection-end-symbolic");
}

.csd popover.background.touch-selection,
.csd popover.background.magnifier,
popover.background.touch-selection,
popover.background.magnifier {
    border: 1px solid rgba(255, 255, 255, 0.1);
}
popover.background separator {
    margin: 3px;
}
popover.background list separator {
    margin: 0px;
}

/***************************************************************************************************
 * Notebooks *
 **************************************************************************************************/
.notebook {
  padding: 0;
  background-color: @section_bg;
  -GtkNotebook-initial-gap: 10;
  -GtkNotebook-arrow-spacing: 5;
  -GtkNotebook-tab-curvature: 0;
  -GtkNotebook-tab-overlap: -8;
  -GtkNotebook-has-tab-gap: false;
  -GtkWidget-focus-padding: 0;
  -GtkWidget-focus-line-width: 0;
  transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94); 
}
.notebook:backdrop {
  background-color: @inline_bg; 
}
.notebook.frame {
  border: 1px solid @notebook_separator;
}
.notebook.header {
  background-color: @inline_bg;
}
.notebook.header.frame.top {
  border-top: 1px solid @notebook_separator 
}
.notebook.header.frame.bottom {
  border-bottom: 1px solid @notebook_separator 
}
.notebook.header.frame.right {
  border-left-width: 0; 
}
.notebook.header.frame.left {
  border-right-width: 0; 
}

.notebook tab {
  border-width: 0;
  border-style: solid;
  border-color: transparent;
  background-color: transparent;
  outline-offset: 0;
  color: @theme_fg_color; 
}
    
.notebook tab.top .label, 
.notebook tab.bottom .label,
.notebook tab {
  font-weight: bold;
}
.notebook tab.top, 
.notebook tab.bottom {
  padding: 8px;
  color: @theme_fg_color;
}
.notebook tab.top,
.notebook tab.bottom,
.notebook tab.top:backdrop,
.notebook tab.bottom:backdrop  {
  background-color: transparent;
  border-color: transparent; 
}
.notebook tab.top:active {
  border-bottom-color: @notebook_border_sel; 
}
.notebook tab.top:hover {
  border-bottom-color: @separator; 
}
.notebook tab.bottom:active {
  border-top-color: @notebook_border_sel; 
}
.notebook tab.bottom:hover {
  border-top-color: @separator; 
}
.notebook tab.left:active {
  border-right-color: @notebook_border_sel; 
}
.notebook tab.left:hover {
  border-right-color: @separator;
}
.notebook tab.right:active {
  border-left-color: @notebook_border_sel;
}
.notebook tab.right:hover {
  border-left-color: @separator; 
}
.notebook tab.top:active,
.notebook tab.top:backdrop:active  {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border; 
  border-top: 1px solid @notebook_border; 
  border-bottom-color: @notebook_border_sel;
}
.notebook tab.bottom:active,
.notebook tab.top:backdrop:active,
.notebook tab.bottom:backdrop:active  {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border; 
  border-bottom: 1px solid @notebook_border; 
  border-top-color: @notebook_border_sel;
}
.notebook tab.top:active:hover,
.notebook tab.top:backdrop:hover  {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border;
  border-top: 1px solid @notebook_border;
  border-bottom-color: @notebook_border_sel; 
}
.notebook tab.bottom:active:hover,
.notebook tab.bottom:backdrop:hover  {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border;
  border-top-color: @notebook_border_sel; 
}
.notebook tab.top:hover,
.notebook tab.top:backdrop:hover {
  background-color: alpha(@notebook_bg, 0.7);
  border-left: 1px solid alpha(@notebook_border_hov, 0.05);
  border-right: 1px solid alpha(@notebook_border_hov, 0.05);
  border-top: 1px solid @notebook_border;
  border-bottom-color: transparent; 
}
.notebook tab.bottom:hover,
.notebook tab.bottom:backdrop:hover {
  background-color: alpha(@notebook_bg, 0.7);
  border-left: 1px solid alpha(@notebook_border_hov, 0.05);
  border-right: 1px solid alpha(@notebook_border_hov, 0.05);
  border-bottom: 1px solid @notebook_border;
  border-top-color: transparent; 
}
.notebook tab.left:active,
.notebook tab.right:active,
.notebook tab.left:backdrop:active,
.notebook tab.right:backdrop:active {
  background-color: @notebook_bg;
  border-top: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border; 
}
.notebook tab.left:active:hover,
.notebook tab.right:active:hover,
.notebook tab.left:backdrop:active:hover,
.notebook tab.right:backdrop:active:hover {
  background-color: @notebook_bg;
  border-top: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border; 
}
.notebook tab.left:hover,
.notebook tab.right:hover
.notebook tab.left:backdrop:hover,
.notebook tab.right:backdrop:hover {
  background-color: alpha(@notebook_bg, 0.7);
  border-top: 1px solid alpha(@notebook_border_hov, 0.05);
  border-bottom: 1px solid alpha(@notebook_border_hov, 0.05);
}
.notebook tab.left, 
.notebook tab.right {
  padding: 5px 20px; 
}
.notebook tab.reorderable-page.top, 
.notebook tab.reorderable-page.bottom {
  padding: 8px;
}
.notebook tab.reorderable-page.left, 
.notebook tab.reorderable-page.right {
  border-bottom-width: 1px;
  border-top-width: 1px; 
}
.notebook tab.top,
.notebook tab.top:backdrop {
  border-bottom-width: 3px; 
}
.notebook tab.bottom,
.notebook tab.bottom:backdrop {
  border-top-width: 3px; 
}
.notebook tab.left,
.notebook tab.left:backdrop {
  border-right-width: 3px; }
.notebook tab.right,
.notebook tab.right:backdrop {
  border-left-width: 3px; }
.notebook tab:hover, .notebook tab.prelight-page {
  border-color: @notebook_border; 
}
.notebook tab:backdrop {
  background-color: transparent;
  border-color: transparent; 
}
.notebook tab.reorderable-page.top {
  font-weight: bold; 
}
.notebook tab.reorderable-page.top:hover, 
.notebook tab.reorderable-page.top.prelight-page {
  font-weight: bold;
  border-top-color: transparent;
  border-bottom-color: transparent; 
}
.notebook tab.reorderable-page.top:active, 
.notebook tab.reorderable-page.top.active-page {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border;
  border-top-color: transparent;
  border-bottom-color: @notebook_border_sel; 
}
.notebook tab.reorderable-page.top:active:hover,
.notebook tab.reorderable-page.top.active-page:hover {
  background-color: @notebook_bg; 
}
.notebook tab.reorderable-page.top:active:backdrop, 
.notebook tab.reorderable-page.top.active-page:backdrop {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border;
  border-bottom-color: @notebook_border_sel; 
}
.notebook tab.reorderable-page.top:backdrop {
  border-color: transparent;
  background-color: transparent; }
.notebook tab.reorderable-page.bottom {
  border-color: transparent; 
}
.notebook tab.reorderable-page.bottom:hover, 
.notebook tab.reorderable-page.bottom.prelight-page {
  border-top-color: @notebook_border;
  background-color: rgba(57, 63, 63, 0.2); 
}
.notebook tab.reorderable-page.bottom:active, 
.notebook tab.reorderable-page.bottom.active-page {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border;
  color: @theme_fg_color;
  border-top-color: @notebook_border_sel;
}
.notebook tab.reorderable-page.bottom:active:hover, 
.notebook tab.reorderable-page.bottom.active-page:hover {
  background-color: rgba(57, 63, 63, 0.7); 
}
.notebook tab.reorderable-page.bottom:active:backdrop, 
.notebook tab.reorderable-page.bottom.active-page:backdrop {
  background-color: @notebook_bg;
  border-left: 1px solid @notebook_border;
  border-right: 1px solid @notebook_border;
  color: @theme_fg_color;
  border-top-color: @notebook_border_sel; 
}
.notebook tab.reorderable-page.bottom:backdrop {
  background-color: transparent; 
}
.notebook tab.reorderable-page.left {
  border-color: transparent; 
}
.notebook tab.reorderable-page.left:hover, 
.notebook tab.reorderable-page.left.prelight-page {
  border-color: rgba(28, 31, 31, 0.3);
  border-right-color: @notebook_border; 
}
.notebook tab.reorderable-page.left:active, 
.notebook tab.reorderable-page.left.active-page {
  background-color: @notebook_bg;
  border-top: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border;
  border-right-color: @notebook_border_sel;
}
.notebook tab.reorderable-page.left:active:hover, 
.notebook tab.reorderable-page.left.active-page:hover {
  background-color: @notebook_bg;
}
.notebook tab.reorderable-page.left:active:backdrop, 
.notebook tab.reorderable-page.left.active-page:backdrop {
  background-color: @notebook_bg;
  border-top: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border;
  border-right-color: @notebook_border_sel;
}
.notebook tab.reorderable-page.left:backdrop {
  border-color: transparent;
  background-color: transparent; 
}
.notebook tab.reorderable-page.right {
  border-color: transparent; }
.notebook tab.reorderable-page.right:hover, 
.notebook tab.reorderable-page.right.prelight-page {
  border-color: rgba(28, 31, 31, 0.3);
  border-left-color: @notebook_border;
  background-color: rgba(57, 63, 63, 0.2); 
}
.notebook tab.reorderable-page.right:active, 
.notebook tab.reorderable-page.right.active-page {
  background-color: @notebook_bg;
  border-top: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border;
  border-left-color: @notebook_border_sel;
}
.notebook tab.reorderable-page.right:active:hover, 
.notebook tab.reorderable-page.right.active-page:hover {
  background-color: rgba(255, 255, 255, 0.4); 
}
.notebook tab.reorderable-page.right:active:backdrop, 
.notebook tab.reorderable-page.right.active-page:backdrop {
  background-color: @notebook_bg;
  border-top: 1px solid @notebook_border;
  border-bottom: 1px solid @notebook_border;
  border-left-color: @notebook_border_sel; 
}
.notebook tab.reorderable-page.right:backdrop {
  background-color: transparent; 
}
.notebook tab .label, 
.notebook tab .label.prelight-page
.notebook tab .label:backdrop, 
.notebook tab .label.prelight-page:backdrop {
  font-weight: bold; 
}
.notebook tab .button, 
.notebook tab .header-bar .button.titlebutton, 
.header-bar .notebook tab .button.titlebutton,
.notebook tab .titlebar .button.titlebutton,
.titlebar .notebook tab .button.titlebutton {
  padding: 0;
  icon-shadow: none;
  transition: none;
  color: @theme_fg_color;
}

.notebook tab .button > GtkImage, 
.notebook tab .header-bar .button.titlebutton > GtkImage, 
.header-bar .notebook tab .button.titlebutton > GtkImage,
.notebook tab .titlebar .button.titlebutton > GtkImage,
.titlebar .notebook tab .button.titlebutton > GtkImage {
  padding: 2px; 
}
.notebook.arrow {
  color: @theme_fg_color; 
}
.notebook.arrow:hover {
  color: @theme_fg_color; 
}
.notebook.arrow:active {
  color: @theme_fg_color;
}
.notebook.arrow:insensitive {
  color: @theme_fg_color;
}
.notebook.arrow:backdrop {
  color: @theme_fg_color;
}
.notebook.arrow:backdrop:insensitive {
  color: @theme_fg_color;
}


/***************************************************************************************************
 * Scrollbars *
 **************************************************************************************************/
.scrollbar {
    background-clip: padding-box;
    -GtkRange-trough-border: 2;
    -GtkScrollbar-has-backward-stepper: 0;
    -GtkScrollbar-has-forward-stepper: 0;
    -GtkRange-slider-width: 6;
    -GtkScrollbar-min-slider-length: 30;
    -GtkRange-stepper-spacing: 0;
    -GtkRange-trough-under-steppers: 1;
    background-color: @scroll_bg;
}


.scrollbar .button,
.scrollbar .header-bar .button.titlebutton,
.header-bar .scrollbar .button.titlebutton,
.scrollbar .titlebar .button.titlebutton,
.titlebar .scrollbar .button.titlebutton {
    border: none;
}


.scrollbar .slider {
    border-radius: 100px;
    margin: 3px;
    background-color: @scroll_slider_bg;
}

.scrollbar.fine-tune .slider {
    margin: 4px;
}

.scrollbar.vertical .slider {
    margin-left: 4px;
}

.scrollbar.vertical .slider:dir(rtl) {
    margin-left: 3px;
    margin-right: 4px;
}

.scrollbar.vertical.fine-tune .slider {
    margin-left: 5px;
}

.scrollbar.vertical.fine-tune .slider:dir(rtl) {
    margin-left: 4px;
    margin-right: 5px;
}

.scrollbar.vertical .trough {
    border-left-style: solid;
}

.scrollbar.vertical .trough:dir(rtl) {
    border-left-style: none;
    border-right-style: solid;
}

.scrollbar.horizontal .slider {
    margin-top: 4px;
}

.scrollbar.horizontal.fine-tune .slider {
    margin-top: 5px;
}

.scrollbar.horizontal .trough {
    border-top-style: solid;
}

.scrollbar.overlay-indicator:not(.dragging):not(.hovering) .trough {
    border-style: none;
    background-color: transparent;
}

.scrollbar.overlay-indicator .slider {
    background-color: @scroll_slider_bg;
    margin: 0px;
}

.scrollbar.overlay-indicator.vertical .slider {
    margin-top: 2px;
    margin-bottom: 2px;
}

.scrollbar.overlay-indicator.horizontal .slider {
    margin-left: 2px;
    margin-right: 2px;
}

.scrollbar.overlay-indicator.dragging,
.scrollbar.overlay-indicator.hovering {
    opacity: 0.7;
}

scrollbar {
    background-color: @scroll_bg;
    transition: 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

scrollbar.top {
    border-bottom: 1px solid @separator;
}
scrollbar.bottom {
    border-top: 1px solid @separator;
}
scrollbar.left {
    border-right: 1px solid @separator;
}
scrollbar.right {
    border-left: 1px solid @separator;
}
scrollbar:backdrop {
    background-color: @theme_bg_color;
    border-color: @unfocused_borders;
    transition: 200ms ease-out;
}
scrollbar slider {
    margin: -1px;
    border: 4px solid transparent;
    border-radius: 8px;
    background-clip: padding-box;
    background-color: @scroll_slider_bg;
}
scrollbar slider:hover {
    background-color: @scroll_slider_bg_hover;
}
scrollbar slider:hover:active {
    background-color: @scroll_slider_bg_hover;
}
scrollbar slider:backdrop {
    background-color: @scroll_slider_bkdrp;
}
scrollbar slider:insensitive {
    background-color: transparent;
}
scrollbar.fine-tune.horizontal slider {
    border-width: 5px 4px;
}
scrollbar.fine-tune.vertical slider {
    border-width: 4px 5px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) {
    border-color: transparent;
    opacity: 0.4;
    background-color: transparent;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) slider {
    margin: 0;
    background-color: @theme_fg_color;
    border: 1px solid black;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering) button {
    background-color: @theme_fg_color;
    background-clip: padding-box;
    border-radius: 100%;
    border: 1px solid black;
    -gtk-icon-source: none;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).horizontal slider {
    margin: 0 2px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).horizontal button {
    margin: 1px 2px;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).vertical slider {
    margin: 2px 0;
}
scrollbar.overlay-indicator:not(.dragging):not(.hovering).vertical button {
    margin: 2px 1px;
}
scrollbar.overlay-indicator.dragging,
scrollbar.overlay-indicator.hovering {
    opacity: 0.8;
}

scrollbar button {
    padding: 0;
    border-style: none;
    border-radius: 0;
    transition-property: min-height, min-width, color;
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color;
}
scrollbar button:hover {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color;
}
scrollbar button:active, scrollbar button:checked {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color_sel;
}
scrollbar button:insensitive {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.0);
    text-shadow: none;
    icon-shadow: none;
    color: rgba(163, 166, 165, 0.2);
}
scrollbar button:backdrop {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: @theme_fg_color_dis;
}
scrollbar button:backdrop:insensitive {
    border-color: transparent;
    background-color: transparent;
    background-image: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
    color: rgba(89, 93, 95, 0.2);
}
scrollbar.vertical button.down {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}
scrollbar.vertical button.up {
    -gtk-icon-source: -gtk-icontheme("pan-up-symbolic");
}
scrollbar.horizontal button.down {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
}
scrollbar.horizontal button.up {
    -gtk-icon-source: -gtk-icontheme("pan-start-symbolic");
}

treeview ~ scrollbar.vertical {
    border-top: 1px solid @separator;
    margin-top: -1px;
}

/***************************************************************************************************
 * Switch *
 **************************************************************************************************/
switch,
GtkSwitch
{
    font-size: 1px;
    background-size: 52px 24px;
    background-repeat: no-repeat;
    background-position: center center;
}
switch,
switch slider,
GtkSwitch,
GtkSwitch.slider
{
    outline-color: transparent;
    color: transparent;
    border: none;
    box-shadow: none;
}

switch,
menuitem:hover switch,
row:selected switch,
infobar switch
{
    background-image: -gtk-scaled(url("assets/switch-off.svg"));
}
headerbar switch,
.primary-toolbar switch
{
    background-image: -gtk-scaled(url("assets/header-switch-off.svg"));
}
switch:hover,
menuitem:hover switch:hover,
row:selected switch:hover,
infobar switch:hover,
switch:active,
menuitem:hover switch:active,
row:selected switch:active,
infobar switch:active
{
    background-image: -gtk-scaled(url("assets/switch-off-hover.svg"));
}
headerbar switch:hover,
.primary-toolbar switch:hover,
headerbar switch:active,
.primary-toolbar switch:active
{
    background-image: -gtk-scaled(url("assets/header-switch-off-hover.svg"));
}
switch:checked,
menuitem:hover switch:checked,
row:selected switch:checked,
infobar switch:checked
{
    background-image: -gtk-scaled(url("assets/switch-on.svg"));
}
headerbar switch:checked,
.primary-toolbar switch:checked
{
    background-image: -gtk-scaled(url("assets/header-switch-on.svg"));
}
switch:checked:hover,
menuitem:hover switch:checked:hover,
row:selected switch:checked:hover,
infobar switch:checked:hover,
switch:checked:active,
menuitem:hover switch:checked:active,
row:selected switch:checked:active,
infobar switch:checked:active
{
    background-image: -gtk-scaled(url("assets/switch-on-hover.svg"));
}
headerbar switch:checked:hover,
.primary-toolbar switch:checked:hover,
headerbar switch:checked:active,
.primary-toolbar switch:checked:active
{
    background-image: -gtk-scaled(url("assets/header-switch-on-hover.svg"));
}
switch:insensitive,
menuitem:hover switch:insensitive,
row:selected switch:insensitive,
infobar switch:insensitive
{
  background-image: -gtk-scaled(url("assets/switch-off-disabled.svg"));
}
headerbar switch:insensitive,
.primary-toolbar switch:insensitive
{
  background-image: -gtk-scaled(url("assets/header-switch-off-disabled.svg"));
}

switch:checked:insensitive,
menuitem:hover switch:checked:insensitive,
row:selected switch:checked:insensitive,
infobar switch:checked:insensitive
{
    background-image: -gtk-scaled(url("assets/switch-on-disabled.svg"));
}
headerbar switch:checked:insensitive,
.primary-toolbar switch:checked:insensitive
{
    background-image: -gtk-scaled(url("assets/header-switch-on-disabled.svg"));
}

GtkSwitch.trough:dir(rtl), GtkSwitch.slider:dir(rtl) {
    background-position: left center;
}

GtkSwitch.trough {
    background-image: -gtk-scaled(url("assets/switch-off.svg"));
}

.list-row:selected GtkSwitch.trough,
GtkInfoBar GtkSwitch.trough {
    background-image: -gtk-scaled(url("assets/switch-off.svg"));
}

.header-bar GtkSwitch.trough,
.primary-toolbar GtkSwitch.trough,
.primary-toolbar .toolbar GtkSwitch.trough,
.primary-toolbar .inline-toolbar GtkSwitch.trough {
    background-image: -gtk-scaled(url("assets/header-switch-off.svg"));
}

GtkSwitch.trough:hover {
    background-image: -gtk-scaled(url("assets/switch-off-hover.svg")); }

.list-row:selected GtkSwitch.trough:hover,
GtkInfoBar GtkSwitch.trough:hover {
    background-image: -gtk-scaled(url("assets/switch-off-hover.svg"));
}

.header-bar GtkSwitch.trough:hover,
.primary-toolbar GtkSwitch.trough:hover,
.primary-toolbar .toolbar GtkSwitch.trough:hover,
.primary-toolbar .inline-toolbar GtkSwitch.trough:hover {
    background-image: -gtk-scaled(url("assets/header-switch-off-hover.svg"));
}

GtkSwitch.trough:active {
    background-image: -gtk-scaled(url("assets/switch-on.svg"));
}

.list-row:selected GtkSwitch.trough:active,
GtkInfoBar GtkSwitch.trough:active {
    background-image: -gtk-scaled(url("assets/switch-on.svg"));
}

.header-bar GtkSwitch.trough:active,
.primary-toolbar GtkSwitch.trough:active,
.primary-toolbar .toolbar GtkSwitch.trough:active,
.primary-toolbar .inline-toolbar GtkSwitch.trough:active {
    background-image: -gtk-scaled(url("assets/header-switch-on.svg"));
}

GtkSwitch.trough:active:hover {
    background-image: -gtk-scaled(url("assets/switch-on-hover.svg"));
}

.list-row:selected GtkSwitch.trough:active:hover,
GtkInfoBar GtkSwitch.trough:active:hover {
    background-image: -gtk-scaled(url("assets/switch-on-hover.svg"));
}

.header-bar GtkSwitch.trough:active:hover,
.primary-toolbar GtkSwitch.trough:active:hover,
.primary-toolbar .toolbar GtkSwitch.trough:active:hover,
.primary-toolbar .inline-toolbar GtkSwitch.trough:active:hover {
    background-image: -gtk-scaled(url("assets/header-switch-on-hover.svg"));
}

GtkSwitch.trough:insensitive {
    background-image: -gtk-scaled(url("assets/switch-off-disabled.svg"));
}

.list-row:selected GtkSwitch.trough:insensitive,
GtkInfoBar GtkSwitch.trough:insensitive {
    background-image: -gtk-scaled(url("assets/switch-off-disabled.svg"));
}

.header-bar GtkSwitch.trough:insensitive,
.primary-toolbar GtkSwitch.trough:insensitive,
.primary-toolbar .toolbar GtkSwitch.trough:insensitive,
.primary-toolbar .inline-toolbar GtkSwitch.trough:insensitive {
    background-image: -gtk-scaled(url("assets/header-switch-off-disabled.svg"));
}

GtkSwitch.trough:active:insensitive {
    background-image: -gtk-scaled(url("assets/switch-on-disabled.png"));
}

.list-row:selected GtkSwitch.trough:active:insensitive,
GtkInfoBar GtkSwitch.trough:active:insensitive {
    background-image: -gtk-scaled(url("assets/switch-on-disabled.png"));
}

.header-bar GtkSwitch.trough:active:insensitive,
.primary-toolbar GtkSwitch.trough:active:insensitive,
.primary-toolbar .toolbar GtkSwitch.trough:active:insensitive,
.primary-toolbar .inline-toolbar GtkSwitch.trough:active:insensitive {
    background-image: -gtk-scaled(url("assets/header-switch-on-disabled.svg"));
}


/***************************************************************************************************
 * Check and Radio items *
 **************************************************************************************************/
.check,
.radio,
check,
radio {
    margin-left: -6px;
    margin-right: -6px;
    padding-left: 6px;
    padding-right: 6px;
}
.menu .menuitem.check,
.menu .menuitem.radio,
menuitem check,
menuitem radio {
    margin-left: -8px;
    margin-right: -8px;
    padding-left: 8px;
    padding-right: 8px;
}
.view.content-view.check,
.view.content-view.check:backdrop,
.check,
check,
treeview.check {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUnchecked.svg"));
}
.menu .menuitem.check,
menuitem check {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUnchecked_menu.svg"));
}
GtkFileChooserDialog GtkFileChooserWidget > GtkActionBar > GtkRevealer > .action-bar.frame .check,
GtkFileChooserDialog .dialog-vbox > .frame .check,
.osd check, filechooser actionbar check {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUnchecked.svg"));
}
.view.content-view.check:hover,
.view.content-view.check:active,
.check:hover,
.check:active,
.view check:selected,
iconview check:selected,
treeview.check:selected,
row:selected check,
infobar check {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUnchecked.svg"));
}
menuitem check:hover,
.menu .menuitem.check:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUnchecked_menu.svg"));
}
.check:backdrop,
.check:backdrop:insensitive
.check:insensitive,
.check:insensitive,
check:insensitive,
treeview.check:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUncheckedInsensitive.svg"));
}

.osd check:insensitive,
filechooser actionbar check:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUncheckedInsensitive.svg"));
}

.view check:insensitive:selected,
iconview check:insensitive:selected,
treeview.check:insensitive:selected,
row:selected check:insensitive,
infobar check:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUncheckedInsensitive.svg"));
}
.menu .menuitem.check:insensitive,
menuitem check:insensitive:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUncheckedInsensitive_menu.svg"));
}
.check:inconsistent,
check:inconsistent,
treeview.check:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixed.svg"));
}

.osd check:inconsistent,
filechooser actionbar check:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixed.svg"));
}
.check:inconsistent:selected,
.view check:inconsistent:selected,
iconview check:inconsistent:selected,
treeview.check:inconsistent:selected,
row:selected check:inconsistent,
infobar check:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixed.svg"));
}
.check:inconsistent:hover,
menuitem check:inconsistent:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixed_menu.svg"));
}

.check:inconsistent:insensitive,
check:inconsistent:insensitive,
treeview.check:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixedInsensitive.svg"));
}

.osd check:inconsistent:insensitive,
filechooser actionbar check:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixedInsensitive.svg"));
}

.view check:inconsistent:insensitive:selected,
iconview check:inconsistent:insensitive:selected,
treeview.check:inconsistent:insensitive:selected,
row:selected check:inconsistent:insensitive,
infobar check:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixedInsensitive.svg"));
}
menuitem check:inconsistent:insensitive:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixedInsensitive_menu.svg"));
}
.view.content-view.check:checked,
.check:checked,
check:checked,
treeview.check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}
menuitem check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked_menu.svg"));
}
.view.content-view.check:checked:hover,
.osd check:checked,
filechooser actionbar check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}
.view.content-view.check:checked:active,
.view.content-view.check:checked:hover,
.view check:checked:selected,
iconview check:checked:selected,
treeview.check:checked:selected,
row:selected check:checked,
infobar check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}
menuitem check:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked_menu.svg"));
}

.check:checked:insensitive,
check:checked:insensitive,
treeview.check:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive.svg"));
}

.osd check:checked:insensitive,
filechooser actionbar check:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive.svg"));
}

.view check:checked:insensitive:selected,
iconview check:checked:insensitive:selected,
treeview.check:checked:insensitive:selected,
row:selected check:checked:insensitive,
infobar check:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive.svg"));
}
menuitem check:checked:insensitive:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive_menu.svg"));
}

.view.content-view.check:checked:not(list),
iconview.content-view.check:checked:not(list) {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
    background-color: transparent;
}

.check:inconsistent:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixed.svg"));
}

.check:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixedInsensitive.svg"));
}

.check:inconsistent:insensitive:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxMixedInsensitive.svg"));
}

.check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}
.menu .menuitem.check:active,
.menu .menuitem.check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked_menu.svg"));
}

GtkFileChooserDialog GtkFileChooserWidget > GtkActionBar > GtkRevealer > .action-bar.frame .check:checked,
GtkFileChooserDialog .dialog-vbox > .frame .check:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxUnchecked.svg"));
}

.check:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive.svg"));
}
.menu .menuitem.check:active:insensitive,
.menu .menuitem.check:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive_menu.svg"));
}

.check:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}
.menu .menuitem.check:active:hover,
.menu .menuitem.check:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked_menu.svg"));
}

.check:checked:active {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}

.check:backdrop:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxChecked.svg"));
}

.check:backdrop:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive.svg"));
}



.radio,
radio,
treeview.radio {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}
menuitem radio {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked_menu.svg"));
}

.osd radio, filechooser actionbar radio {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}


.view radio:selected,
iconview radio:selected,
treeview.radio:selected,
row:selected radio,
infobar radio {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}
menuitem radio:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked_menu.svg"));
}

.radio:insensitive,
radio:insensitive,
treeview.radio:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive.svg"));
}
menuitem radio:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive_menu.svg"));
}

.osd radio:insensitive,
filechooser actionbar radio:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive.svg"));
}

.view radio:insensitive:selected,
iconview radio:insensitive:selected,
treeview.radio:insensitive:selected,
row:selected radio:insensitive,
infobar radio:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive.svg"));
}
menuitem radio:insensitive:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive_menu.svg"));
}

.radio:inconsistent,
radio:inconsistent,
treeview.radio:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.osd radio:inconsistent,
filechooser actionbar radio:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.view radio:inconsistent:selected,
iconview radio:inconsistent:selected,
treeview.radio:inconsistent:selected,
row:selected radio:inconsistent,
infobar radio:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}
menuitem radio:inconsistent:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.radio:inconsistent:insensitive,
radio:inconsistent:insensitive,
treeview.radio:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive.svg"));
}
menuitem radio:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive_menu.svg"));
}

.osd radio:inconsistent:insensitive,
filechooser actionbar radio:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive.svg"));
}

menuitem radio:inconsistent:insensitive:hover,
.view radio:inconsistent:insensitive:selected,
iconview radio:inconsistent:insensitive:selected,
treeview.radio:inconsistent:insensitive:selected,
row:selected radio:inconsistent:insensitive,
infobar radio:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive.svg"));
}

.radio:checked,
radio:checked,
.radio:checked:hover,
radio:checked:hover,
treeview.radio:checked,
treeview.radio:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked.svg"));
}
menuitem radio:checked,
menuitem radio:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked_menu.svg"));
}

.osd radio:checked,
filechooser actionbar radio:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked.svg"));
}

.view radio:checked:selected,
iconview radio:checked:selected,
treeview.radio:checked:selected,
row:selected radio:checked,
infobar radio:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked.svg"));
}
menuitem radio:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked_menu.svg"));
}

.radio:checked:insensitive,
radio:checked:insensitive,
treeview.radio:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioCheckedInsensitive.svg"));
}
.radio:checked:insensitive,
.menu .menuitem.radio:checked:insensitive,
menuitem radio:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioCheckedInsensitive_menu.svg"));
}

.osd radio:checked:insensitive,
filechooser actionbar radio:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioCheckedInsensitive.svg"));
}
.radio:backdrop:checked:insensitive,
.view radio:checked:insensitive:selected,
iconview radio:checked:insensitive:selected,
treeview.radio:checked:insensitive:selected,
row:selected radio:checked:insensitive,
infobar radio:checked:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioCheckedInsensitive.svg"));
}
.menu .menuitem.radio:backdrop:checked:insensitive,
menuitem radio:checked:insensitive:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioCheckedInsensitive_menu.svg"));
}

.view.content-view.check:not(list),
iconview.content-view.check:not(list) {
    -gtk-icon-source: -gtk-scaled(url("assets/checkboxCheckedInsensitive.svg"));
    background-color: transparent;
}

.radio {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}

.radio:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}

.radio:active {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}

.radio:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked.svg"));
}

.menu .menuitem.radio {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked_menu.svg"));
}

.menu .menuitem.radio:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked_menu.svg"));
}

.menu .menuitem.radio:active {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked_menu.svg"));
}

.menu .menuitem.radio:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUnchecked_menu.svg"));
}

.radio:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive.svg"));
}
.radio:backdrop:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive.svg"));
}
.menu .menuitem.radio:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive_menu.svg"));
}
.menu .menuitem.radio:backdrop:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioUncheckedInsensitive_menu.svg"));
}

.radio:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.radio:inconsistent:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.radio:inconsistent:selected {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.radio:inconsistent:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed.svg"));
}

.menu .menuitem.radio:inconsistent {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed_menu.svg"));
}

.menu .menuitem.radio:inconsistent:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed_menu.svg"));
}

.menu .menuitem.radio:inconsistent:selected {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed_menu.svg"));
}

.menu .menuitem.radio:inconsistent:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixed_menu.svg"));
}

.radio:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive.svg"));
}
.radio:inconsistent:insensitive:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive.svg"));
}
.menu .menuitem.radio:inconsistent:insensitive {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive_menu.svg"));
}
.menu .menuitem.radio:inconsistent:insensitive:backdrop {
    -gtk-icon-source: -gtk-scaled(url("assets/radioMixedInsensitive_menu.svg"));
}

.radio:checked:active {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked.svg"));
}

.radio:backdrop:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked.svg"));
}

.menu .menuitem.radio:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked_menu.svg"));
}

.menu .menuitem.radio:checked:hover {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked_menu.svg"));
}

.menu .menuitem.radio:checked:active {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked_menu.svg"));
}

.menu .menuitem.radio:backdrop:checked {
    -gtk-icon-source: -gtk-scaled(url("assets/radioChecked_menu.svg"));
}


checkbutton.text-button,
radiobutton.text-button {
    padding: 2px 0;
    outline-offset: 0;
}

checkbutton label:not(:only-child):first-child,
radiobutton label:not(:only-child):first-child {
    margin-left: 4px;
}

checkbutton label:not(:only-child):last-child,
radiobutton label:not(:only-child):last-child {
    margin-right: 4px;
}

checkbutton:hover, 
radiobutton:hover {
    background-color: mix (@theme_accent_color, @theme_base_color, 0.9);
}

check,
radio {
    margin: 0 2px;
}

menu menuitem check,
check:only-child,
radio:only-child,
menu menuitem
radio {
    margin: 0;
    padding: 2px;
}



/***************************************************************************************************
 * GtkScale *
 **************************************************************************************************/

.scale {
    -GtkRange-slider-width: 16;
    -GtkScale-slider-length: 16;
    -GtkRange-trough-border: 2;
}
/*
.scale.slider {
    border: 1px solid transparent;
    border-radius: 50%;
    background-image: linear-gradient(to bottom, @slider_bg_a 20%, @slider_bg_b 90%);
}*/

.scale.slider:hover {
    background-image: linear-gradient(to bottom, @slider_bg_a_hov 20%, @slider_bg_b_hov 90%);
}


.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-image: none;
    background-color: @theme_selected_bg_color;
}

.scale.trough {
    margin: 7px;
}

.scale.trough.vertical {
    margin: 7px;
}

/*.scale.trough {
    border: 1px solid @border;
    background-color: shade(@theme_bg_color, 0.95);
    background-image: none;
    box-shadow: inset 1px 1px alpha(black, 0.1),
                0 1px alpha(white, 0.5);
}*/

.primary-toolbar .scale.trough,
.header-bar .scale.trough {
    background-color: shade(@theme_bg_color, 0.85);
}

/*.scale.trough.vertical {
    background-color: shade(@theme_bg_color, 0.95);
    background-image: none;
    box-shadow: inset 1px 1px alpha(black, 0.1),
                1px 0 alpha(white, 0.5);
}*/

.primary-toolbar .scale.trough.vertical {
    background-color: shade(@theme_bg_color, 0.95);
    background-image: none;
}

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

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

.scale.trough:insensitive,
.scale.trough.highlight:insensitive,
.scale.trough.vertical:insensitive,
.scale.trough.highlight.vertical:insensitive {
    border-color: shade(@border, 1.1);
    background-color: shade(@theme_bg_color, 0.98);
    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 {
    border-color: @border;
    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;
}

.scale .trough,
scale trough,
scale fill,
progressbar trough {
    border: 1px solid @prgbar_border;
    border-radius: 3px;
    background-image: linear-gradient(to bottom, @prgbar_trough_a, @prgbar_trough_b);
}
.scale .trough:insensitive,
scale trough:insensitive,
scale fill:insensitive,
progressbar trough:insensitive {
    background-color: @insensitive_bg_color;
}
.scale .trough:backdrop,
scale trough:backdrop,
scale fill:backdrop,
progressbar trough:backdrop,
progressbar:backdrop trough {
    background-color: @insensitive_base_color;
    border-color: @unfocused_borders;
    transition: 200ms ease-out;
}
scale trough:backdrop:insensitive,
scale fill:backdrop:insensitive,
progressbar trough:backdrop:insensitive,
progressbar:backdrop trough:insensitive {
    background-color: @insensitive_bg_color;
}
row:selected scale trough:insensitive,
scale row:selected trough:insensitive,
row:selected scale fill:insensitive,
scale row:selected fill:insensitive,
row:selected progressbar trough:insensitive,
progressbar row:selected trough:insensitive,
row:selected scale trough,
scale row:selected trough,
row:selected scale fill,
scale row:selected fill,
row:selected progressbar trough,
progressbar row:selected trough {
    border-color:  @prgbar_border;
}
.osd scale trough,
scale .osd trough,
.osd scale fill,
scale .osd fill,
.osd progressbar trough,
progressbar .osd trough {
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(0, 0, 0, 0.5);
}
.osd scale trough:insensitive,
scale .osd trough:insensitive,
.osd scale fill:insensitive,
scale .osd fill:insensitive,
.osd progressbar trough:insensitive,
progressbar .osd trough:insensitive {
    background-color: rgba(49, 52, 52, 0.5);
}

scale highlight,
progressbar progress {
    border: 1px solid  @prgbar_border;
    border-radius: 3px;
    background-image: linear-gradient(to bottom, @prgbar_bg_a, @prgbar_bg_b);
}
scale highlight:insensitive,
progressbar progress:insensitive {
    background-color: transparent;
    border-color: transparent;
}
scale highlight:backdrop:insensitive,
progressbar progress:backdrop:insensitive,
progressbar:backdrop progress:insensitive {
    background-color: transparent;
    border-color: transparent;
}
row:selected scale highlight:insensitive,
scale row:selected highlight:insensitive,
row:selected progressbar progress:insensitive,
progressbar row:selected progress:insensitive,
row:selected scale highlight,
scale row:selected highlight,
row:selected progressbar progress,
progressbar row:selected progress {
    border-color:  @prgbar_border;
}
.osd scale highlight,
scale .osd highlight,
.osd progressbar progress,
progressbar .osd progress {
    border-color: rgba(0, 0, 0, 0.7);
}
.osd scale highlight:insensitive,
scale .osd highlight:insensitive,
.osd progressbar progress:insensitive,
progressbar .osd progress:insensitive {
    border-color: transparent;
}

scale {
    padding: 12px;
}
scale fill,
scale highlight {
    margin: -1px;
}

scale.fine-tune.horizontal {
    padding-top: 9px;
    padding-bottom: 9px;
}
scale.fine-tune.vertical {
    padding-left: 9px;
    padding-right: 9px;
}
scale.fine-tune slider {
    margin: -6px;
}
scale.fine-tune fill,
scale.fine-tune highlight,
scale.fine-tune trough {
    border-radius: 5px;
}
scale trough {
    outline-offset: 2px;
}
scale fill:backdrop,
scale fill {
    background-color: @separator;
}
scale fill:insensitive:backdrop,
scale fill:insensitive {
    border-color: transparent;
    background-color: transparent;
}
.osd scale fill {
    background-color: rgba(91, 91, 90, 0.775);
}
.osd scale fill:insensitive:backdrop,
.osd scale fill:insensitive {
    border-color: transparent;
    background-color: transparent;
}

scale slider {
    margin: -5px;
}

scale slider,
.scale .slider {
    color: @theme_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: transparent;
    text-shadow: 0 -1px alpha(@slider_fg_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@slider_fg_shadow, 0.8);
    background-image: linear-gradient(to bottom, @slider_bg_a 20%, @slider_bg_b 90%);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border: 2px solid @slider_bdr;
    border-radius: 50%;
    transition: all 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transition-property: background, border, box-shadow;
}

scale slider:hover,
.scale .slider:hover {
    outline-color: rgba(238, 238, 236, 0.3);
    background-image: linear-gradient(to bottom, @slider_bg_a_hov 20%, @slider_bg_b_hov 90%);
    border-color: @slider_bdr_hov;
    box-shadow: none;
}
scale slider:active,
.scale .slider:active {
    border-color: @slider_bg_act;
}

scale slider:insensitive,
.scale .slider:insensitive {
    background-image: linear-gradient(to bottom, @slider_bg_a 20%, @slider_bg_b 90%);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    border: 2px solid @slider_bdr;
}
scale slider:insensitive label,
scale slider:insensitive {
    color: @theme_fg_color_dis;
}
/*
scale slider:backdrop,
.scale .slider:backdrop {
    background-image: none;
    border-color: transparent;
}*/

scale slider:backdrop:insensitive,
.scale .slider:backdrop:insensitive {
    border-color: transparent;
    background-image: none;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}/*
row:selected scale slider:insensitive,
row:selected scale slider {
    border-color: @entry_border_act;
}*/

.osd scale slider {
    color: @theme_fg_color;
    border-color: alpha(@slider_bg_b, 1.0);
    background-color: alpha(@slider_bg_a, 1.0);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
    background-color: @slider_bg_a;
}

.osd scale slider:hover {
    color: @theme_fg_color;
    border-color: alpha(@slider_bg_a_hov, 1.0);
    background-color: alpha(@slider_bg_a_hov, 1.0);
    background-clip: padding-box;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
    text-shadow: 0 1px black;
    icon-shadow: 0 1px black;
    outline-color: rgba(238, 238, 236, 0.3);
    background-color: @slider_bg_a;
}

.osd scale slider:active {
    color: @theme_fg_color;
    border-color: alpha(@slider_bg_a_hov, 1.0);
    background-color: alpha(@slider_bg_a_hov, 1.0);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    outline-color: rgba(238, 238, 236, 0.3);
    background-color: @slider_bg_a;
}/*
.osd scale slider:insensitive {
    color: @theme_fg_color_dis;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(49, 52, 52, 0.5);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    background-color: @slider_bg_a;
}*/

.osd scale slider:backdrop {
    color: @theme_fg_color;
    border-color: rgba(0, 0, 0, 0.7);
    background-color: rgba(28, 31, 32, 0.7);
    background-clip: padding-box;
    box-shadow: none;
    text-shadow: none;
    icon-shadow: none;
    background-color: @slider_bg_a;
}
.osd scale slider:backdrop:insensitive {
    background-color: @slider_bg_a;
}
scale value {
    color: alpha(currentColor,0.55);
}
scale marks {
    color: alpha(currentColor,0.55);
}
scale marks.top {
    margin-bottom: 6px;
    margin-top: -12px;
}
scale marks.bottom {
    margin-top: 6px;
    margin-bottom: -12px;
}
scale marks.top {
    margin-right: 6px;
    margin-left: -12px;
}
scale marks.bottom {
    margin-left: 6px;
    margin-right: -12px;
}
scale.fine-tune marks.top {
    margin-bottom: 6px;
    margin-top: -9px;
}
scale.fine-tune marks.bottom {
    margin-top: 6px;
    margin-bottom: -9px;
}
scale.fine-tune marks.top {
    margin-right: 6px;
    margin-left: -9px;
}
scale.fine-tune marks.bottom {
    margin-left: 6px;
    margin-right: -9px;
}

scale.horizontal.marks-before:not(.marks-after) slider {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-dark@2.png"));
    margin-top: -14px;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-top: -11px;
}
scale.horizontal.marks-before:not(.marks-after) slider:hover {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-hover-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-hover-dark@2.png"));
    margin-top: -14px;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: none;
}
scale.horizontal.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-top: -11px;
}

scale.horizontal.marks-before:not(.marks-after) slider:active {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-active-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-active-dark@2.png"));
    margin-top: -14px;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: none;
}
scale.horizontal.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-top: -11px;
}

scale.horizontal.marks-before:not(.marks-after) slider:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-insensitive-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-insensitive-dark@2.png"));
    margin-top: -14px;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-top: -11px;
}

scale.horizontal.marks-before:not(.marks-after) slider:backdrop {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-backdrop-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-backdrop-dark@2.png"));
    margin-top: -14px;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-top: -11px;
}

scale.horizontal.marks-before:not(.marks-after) slider:backdrop:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-backdrop-insensitive-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-backdrop-insensitive-dark@2.png"));
    margin-top: -14px;
    background-position: top;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-top: -11px;
}

scale.horizontal.marks-after:not(.marks-before) slider {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-below-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-below-dark@2.png"));
    margin-bottom: -14px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: none;
}
scale.horizontal.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-bottom: -11px;
}
scale.horizontal.marks-after:not(.marks-before) slider:hover {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-below-hover-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-below-hover-dark@2.png"));
    margin-bottom: -14px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: none;
}
scale.horizontal.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-bottom: -11px;
}
scale.horizontal.marks-after:not(.marks-before) slider:active {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-below-active-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-below-active-dark@2.png"));
    margin-bottom: -14px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-bottom: -11px;
}

scale.horizontal.marks-after:not(.marks-before) slider:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-below-insensitive-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-below-insensitive-dark@2.png"));
    margin-bottom: -14px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-bottom: -11px;
}

scale.horizontal.marks-after:not(.marks-before) slider:backdrop {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-below-backdrop-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-below-backdrop-dark@2.png"));
    margin-bottom: -14px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-bottom: -11px;
}
scale.horizontal.marks-after:not(.marks-before) slider:backdrop:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-horz-scale-has-marks-below-backdrop-insensitive-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-below-backdrop-insensitive-dark@2.png"));
    margin-bottom: -14px;
    background-position: bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.horizontal.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-bottom: -11px;
}

scale.vertical.marks-before:not(.marks-after) slider {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-above-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-above-dark@2.png"));
    margin-left: -14px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-left: -11px;
}

scale.vertical.marks-before:not(.marks-after) slider:hover {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-above-hover-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-above-hover-dark@2.png"));
    margin-left: -14px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-left: -11px;
}

scale.vertical.marks-before:not(.marks-after) slider:active {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-above-active-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-above-active-dark@2.png"));
    margin-left: -14px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-left: -11px;
}

scale.vertical.marks-before:not(.marks-after) slider:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-above-insensitive-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-above-insensitive-dark@2.png"));
    margin-left: -14px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-left: -11px;
}

scale.vertical.marks-before:not(.marks-after) slider:backdrop {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-above-backdrop-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-above-backdrop-dark@2.png"));
    margin-left: -14px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-left: -11px;
}

scale.vertical.marks-before:not(.marks-after) slider:backdrop:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-above-backdrop-insensitive-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-above-backdrop-insensitive-dark@2.png"));
    margin-left: -14px;
    background-position: left bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-before:not(.marks-after).fine-tune slider {
    margin: -7px;
    margin-left: -11px;
}

scale.vertical.marks-after:not(.marks-before) slider {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-below-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-below-dark@2.png"));
    margin-right: -14px;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-right: -11px;
}

scale.vertical.marks-after:not(.marks-before) slider:hover {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-below-hover-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-below-hover-dark@2.png"));
    margin-right: -14px;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-right: -11px;
}

scale.vertical.marks-after:not(.marks-before) slider:active {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-below-active-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-below-active-dark@2.png"));
    margin-right: -14px;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-right: -11px;
}

scale.vertical.marks-after:not(.marks-before) slider:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-below-insensitive-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-below-insensitive-dark@2.png"));
    margin-right: -14px;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-right: -11px;
}

scale.vertical.marks-after:not(.marks-before) slider:backdrop {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-below-backdrop-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-below-backdrop-dark@2.png"));
    margin-right: -14px;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}
scale.vertical.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-right: -11px;
}

scale.vertical.marks-after:not(.marks-before) slider:backdrop:insensitive {
    margin: -10px;
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/slider-vert-scale-has-marks-below-backdrop-insensitive-dark.png"),
                                  url("assets/slider-vert-scale-has-marks-below-backdrop-insensitive-dark@2.png"));
    margin-right: -14px;
    background-position: right bottom;
    background-repeat: no-repeat;
    box-shadow: none; 
}

/*
.scale.scale-has-marks-above .trough {
    margin: 14px 10px 10px;
}

.fine-tune.scale.scale-has-marks-above .trough {
    margin: 12px 8px 8px;
}

.scale.scale-has-marks-below .trough {
    margin: 10px 10px 14px;
}

.fine-tune.scale.scale-has-marks-below .trough {
    margin: 8px 8px 12px;
}

.scale.vertical.scale-has-marks-above .trough {
    margin: 10px 10px 10px 14px;
}

.fine-tune.scale.vertical.scale-has-marks-above .trough {
    margin: 8px 8px 8px 12px;
}

.scale.vertical.scale-has-marks-below .trough {
    margin: 10px 14px 10px 10px;
}

.fine-tune.scale.vertical.scale-has-marks-below .trough {
    margin: 8px 12px 8px 8px;
}
*/

scale.vertical.marks-after:not(.marks-before).fine-tune slider {
    margin: -7px;
    margin-right: -11px;
}
scale.color trough {
    background-color: @separator;
    background-repeat: no-repeat;
}
scale.color.horizontal {
    padding: 0 0 15px 0;
}
scale.color.horizontal trough {
    padding-bottom: 4px;
    background-position: 0 -3px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/*.osd .scale.trough.fine-tune,
.osd .scale.scale-has-marks-above.scale-has-marks-below.trough.fine-tune,
.osd .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.fine-tune {
    margin: 7px;
}

.osd .scale.trough.highlight,
.osd .scale.scale-has-marks-above.scale-has-marks-below.trough.highlight,
.osd .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough.highlight {
    background-image: none;
    background-color: @theme_accent_color;
}

.osd .scale.trough:insensitive,
.osd .scale.trough:backdrop:insensitive,
.osd .scale.scale-has-marks-above.scale-has-marks-below.trough:insensitive,
.osd .scale.scale-has-marks-above.scale-has-marks-below.trough:backdrop:insensitive,
.osd .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:insensitive,
.osd .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop:insensitive {
    border-color: transparent;
    background-color: transparent;
}

.osd .scale.trough:backdrop,
.osd .scale.scale-has-marks-above.scale-has-marks-below.trough:backdrop,
.osd .scale.vertical.scale-has-marks-above.scale-has-marks-below.trough:backdrop {
    border-color: rgba(0, 0, 0, 0.7);
    background-image: none;
}
*/
scale.color.horizontal slider:dir(ltr):hover,
scale.color.horizontal slider:dir(ltr):backdrop,
scale.color.horizontal slider:dir(ltr):insensitive,
scale.color.horizontal slider:dir(ltr):backdrop:insensitive,
scale.color.horizontal slider:dir(ltr),
scale.color.horizontal slider:dir(rtl):hover,
scale.color.horizontal slider:dir(rtl):backdrop,
scale.color.horizontal slider:dir(rtl):insensitive,
scale.color.horizontal slider:dir(rtl):backdrop:insensitive,
scale.color.horizontal slider:dir(rtl) {
    margin-bottom: -15px;
    margin-top: 6px;
}
scale.color.vertical:dir(ltr) {
    padding: 0 0 0 15px;
}
scale.color.vertical:dir(ltr) trough {
    padding-left: 4px;
    background-position: 3px 0;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}
scale.color.vertical:dir(ltr) slider:hover,
scale.color.vertical:dir(ltr) slider:backdrop,
scale.color.vertical:dir(ltr) slider:insensitive,
scale.color.vertical:dir(ltr) slider:backdrop:insensitive,
scale.color.vertical:dir(ltr) slider {
    margin-left: -15px;
    margin-right: 6px;
}
scale.color.vertical:dir(rtl) {
    padding: 0 15px 0 0;
}
scale.color.vertical:dir(rtl) trough {
    padding-right: 4px;
    background-position: -3px 0;
    border-bottom-left-radius: 0;
    border-top-left-radius: 0;
}
scale.color.vertical:dir(rtl) slider:hover,
scale.color.vertical:dir(rtl) slider:backdrop,
scale.color.vertical:dir(rtl) slider:insensitive,
scale.color.vertical:dir(rtl) slider:backdrop:insensitive,
scale.color.vertical:dir(rtl) slider {
    margin-right: -15px;
    margin-left: 6px;
}
scale.color.fine-tune.horizontal:dir(ltr),
scale.color.fine-tune.horizontal:dir(rtl) {
    padding: 0 0 12px 0;
}
scale.color.fine-tune.horizontal:dir(ltr) trough,
scale.color.fine-tune.horizontal:dir(rtl) trough {
    padding-bottom: 7px;
    background-position: 0 -6px;
}
scale.color.fine-tune.horizontal:dir(ltr) slider,
scale.color.fine-tune.horizontal:dir(rtl) slider {
    margin-bottom: -15px;
    margin-top: 6px;
}
scale.color.fine-tune.vertical:dir(ltr) {
    padding: 0 0 0 12px;
}
scale.color.fine-tune.vertical:dir(ltr) trough {
    padding-left: 7px;
    background-position: 6px 0;
}
scale.color.fine-tune.vertical:dir(ltr) slider {
    margin-left: -15px;
    margin-right: 6px;
}
scale.color.fine-tune.vertical:dir(rtl) {
    padding: 0 12px 0 0;
}
scale.color.fine-tune.vertical:dir(rtl) trough {
    padding-right: 7px;
    background-position: -6px 0;
}
scale.color.fine-tune.vertical:dir(rtl) slider {
    margin-right: -15px;
    margin-left: 6px;
}/*
.scale.scale-has-marks-below,
.scale.vertical.scale-has-marks-below {
    -GtkScale-slider-length: 20;
    -GtkRange-slider-width: 24;
    -GtkRange-trough-border: 2;
}
.scale.vertical.scale-has-marks-above,
.scale.scale-has-marks-above {
    -GtkScale-slider-length: 20;
    -GtkRange-slider-width: 24;
    -GtkRange-trough-border: 2;
}*/


/***************************************************************************************************
 * Progress bars *
 **************************************************************************************************/
GtkProgressBar.osd {
    -GtkProgressBar-xspacing: 0;
    -GtkProgressBar-yspacing: 0;
    -GtkProgressBar-min-horizontal-bar-height: 3;
}
GtkProgressBar,
.progressbar,
progressbar {
    font-size: smaller;
    color: rgba(238, 238, 236, 0.4);
}
progressbar.horizontal progress {
    margin: 0 -1px;
}
progressbar.vertical progress {
    margin: -1px 0;
}
progressbar:backdrop,
.progressbar:backdrop {
    box-shadow: none;
    transition: 200ms ease-out;
}
progressbar progress {
    border-radius: 1.5px;
}
.progressbar.left,
progressbar progress.left {
    border-top-left-radius: 3px;
    border-bottom-left-radius: 3px;
}
.progressbar.right,
progressbar progress.right {
    border-top-right-radius: 3px;
    border-bottom-right-radius: 3px;
}
.progressbar.vertical.top,
progressbar progress.top {
    border-top-right-radius: 3px;
    border-top-left-radius: 3px;
}
.progressbar.vertical.bottom,
progressbar progress.bottom {
    border-bottom-right-radius: 3px;
    border-bottom-left-radius: 3px;
}
progressbar.osd,
.progressbar.osd  {
    background-color: transparent;
}
GtkProgressBar.trough.osd,
progressbar.osd trough {
    border-style: none;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
}
progressbar.osd progress {
    border-style: none;
    border-radius: 0;
}
progressbar trough.empty progress {
    all: unset;
}

/***************************************************************************************************
 * Level Bar *
 **************************************************************************************************/
.level-bar.vertical {
    -GtkLevelBar-min-block-width: 3;
    -GtkLevelBar-min-block-height: 34;
}

.level-bar {
    box-shadow: 0 1px rgba(238, 238, 236, 0.1);
    -GtkLevelBar-min-block-width: 34;
    -GtkLevelBar-min-block-height: 3;
}

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

levelbar:backdrop {
    transition: 200ms ease-out;
}
.level-bar.trough,
levelbar trough {
    border: 1px solid;
    padding: 2px;
    border-radius: 3px;
    color: @theme_fg_color;
    border-color: @border_normal;
    background-color: @view_bg;
    box-shadow: inset 0 0 0 1px alpha(@theme_accent_color, 0);
}
.level-bar.trough:backdrop,
levelbar trough:backdrop {
    color: @theme_fg_color_dis;
    border-color: @unfocused_borders;
    background-color: @view_bg;
    box-shadow: none; 
}


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

levelbar.horizontal.discrete block,
.level-bar.indicator-discrete.fill-block.horizontal {
    margin: 0 1px; 
}
levelbar.vertical.discrete block,
.level-bar.indicator-discrete.fill-block.vertical {
    margin: 1px 0; 
}
.level-bar.fill-block,
levelbar block {
    border: 2px solid;
    border-radius: 1px;
    background-color: @theme_accent_color;
    border: 1px solid alpha(@theme_fg_color, 0.1);
    background-image: none;
}
levelbar block.low,
.level-bar.fill-block.level-low {
    border-color: @warning_background_color;
    background-color: @warning_background_color;
}
levelbar block.low:backdrop,
.level-bar.fill-block.level-low:backdrop {
    border-color: @warning_background_color;
}
levelbar block.high,
levelbar block:not(.empty) {
    border-color: @theme_accent_color;
    background-color: @theme_accent_color;
}
levelbar block.high:backdrop,
levelbar block:not(.empty):backdrop,
.level-bar.fill-block.level-high:backdrop {
    border-color: @theme_accent_color;
}
levelbar block.full {
    border-color: @success_background_color;
    background-color: @success_background_color;
}
levelbar block.full:backdrop {
    border-color: @success_background_color;
}
levelbar block.empty,
.level-bar.fill-block.empty-fill-block {
    background-color: transparent;
    border-color: rgba(238, 238, 236, 0.1);
}
.level-bar.fill-block.empty-fill-block:backdrop,
levelbar block.empty:backdrop {
    border-color: rgba(145, 148, 148, 0.15);
}

/***************************************************************************************************
 * Print dialog *
***************************************************************************************************/
printdialog paper {
    color: @theme_fg_color;
    border: 1px solid @border_box;
    background: white;
    padding: 0;
}
printdialog paper:backdrop {
    color: @theme_fg_color_dis;
    border-color: @unfocused_borders;
}
printdialog .dialog-action-box {
    margin: 12px;
}

/***************************************************************************************************
 * Frames *
 **************************************************************************************************/
frame > border,
.frame {
    box-shadow: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 1px solid @border_box;
}
frame > border.flat,
.frame.flat {
    border-style: none; 
}
frame > border:backdrop,
.frame:backdrop {
    border-color: @unfocused_borders;
}
.frame.action-bar,
actionbar > revealer > box {
    padding: 6px;
    border-top: 1px solid @separator;
}
actionbar > revealer > box:backdrop {
    border-color: @unfocused_borders;
}
GtkScrolledWindow GtkViewport.frame,
scrolledwindow viewport.frame {
    border-style: none;
}
.separator,
GtkPlacesSidebar.sidebar .view .separator,
GtkPlacesSidebar.sidebar .view .separator:backdrop {
    color: rgba(0, 0, 0, 0.1);
}
GtkFileChooserButton .separator.vertical,
GtkFileChooserButton GtkPlacesSidebar.sidebar .view .vertical.separator, GtkPlacesSidebar.sidebar .view GtkFileChooserButton .vertical.separator, GtkFontButton .separator.vertical,
GtkFontButton GtkPlacesSidebar.sidebar .view .vertical.separator,
GtkPlacesSidebar.sidebar .view GtkFontButton .vertical.separator {
    -GtkWidget-wide-separators: true;
}
scrolledwindow overshoot.top {
    background-image: -gtk-gradient(radial, center top, 0, center top, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, center top, 0, center top, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 100% 5%, 100% 100%;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.top:backdrop {
    background-image: -gtk-gradient(radial, center top, 0, center top, 0.5, to(#202425), to(rgba(32, 36, 37, 0)));
    background-size: 100% 5%;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.bottom {
    background-image: -gtk-gradient(radial, center bottom, 0, center bottom, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, center bottom, 0, center bottom, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 100% 5%, 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.bottom:backdrop {
    background-image: -gtk-gradient(radial, center bottom, 0, center bottom, 0.5, to(#202425), to(rgba(32, 36, 37, 0)));
    background-size: 100% 5%;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.left {
    background-image: -gtk-gradient(radial, left center, 0, left center, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, left center, 0, left center, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 5% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.left:backdrop {
    background-image: -gtk-gradient(radial, left center, 0, left center, 0.5, to(#202425), to(rgba(32, 36, 37, 0)));
    background-size: 5% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.right {
    background-image: -gtk-gradient(radial, right center, 0, right center, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, right center, 0, right center, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 5% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow overshoot.right:backdrop {
    background-image: -gtk-gradient(radial, right center, 0, right center, 0.5, to(#202425), to(rgba(32, 36, 37, 0)));
    background-size: 5% 100%;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
scrolledwindow undershoot.top {
    background-color: transparent;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-top: 1px;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-origin: content-box;
    background-position: center top;
    border: none;
    box-shadow: none;
}
scrolledwindow undershoot.bottom {
    background-color: transparent;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-bottom: 1px;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-origin: content-box;
    background-position: center bottom;
    border: none;
    box-shadow: none;
}
scrolledwindow undershoot.left {
    background-color: transparent;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-left: 1px;
    background-size: 1px 10px;
    background-repeat: repeat-y;
    background-origin: content-box;
    background-position: left center;
    border: none;
    box-shadow: none;
}
scrolledwindow undershoot.right {
    background-color: transparent;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-right: 1px;
    background-size: 1px 10px;
    background-repeat: repeat-y;
    background-origin: content-box;
    background-position: right center;
    border: none;
    box-shadow: none;
}
.scrollbars-junction,
.scrollbars-junction.frame,
scrolledwindow junction {
    border-color: transparent;
    border-image: linear-gradient(to bottom, @border_box 1px, transparent 1px) 0 0 0 1/0 1px stretch;
    background-color: @scroll_bg;
}
.scrollbars-junction:dir(rtl),
.scrollbars-junction.frame:dir(rtl),
scrolledwindow junction:dir(rtl) {
    border-image-slice: 0 1 0 0;
}
.scrollbars-junction:backdrop,
.scrollbars-junction.frame:backdrop,
scrolledwindow junction:backdrop {
    border-image-source: linear-gradient(to bottom, #202425 1px, transparent 1px);
    background-color: @theme_bg_color;
    transition: 200ms ease-out;
}

/***************************************************************************************************
 * Lists *
 **************************************************************************************************/
.list,
list {
    background-color: @view_bg;
    border-color: @border_normal;
}
.list:backdrop,
list:backdrop {
    background-color: @view_bg;
    border-color: @unfocused_borders;
}
.list-row,
list row {
    padding: 2px;
}

.list-row.button,
.header-bar .list-row.button.titlebutton,
.titlebar .list-row.button.titlebutton,
.list-row.button:backdrop,
.list-row.button:backdrop:active,
.list-row.button:backdrop:checked,
.list-row.button:backdrop:insensitive,
.list-row.button:backdrop:insensitive:active,
.list-row.button:backdrop:insensitive:checked,
.list-row.button:insensitive:active,
.list-row.button:insensitive:checked {
    background-color: rgba(41, 41, 41, 0.1);
    border-style: none;
    border-radius: 0;
    box-shadow: none;
    
}

row {
    transition: all 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
row:hover {
    transition: none;
}
row:backdrop {
    transition: 200ms ease-out;
}
row.activatable.has-open-popup,
row.activatable:hover {
    background-color: rgba(238, 238, 236, 0.05);
}
row.activatable:active {
    box-shadow: inset 0 2px 2px -2px rgba(0, 0, 0, 0.2);
}
row.activatable:backdrop:hover {
    background-color: rgba(238, 238, 236, 0.05);
}
row.activatable:selected:active {
    box-shadow: inset 0 2px 3px -1px rgba(0, 0, 0, 0.5);
    color: @theme_fg_color;
}
row.activatable:selected.has-open-popup,
row.activatable:selected:hover {
    background-color: @row_bg_active
}
row.activatable:selected:backdrop {
    background-color: @row_bg_active;
}
/*
.sidebar .view {
    color: @sidebar_fg;
}*/

/*
.list-row:selected .button:insensitive:active > .label,
.list-row:selected .header-bar .button.titlebutton:insensitive:active > .label,
.list-row:selected .titlebar .button.titlebutton:insensitive:active > .label,
.list-row:selected .button:insensitive:checked > .label,
.list-row:selected .header-bar .button.titlebutton:insensitive:checked > .label,
.list-row:selected .titlebar .button.titlebutton:insensitive:checked > .label {
    color: @theme_fg_color;
}*/

.list-row, list-row.button, .header-bar list-row.button.titlebutton,
.titlebar list-row.button.titlebutton {
    transition: all 300ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.list-row:hover, list-row.button:hover,
.header-bar list-row.button.titlebutton:hover,
.titlebar list-row.button.titlebutton:hover {
    transition: none;
}
.list-row:selected .button:insensitive > .label,
.list-row:selected .header-bar .button.titlebutton:insensitive > .label,
.list-row:selected .titlebar .button.titlebutton:insensitive > .label {
    color: inherit;
}

.list-row:selected .button:backdrop:insensitive:active > .label,
.list-row:selected .header-bar .button.titlebutton:backdrop:insensitive:active > .label,
.list-row:selected .titlebar .button.titlebutton:backdrop:insensitive:active > .label,
.list-row:selected .button:backdrop:insensitive:checked > .label,
.list-row:selected .header-bar .button.titlebutton:backdrop:insensitive:checked > .label,
.list-row:selected .titlebar .button.titlebutton:backdrop:insensitive:checked > .label,
.list-row:selected .button.flat:backdrop:insensitive:active > .label,
.list-row:selected .header-bar .titlebutton.button:backdrop:insensitive:active > .label,
.header-bar .list-row:selected .titlebutton.button:backdrop:insensitive:active > .label,
.list-row:selected .titlebar .titlebutton.button:backdrop:insensitive:active > .label,
.titlebar .list-row:selected .titlebutton.button:backdrop:insensitive:active > .label,
.list-row:selected .button.flat:backdrop:insensitive:checked > .label,
.list-row:selected .header-bar .titlebutton.button:backdrop:insensitive:checked > .label,
.header-bar .list-row:selected .titlebutton.button:backdrop:insensitive:checked > .label,
.list-row:selected .titlebar .titlebutton.button:backdrop:insensitive:checked > .label,
.titlebar .list-row:selected .titlebutton.button:backdrop:insensitive:checked > .label {
    color: inherit;
}

/***************************************************************************************************
 * App Notifications *
 **************************************************************************************************/
.app-notification,
.app-notification.frame {
    padding: 10px;
    border-radius: 0 0 5px 5px;
    background-color: rgba(28, 31, 32, 0.7);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), transparent 2px);
    background-clip: padding-box;
}
.app-notification:backdrop,
.app-notification.frame:backdrop {
    background-image: none;
    transition: 200ms ease-out;
}
.app-notification border,
.app-notification.frame border {
    border: none;
}

/***************************************************************************************************
 * Expanders *
 **************************************************************************************************/
.expander,
expander arrow {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic");
}
.expander:dir(rtl),
expander arrow:dir(rtl) {
    -gtk-icon-source: -gtk-icontheme("pan-end-symbolic-rtl");
}
.expander:hover,
expander arrow:hover {
    color: @theme_fg_color;
}
.expander:checked,
expander arrow:checked {
    -gtk-icon-source: -gtk-icontheme("pan-down-symbolic");
}

/***************************************************************************************************
 * Calendar *
 **************************************************************************************************/
GtkCalendar,
calendar {
    color: @theme_fg_color;
    border: 1px solid @border_box;
}
calendar:selected {
    border-radius: 3px;
}
GtkCalendar.header,
calendar.header {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
GtkCalendar.header:backdrop,
calendar.header:backdrop {
    border-bottom-color: rgba(0, 0, 0, 0.1);
}
GtkCalendar.button,
.header-bar GtkCalendar.button.titlebutton,
.titlebar GtkCalendar.button.titlebutton,
calendar.button {
    color: rgba(238, 238, 236, 0.45);
}
GtkCalendar.button:hover,
.header-bar GtkCalendar.button.titlebutton:hover,
.titlebar GtkCalendar.button.titlebutton:hover,
calendar.button:hover {
    color: @theme_fg_color;
}
GtkCalendar.button:backdrop,
.header-bar GtkCalendar.button.titlebutton:backdrop,
.titlebar GtkCalendar.button.titlebutton:backdrop,
calendar.button:backdrop {
    color: rgba(145, 148, 148, 0.45);
}
calendar.button:insensitive {
    color: rgba(145, 148, 148, 0.45);
}
.highlight,
GtkCalendar.highlight,
calendar.highlight {
    color: @theme_fg_color;
}
calendar.highlight:backdrop {
    color: @theme_fg_color_dis;
}
GtkCalendar:backdrop,
calendar:backdrop {
    color: @theme_fg_color;
    border-color: @unfocused_borders;
}
GtkCalendar:inconsistent,
GtkCalendar:inconsistent:backdrop,
GtkCalendar.highlight, GtkCalendar.highlight:backdrop,
calendar:inconsistent {
    color: alpha(currentColor,0.1);
}

/***************************************************************************************************
 * Dialogs *
 **************************************************************************************************/
.message-dialog .titlebar,
messagedialog .titlebar {
    background-image: none;
    background-color: @theme_base_color;
    border-style: none;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}
.message-dialog.csd.background,
messagedialog.csd.background {
    border-bottom-left-radius: 9px;
    border-bottom-right-radius: 9px;
}
.message-dialog.csd .dialog-action-area .button,
.message-dialog.csd .dialog-action-area .button:hover,
.message-dialog.csd .dialog-action-area .button:active,
.message-dialog.csd .dialog-action-area .button:insensitive,
.message-dialog.csd .dialog-action-area .button:backdrop,
.message-dialog.csd .dialog-action-area .button:backdrop:insensitive,
.message-dialog.csd .dialog-action-area .button.suggested-action,
.message-dialog.csd .dialog-action-area .button.suggested-action:hover,
.message-dialog.csd .dialog-action-area .button.suggested-action:active,
.message-dialog.csd .dialog-action-area .button.suggested-action:backdrop,
.message-dialog.csd .dialog-action-area .button.suggested-action:backdrop:insensitive,
.message-dialog.csd .dialog-action-area .button.suggested-action:insensitive,
.message-dialog.csd .dialog-action-area .button.destructive-action,
.message-dialog.csd .dialog-action-area .button.destructive-action:hover,
.message-dialog.csd .dialog-action-area .button.destructive-action:active,
.message-dialog.csd .dialog-action-area .button.destructive-action:backdrop,
.message-dialog.csd .dialog-action-area .button.destructive-action:backdrop:insensitive,
.message-dialog.csd .dialog-action-area .button.destructive-action:insensitive,
messagedialog.csd .dialog-action-area button {
    padding: 10px 14px;
    border-radius: 0;
    border-left-style: solid;
    border-right-style: none;
    border-bottom-style: none;
}
.message-dialog.csd .dialog-action-area .button:last-child,
messagedialog.csd .dialog-action-area button:first-child {
    border-left-style: none;
    border-bottom-left-radius: 7px;
}
.message-dialog.csd .dialog-action-area .button:first-child,
messagedialog.csd .dialog-action-area button:last-child {
    border-bottom-right-radius: 7px;
}

GtkFileChooserDialog .dialog-action-box,
filechooser .dialog-action-box {
    border-top: 1px solid @border_box;
}
GtkFileChooserDialog .dialog-action-box:backdrop,
filechooser .dialog-action-box:backdrop {
    border-top-color: @unfocused_borders;
}
GtkFileChooserDialog .search-bar ,
filechooser #pathbarbox {
    background-color: @inline_bg;
    border-bottom: 1px solid @theme_base_color;
}


/***************************************************************************************************
 * Sidebar 
 **************************************************************************************************/
.sidebar,
.sidebar:backdrop {
    border-style: none;
    color: @sidebar_fg;
}

.sidebar label,
.sidebar:backdrop label {
    color: @sidebar_fg;
}

.sidebar .frame {
    background-color: @sidebar_bg;
}

.sidebar row {
    background-color: transparent;
}

row.activatable:hover {
    box-shadow: inset 0 0 0 9999px alpha(@sidebar_hovering, 0.2);
    background-color: transparent;
    background-image: none;
}

.sidebar list,
.sidebar .list,
.sidebar .list-row {
    color: @sidebar_fg;
    border-color: @border;
    background-color: @sidebar_bg;
}

.sidebar-icon {
    padding-left: 4px;
    padding-right: 10px;
}

.list-row,
.grid-child {
    padding: 0px 0px;
}

.sidebar-item {
    background-color: @sidebar_bg;
    padding: 0px 0px;
}

.sidebar-item > .label {
    padding-left: 6px;
    padding-right: 6px;
}

.sidebar-item.needs-attention > .label {
    background-size: 6px 6px, 0 0;
}

.sidebar .view .expander, 
.sidebar .view expander {
    color: #999999;
}

assistant .sidebar,
GtkAssistant .sidebar {
    background-color: @assistant_sidebar_bg;
    border-top: 1px solid @separator;
}
assistant .sidebar:backdrop {
    background-color: @assistant_sidebar_bg;
    border-color: @unfocused_borders;
}
assistant.csd .sidebar {
    border-top-style: none;
}
assistant .sidebar label {
    padding: 8px;
}
assistant .sidebar label.highlight {
    background-color: @assistant_sidebar_bg_lbl;
}

GtkAssistant .sidebar:dir(ltr) {
    border-right: 1px solid @separator;
}
GtkAssistant .sidebar:dir(rtl) {
    border-left: 1px solid @separator;
}
GtkAssistant .sidebar:backdrop {
    background-color: @assistant_sidebar_bg;
    border-color: @separator;
}
GtkAssistant.csd .sidebar {
    border-top-style: none;
}
GtkAssistant .sidebar .label {
    padding: 0px 0px;
}
GtkAssistant .sidebar .label.highlight {
    background-color: @assistant_sidebar_bg_lbl;
}


stacksidebar.sidebar:dir(ltr) list,
stacksidebar.sidebar.left list,
stacksidebar.sidebar.left:dir(rtl) list,
.sidebar:dir(ltr),
.sidebar.left,
.sidebar.left:dir(rtl) {
    border-right: 1px solid @separator;
    border-left-style: none;
}
stacksidebar.sidebar:dir(rtl) list .sidebar:dir(rtl),
stacksidebar.sidebar.right list .sidebar:dir(rtl), .sidebar.right {
    border-left: 1px solid @separator;
    border-right-style: none;
}

.sidebar list {
    background-color: transparent;
}
paned .sidebar.left,
paned .sidebar.right,
paned .sidebar.left:dir(rtl),
paned .sidebar:dir(rtl),
paned .sidebar:dir(ltr),
paned .sidebar,
paned:backdrop .sidebar.left,
paned:backdrop .sidebar.right,
paned:backdrop .sidebar.left:dir(rtl),
paned:backdrop .sidebar:dir(rtl),
paned:backdrop .sidebar:dir(ltr),
paned:backdrop .sidebar {
    border-style: none;
    background-color: @sidebar_bg;
}

.sidebar scale trough,
.sidebar scale fill,
.sidebar progressbar trough {
    background-image: none;
    background-color: rgba(255,255,255, 0.1);
    border: 1px solid rgba(255,255,255, 0.3);
}

.sidebar scale highlight,
.sidebar progressbar progress {
    background-image: none;
    background-color: @assistant_sidebar_fg;
    border: 1px solid @assistant_sidebar_fg;
}

.sidebar scale slider {
    background-image: none;
    background-color: @assistant_sidebar_fg;
    box-shadow: none;
    border: 1px solid @assistant_sidebar_fg;
}

.sidebar button:not(.sidebar-button),
.sidebar:backdrop button:not(.sidebar-button) {
    background-color: rgba(255,255,255, 0.1);
    background-image: none;
    border: 1px solid rgba(255,255,255, 0.3);
    border-radius: 5px;
    color: @sidebar_fg;
}

.sidebar button:not(.sidebar-button) label,
.sidebar:backdrop button:not(.sidebar-button) label {
    color: @sidebar_fg;
}

.sidebar button:not(.sidebar-button):insensitive,
.sidebar:backdrop button:not(.sidebar-button):insensitive {
    background-color: rgba(255,255,255, 0.05);
    border: 1px solid rgba(255,255,255, 0.2);
    color: @theme_fg_color_dis;
}

.sidebar button:not(.sidebar-button):hover,
.sidebar:backdrop button:not(.sidebar-button):hover {
    background-color: rgba(255,255,255, 0.2);
    border: 1px solid rgba(255,255,255, 0.3);
    color: @sidebar_fg;
}

.sidebar button:not(.sidebar-button):only-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.sidebar button:not(.sidebar-button):not(:only-child) {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.sidebar button:not(.sidebar-button):first-child,
.sidebar button:not(.sidebar-button):active:first-child,
.sidebar button:not(.sidebar-button):hover:first-child,
.sidebar button:not(.sidebar-button):checked:first-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.sidebar button:not(.sidebar-button):last-child,
.sidebar button:not(.sidebar-button):active:last-child,
.sidebar button:not(.sidebar-button):hover:last-child,
.sidebar button:not(.sidebar-button):checked:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

.sidebar entry,
.sidebar:backdrop entry,
.sidebar spinbutton:not(.vertical)  {
    background-color: rgba(0,0,0, 0.2);
    background-image: none;
    border: 1px solid rgba(255,255,255, 0.2);
    border-radius: 5px;
    box-shadow: none;
}

.sidebar spinbutton:not(.vertical) button {
    border-width: 0px;
    background-color: rgba(255,255,255, 0.1);
    border-radius: 0px;
}

.nemo-window .places-treeview {
    -GtkTreeView-vertical-separator: 11;
}

stacksidebar row {
    color: @sidebar_fg;
    padding: 10px 4px;
}
stacksidebar row > label {
    color: @sidebar_fg;
    padding-left: 6px;
    padding-right: 6px;
}
stacksidebar row.needs-attention > label {
    background-size: 6px 6px, 0 0;
}

.view:hover:not(:selected),
.budgie-menu button:hover  {
  box-shadow: inset 0 0 0 9999px alpha(@sidebar_hovering, 0.2);
}

/***************************************************************************************************
 * File chooser *
 **************************************************************************************************/
placessidebar > viewport.frame {
    border-style: none;
}
placessidebar row {
    padding: 0px; 
    color: @sidebar_fg;
}
placessidebar row > revealer {
    padding: 0 14px;
}
placessidebar row:selected {
    color: @sidebar_fg;
}
placessidebar row:insensitive {
    color: @sidebar_fg;
}
placessidebar row:backdrop {
    color: @sidebar_fg;
}
placessidebar row:backdrop:selected {
    color: @sidebar_fg;
}
placessidebar row:backdrop:insensitive {
    color: @sidebar_fg;
}
placessidebar row image.sidebar-icon {
    opacity: 0.7;
}
placessidebar row image.sidebar-icon:dir(ltr) {
    padding-right: 8px;
}
placessidebar row image.sidebar-icon:dir(rtl) {
    padding-left: 8px;
}
placessidebar row label.sidebar-label:dir(ltr) {
    color: @sidebar_fg;
    padding-right: 2px;
}
placessidebar row label.sidebar-label:dir(rtl) {
    color: @sidebar_fg;
    padding-left: 2px;
}
button.sidebar-button {
    margin-top: 3px;
    margin-bottom: 3px;
    padding: 0;
    border-radius: 100%;
}
button.sidebar-button:not(:hover):not(:active) > image,
button.sidebar-button:backdrop > image {
    opacity: 0.7;
}
placessidebar row:selected:active {
    box-shadow: none;
}
placessidebar row.sidebar-placeholder-row {
    padding: 0 8px;
    background-color: @theme_accent_color;
    background-clip: content-box;
}
placessidebar row.sidebar-new-bookmark-row {
    color: @theme_fg_color_sel;
}

placesview .server-list-button > image {
    transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -gtk-icon-transform: rotate(0turn);
}
placesview .server-list-button:checked > image {
    transition: 200ms cubic-bezier(0.25, 0.46, 0.45, 0.94);
    -gtk-icon-transform: rotate(-0.5turn);
}
placesview row.activatable:hover {
    background-color: transparent;
}
placesview > actionbar > revealer > box > label {
    padding-left: 8px;
    padding-right: 8px;
}

/***************************************************************************************************
 * Paned *
 **************************************************************************************************/
GtkPaned {
    -GtkPaned-handle-size: 1;
    -gtk-icon-source: none;
    margin: 0 8px 8px 0;
}

paned > separator,
GtkPaned .pane-separator {
    -gtk-icon-source: none;
    -GtkPaned-handle-size: 1;
    border-style: none;
    background-color: @theme_bg_color;
    background-size: 1px 1px;
}
paned > separator:selected {
    background-color: @theme_accent_color;
}

GtkPaned.wide {
    -GtkPaned-handle-size: 5;
    margin: 0;
}
paned > separator.wide,
GtkPaned.wide .pane-separator {
    background-color: @theme_bg_color;
    background-color: @separator;
    background-size: 1px 1px, 1px 1px;
}
paned > separator.wide:backdrop,
GtkPaned.wide .pane-separator:backdrop {
    background-color: @theme_bg_color;
    background-color: @separator;
}
paned.horizontal > separator {
    background-repeat: repeat-y;
}
paned.horizontal > separator:dir(ltr),
GtkPaned:dir(rtl) {
    margin: 0 0px 0 0;
    padding: 0 0px 0 0;
    background-position: left;
}
paned.horizontal > separator:dir(rtl) {
    margin: 0 0 0 0px;
    padding: 0 0 0 0px;
    background-position: right;
}
paned.horizontal > separator.wide {
    margin: 0;
    padding: 0;
    background-repeat: repeat-y, repeat-y;
    background-position: left, right;
}
paned.vertical > separator,
GtkPaned.wide.vertical .pane-separator {
    margin: 0 0 0px 0;
    padding: 0 0 0px 0;
    background-repeat: repeat-x;
    background-position: top;
}
paned.vertical > separator.wide {
    margin: 0;
    padding: 0;
    background-repeat: repeat-x, repeat-x;
    background-position: bottom, top;
}

/***************************************************************************************************
 * GtkInfoBar *
 **************************************************************************************************/
infobar,
GtkInfoBar {
    border-style: none;
}
.info,
.question,
.warning,
.error,
infobar.info,
infobar.question,
infobar.warning,
infobar.error {
    background-image: linear-gradient(to bottom, @infobar_bg_a, @infobar_bg_b);
    text-shadow: 0 1px #1b1f20;
}
infobar.info:backdrop,
infobar.info,
infobar.question:backdrop,
infobar.question {
    background-image: linear-gradient(to bottom, @infobar_bg_a, @infobar_bg_b);
    border-color: @infobar_border;
}
.warning,
infobar.warning {
    background-image: linear-gradient(to bottom, @warnbar_bg_a, @warnbar_bg_b);
    text-shadow: 0 1px #1b1f20;
}
infobar.warning:backdrop,
infobar.warning {
    background-image: linear-gradient(to bottom, @warnbar_bg_a, @warnbar_bg_b);
    border-color: @infobar_border;
}
.error,
infobar.error {
    background-image: linear-gradient(to bottom, @errorbar_bg_a, @errorbar_bg_b);
    text-shadow: 0 1px #1b1f20;
}
infobar.error:backdrop,
infobar.error {
    background-image: linear-gradient(to bottom, @errorbar_bg_a, @errorbar_bg_b);
    border-color: @infobar_border;
}
infobar.info:backdrop label,
infobar.info:backdrop,
infobar.info label,
infobar.info,
infobar.question:backdrop label,
infobar.question:backdrop,
infobar.question label,
infobar.question,
infobar.warning:backdrop label,
infobar.warning:backdrop,
infobar.warning label,
infobar.warning,
infobar.error:backdrop label,
infobar.error:backdrop,
infobar.error label,
infobar.error {
    color: @infobar_button_fg;
}
infobar.info:backdrop,
infobar.question:backdrop,
infobar.warning:backdrop,
infobar.error:backdrop {
    text-shadow: none;
}
.info .button,
.info .header-bar .button.titlebutton,
.header-bar .info .button.titlebutton,
.info .titlebar .button.titlebutton,
.titlebar .info .button.titlebutton,
.question .button,
.question .header-bar .button.titlebutton,
.header-bar .question .button.titlebutton,
.question .titlebar .button.titlebutton,
.titlebar .question .button.titlebutton,
.warning .button,
.warning .header-bar .button.titlebutton,
.header-bar .warning .button.titlebutton,
.warning .titlebar .button.titlebutton,
.titlebar .warning .button.titlebutton,
.error .button,
.error .header-bar .button.titlebutton,
.header-bar .error .button.titlebutton,
.error .titlebar .button.titlebutton,
.titlebar .error .button.titlebutton,
infobar.info button,
infobar.question button,
infobar.warning button,
infobar.error button,
.info {
    color: @infobar_button_fg;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @infobar_button_border;
    background-image: linear-gradient(to bottom, @infobar_button_bg_a, @infobar_button_bg_b);
    text-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
}
.info .button:hover,
.question .button:hover,
.warning .button:hover,
.error .button:hover,
infobar.info button:hover,
infobar.question button:hover,
infobar.warning button:hover,
infobar.error button:hover {
    color: @infobar_button_fg;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @infobar_button_border;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.65553);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.65553);
    box-shadow: 0 1px 1px alpha(@box_shadow, 0.2);
    background-image: linear-gradient(to bottom, @infobar_button_bg_a, @infobar_button_bg_b);
}
.info .button:active,
.question .button:active,
.warning .button:active,
.error .button:active,
infobar.info button:active,
infobar.info button:checked,
infobar.question button:active,
infobar.question button:checked,
infobar.warning button:active,
infobar.warning button:checked,
infobar.error button:active,
infobar.error button:checked {
    color: @infobar_button_fg;
    outline-color: rgba(255, 255, 255, 0.3);
    border-color: @infobar_button_border;
    background-image: linear-gradient(to bottom, @infobar_button_bg_act_a, @infobar_button_bg_act_b);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    text-shadow: none;
    icon-shadow: none;
}
.info .button:insensitive,
.question .button:insensitive,
.warning .button:insensitive,
.error .button:insensitive,
infobar.info button:insensitive,
infobar.question button:insensitive,
infobar.warning button:insensitive,
infobar.error button:insensitive {
    border-color: @infobar_button_border;
    background-image: linear-gradient(to bottom, @infobar_button_bg_a, @infobar_button_bg_b);
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
infobar.info button:insensitive label,
infobar.info button:insensitive,
infobar.question button:insensitive label,
infobar.question button:insensitive,
infobar.warning button:insensitive label,
infobar.warning button:insensitive,
infobar.error button:insensitive label,
infobar.error button:insensitive {
    color: @infobar_button_fg_dis;
}
infobar.info button label,
infobar.info button,
infobar.question button label,
infobar.question button,
infobar.warning button label,
infobar.warning button,
infobar.error button label,
infobar.error button {
    color: @infobar_button_fg;
}
.info .button:backdrop,
.question .button:backdrop,
.warning .button:backdrop,
.error .button:backdrop,
infobar.info button:backdrop,
infobar.question button:backdrop,
infobar.warning button:backdrop,
infobar.error button:backdrop {
    border-color: @infobar_button_border;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
    color: @infobar_button_fg;
}
.info .button:insensitive > .label,
.info .header-bar .button.titlebutton:insensitive > .label,
.info .titlebar .button.titlebutton:insensitive > .label,
.question .button:insensitive > .label,
.question .header-bar .button.titlebutton:insensitive > .label,
.question .titlebar .button.titlebutton:insensitive > .label,
.warning .button:insensitive > .label,
.warning .header-bar .button.titlebutton:insensitive > .label,
.warning .titlebar .button.titlebutton:insensitive > .label,
.error .button:insensitive > .label,
.error .header-bar .button.titlebutton:insensitive > .label,
.error .titlebar .button.titlebutton:insensitive > .label,
infobar.info button:backdrop label,
infobar.info button:backdrop,
infobar.question button:backdrop label,
infobar.question button:backdrop,
infobar.warning button:backdrop label,
infobar.warning button:backdrop,
infobar.error button:backdrop label,
infobar.error button:backdrop {
    color: @infobar_button_fg_dis;
}
.info .button:backdrop:insensitive,
.question .button:backdrop:insensitive,
.warning .button:backdrop:insensitive,
.error .button:backdrop:insensitive,
infobar.info button:backdrop:insensitive,
infobar.question button:backdrop:insensitive,
infobar.warning button:backdrop:insensitive,
infobar.error button:backdrop:insensitive {
    border-color: @infobar_button_border;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
.info .button:backdrop:insensitive > .label,
.info .header-bar .button.titlebutton:backdrop:insensitive > .label,
.info .titlebar .button.titlebutton:backdrop:insensitive > .label,
.question .button:backdrop:insensitive > .label,
.question .header-bar .button.titlebutton:backdrop:insensitive > .label,
.question .titlebar .button.titlebutton:backdrop:insensitive > .label,
.warning .button:backdrop:insensitive > .label,
.warning .header-bar .button.titlebutton:backdrop:insensitive > .label,
.warning .titlebar .button.titlebutton:backdrop:insensitive > .label,
.error .button:backdrop:insensitive > .label,
.error .header-bar .button.titlebutton:backdrop:insensitive > .label,
.error .titlebar .button.titlebutton:backdrop:insensitive > .label,
infobar.info button:backdrop:insensitive label,
infobar.info button:backdrop:insensitive,
infobar.question button:backdrop:insensitive label,
infobar.question button:backdrop:insensitive,
infobar.warning button:backdrop:insensitive label,
infobar.warning button:backdrop:insensitive,
infobar.error button:backdrop:insensitive label,
infobar.error button:backdrop:insensitive {
    color: @infobar_button_fg_dis;
}
.info .label:selected,
.info .label:selected:focus,
.info .label:selected:hover,
.question .label:selected,
.question .label:selected:focus,
.question .label:selected:hover,
.warning .label:selected,
.warning .label:selected:focus,
.warning .label:selected:hover,
.error .label:selected,
.error .label:selected:focus,
.error .label:selected:hover,
infobar.info selection,
infobar.question selection,
infobar.warning selection,
infobar.error selection {
    background-color: @view_fg_sel;
}

/***************************************************************************************************
 * Tooltips *
 **************************************************************************************************/
tooltip,
.tooltip {
    padding: 4px;
    /* not working */
    border-radius: 5px;
    box-shadow: none;
    text-shadow: 0 1px black; 
}
tooltip.background,
.tooltip.background  {
    background-color: rgba(0, 0, 0, 0.8);
    background-clip: padding-box;
    border: 1px solid rgba(255, 255, 255, 0.1); }
tooltip decoration,
.tooltip.window-frame.csd {
    background-color: transparent;
}
tooltip *,
.tooltip * {
    padding: 4px;
    background-color: transparent;
    color: @tooltip_fg;
}

/***************************************************************************************************
 * Color Chooser *
 **************************************************************************************************/
:selected GtkColorSwatch {
    box-shadow: none;
}
colorswatch,
GtkColorSwatch {
    border-style: none;
}
colorswatch.top,
GtkColorSwatch.top {
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
}
colorswatch.top overlay {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}
colorswatch.bottom,
GtkColorSwatch.bottom {
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}
colorswatch.bottom overlay {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}
colorswatch.left,
colorswatch:first-child:not(.top),
GtkColorSwatch.left,
GtkColorSwatch:first-child:not(.overlay):not(.top) {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}
colorswatch.left overlay,
colorswatch:first-child:not(.top) overlay {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
colorswatch.right,
colorswatch:last-child:not(.bottom),
GtkColorSwatch.right,
GtkColorSwatch:last-child:not(.overlay):not(.bottom) {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
colorswatch.right overlay,
colorswatch:last-child:not(.bottom) overlay {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

GtkColorSwatch:only-child:not(.overlay) {
    border-radius: 6px;
}

GtkColorSwatch.top > .overlay {
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

GtkColorSwatch.bottom > .overlay {
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

GtkColorSwatch:first-child:not(.top) > .overlay {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}

GtkColorSwatch:last-child:not(.bottom) > .overlay {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px; 
}

GtkColorSwatch:only-child > .overlay {
    border-radius: 5px;
}

colorswatch.dark overlay {
    color: @theme_fg_color;
}
colorswatch.dark overlay:hover {
    border-color: @border_normal;
}
colorswatch.dark overlay:backdrop {
    color: @theme_fg_color;
}
colorswatch.light overlay {
    color: @theme_fg_color;
}
colorswatch.light overlay:hover {
    border-color: @border_normal;
}
colorswatch.light overlay:backdrop {
    color: @theme_fg_color;
}
colorswatch overlay {
    border: 1px solid @borders;
}
colorswatch overlay:hover {
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.4), inset 0 -1px rgba(0, 0, 0, 0.2);
}
colorswatch overlay:backdrop, colorswatch overlay:backdrop:hover {
    border-color: @border_normal;
    box-shadow: none;
}
colorswatch#add-color-button,
GtkColorSwatch#add-color-button {
    border-radius: 5px 5px 0 0;
}
colorswatch#add-color-button:only-child {
    border-radius: 5px;
}
colorswatch#add-color-button overlay,
GtkColorSwatch#add-color-button .overlay {
    color: @theme_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @border_normal;
    background-image: linear-gradient(to bottom, @button_bgcirc_a, @button_bgcirc_b, @button_bgcirc_c);
    text-shadow: 0 -1px rgba(0, 0, 0, 0.82745);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.82745);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}
colorswatch#add-color-button overlay:hover,
GtkColorSwatch#add-color-button:hover {
    color: @theme_fg_color;
    outline-color: rgba(238, 238, 236, 0.3);
    border-color: @border_normal;
    text-shadow: 0 -1px rgba(0, 0, 0, 0.77945);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.77945);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(to bottom, @button_bgcirc_a_hov, @button_bgcirc_b_hov, @button_bgcirc_c_hov);
}
colorswatch#add-color-button overlay:backdrop,
GtkColorSwatch#add-color-button:backdrop {
    border-color: @unfocused_borders;
    background-color: @theme_bg_color;
    text-shadow: none;
    icon-shadow: none;
    box-shadow: inset 0 1px rgba(255, 255, 255, 0);
}
colorswatch#add-color-button overlay:backdrop label,
colorswatch#add-color-button overlay:backdrop {
    color: @theme_fg_color_dis;
}
colorswatch:insensitive {
    opacity: 0.5;
}
colorswatch:insensitive overlay {
    border-color: rgba(0, 0, 0, 0.6);
    box-shadow: none;
}
row:selected colorswatch {
    box-shadow: 0 0 0 2px @theme_fg_color;
}
colorswatch#editor-color-sample {
    border-radius: 4px;
}
colorswatch#editor-color-sample overlay {
    border-radius: 4.5px;
}
colorchooser .popover.osd {
    border-radius: 5px;
}

/***************************************************************************************************
 * Misc *
 **************************************************************************************************/
.content-view {
    background-color: @view_bg;
}
.content-view:backdrop {
    background-color: @view_bg;
}

.osd .scale-popup button.flat {
    border-style: none;
    border-radius: 5px;
}
.scale-popup button:hover {
    background-color: rgba(238, 238, 236, 0.1);
    border-radius: 5px;
}

.scale-popup .button,
.scale-popup .header-bar .button.titlebutton,
.header-bar .scale-popup .button.titlebutton,
.scale-popup .titlebar .button.titlebutton,
.titlebar .scale-popup .button.titlebutton {
    padding: 6px;
}

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

/***************************************************************************************************
 * Window Decorations *
 **************************************************************************************************/
.window-frame {
    border-radius: 7px 7px 0 0;
    border-width: 0px;
    box-shadow: 0 3px 9px 1px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(28, 31, 31, 0.9);
    /* this is used for the resize cursor area */
    margin: 10px;
}

.window-frame:backdrop {
    box-shadow: 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.9);
}

.window-frame.tiled {
    border-radius: 0;
}

.window-frame.popup {
    box-shadow: none;
}

.window-frame.ssd {
    box-shadow: 0 0 0 1px rgba(28, 31, 31, 0.9);
}

.window-frame.csd .popup {
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8);
}

.window-frame.csd.tooltip {
    border-radius: 5px;
    box-shadow: none;
}

.window-frame.csd.message-dialog {
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(28, 31, 31, 0.8);
}

.window-frame.solid-csd {
    border-radius: 0;
    margin: 4px;
    background-color: @theme_base_color;
    border: solid 1px @border;
    box-shadow: none;
}

decoration {
    border-radius: 7px 7px 0 0;
    border-width: 0px;
    box-shadow: 0 3px 9px 1px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(27, 31, 32, 0.9);
    margin: 10px;
}
decoration:backdrop {
    box-shadow: 0 3px 9px 1px transparent, 0 2px 6px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(27, 31, 32, 0.9);
    transition: 200ms ease-out;
}
.maximized decoration, .fullscreen decoration, .tiled decoration {
    border-radius: 0;
}
.popup decoration {
    box-shadow: none;
}
.ssd decoration {
    box-shadow: 0 0 0 1px rgba(27, 31, 32, 0.9);
}
.csd.popup decoration {
    border-radius: 0;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(27, 31, 32, 0.8);
}
tooltip.csd decoration {
    border-radius: 5px;
    box-shadow: none;
}
messagedialog.csd decoration {
    border-radius: 7px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(27, 31, 32, 0.8);
}
.solid-csd decoration {
    margin: 0;
    padding: 4px;
    background-color: @border_box;
    border: solid 1px @border_box;
    border-radius: 0;
    box-shadow: inset 0 0 0 3px @theme_bg_color, inset 0 1px rgba(238, 238, 236, 0.07);
}
.solid-csd decoration:backdrop {
    box-shadow: inset 0 0 0 3px @theme_bg_color, inset 0 1px rgba(238, 238, 236, 0.07);
}

button.titlebutton {
    text-shadow: 0 -1px alpha(@button_fg_shadow, 0.8);
    icon-shadow: 0 -1px alpha(@button_fg_shadow, 0.8);
}
button.titlebutton:backdrop {
    icon-shadow: none;
}

headerbar.selection-mode button.titlebutton,
.titlebar.selection-mode button.titlebutton {
    text-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
    icon-shadow: 0 -1px rgba(0, 0, 0, 0.70353);
}
headerbar.selection-mode button.titlebutton:backdrop,
.titlebar.selection-mode button.titlebutton:backdrop {
    icon-shadow: none;
}

.view:selected,
GtkCalendar:selected,
.label:selected,
.label:selected:focus,
.label:selected:hover,
.grid-child:selected,
.entry:selected,
.entry:selected:focus,
.menuitem.button.flat:selected,
.header-bar .menuitem.titlebutton.button:selected,
.titlebar .menuitem.titlebutton.button:selected,
.list-row:selected, 
.sidebar:selected,
GtkPlacesSidebar.sidebar .view:selected,
GtkPlacesSidebar.sidebar GtkCalendar:selected,
.view:selected:focus,
iconview:selected:focus,
.view:selected,
iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,
textview text:selected:focus,
.view text:selected,
iconview text:selected,
textview text:selected,
.view text selection:focus,
iconview text selection:focus,
.view text selection,
iconview text selection,
textview text selection:focus,
textview text selection,
flowbox flowboxchild:selected,
spinbutton:not(.vertical) selection,
entry selection,
modelbutton.flat:selected,
.menuitem.button.flat:selected,
treeview.view:selected:focus,
treeview.view:selected,
row:selected,
calendar:selected {
    background-color: @theme_accent_color;
}

row:selected label,
label:selected,
.selection-mode button.titlebutton,
.view:selected:focus,
iconview:selected:focus,
.view:selected,
iconview:selected,
.view text:selected:focus,
iconview text:selected:focus,
textview text:selected:focus,
.view text:selected,
iconview text:selected,
textview text:selected,
.view text selection:focus,
iconview text selection:focus,
.view text selection,
iconview text selection,
textview text selection:focus,
textview text selection,
flowbox flowboxchild:selected,
spinbutton:not(.vertical) selection,
entry selection,
modelbutton.flat:selected,
row:selected,
calendar:selected {
    color: @theme_selected_fg_color;
}

row:selected label:insensitive,
label:insensitive:selected,
.selection-mode button.titlebutton:insensitive,
iconview:insensitive:selected:focus,
.view:insensitive:selected,
iconview:insensitive:selected,
iconview text:insensitive:selected:focus,
textview text:insensitive:selected:focus,
.view text:insensitive:selected,
iconview text:insensitive:selected,
textview text:insensitive:selected,
iconview text selection:insensitive:focus,
.view text selection:insensitive,
iconview text selection:insensitive,
textview text selection:insensitive,
flowbox flowboxchild:insensitive:selected,
label:insensitive selection,
spinbutton:not(.vertical) selection:insensitive,
entry selection:insensitive,
modelbutton.flat:insensitive:selected,
row:insensitive:selected,
calendar:insensitive:selected {
    color: @theme_fg_color_sel
}

GtkCalendar:backdrop:selected,
.label:backdrop:selected,
.grid-child:backdrop:selected,
.entry:backdrop:selected,
.header-bar .menuitem.titlebutton.button:backdrop:selected,
.titlebar .menuitem.titlebutton.button:backdrop:selected,
.list-row:backdrop:selected,
.sidebar:backdrop:selected,
GtkPlacesSidebar.sidebar .view:backdrop:selected,
GtkPlacesSidebar.sidebar GtkCalendar:backdrop:selected,
row:selected label:backdrop,
label:backdrop:selected,
.selection-mode button.titlebutton:backdrop,
iconview:backdrop:selected:focus,
.view:backdrop:selected,
iconview:backdrop:selected,
iconview text:backdrop:selected:focus,
textview text:backdrop:selected:focus,
.view text:backdrop:selected,
iconview text:backdrop:selected,
textview text:backdrop:selected,
iconview text selection:backdrop:focus,
.view text selection:backdrop,
iconview text selection:backdrop,
textview text selection:backdrop,
flowbox flowboxchild:backdrop:selected,
label:backdrop selection,
spinbutton:not(.vertical) selection:backdrop,
entry selection:backdrop,
modelbutton.flat:backdrop:selected,
row:backdrop:selected,
calendar:backdrop:selected {
    color: @theme_selected_fg_color;
    background-color: @theme_selected_bg_color;
}



row:selected label:backdrop:insensitive,
label:backdrop:insensitive:selected,
.selection-mode button.titlebutton:backdrop:insensitive,
.view:backdrop:insensitive:selected,
iconview:backdrop:insensitive:selected,
.view text:backdrop:insensitive:selected,
iconview text:backdrop:insensitive:selected,
textview text:backdrop:insensitive:selected,
.view text selection:backdrop:insensitive,
iconview text selection:backdrop:insensitive,
textview text selection:backdrop:insensitive,
flowbox flowboxchild:backdrop:insensitive:selected,
label:insensitive selection:backdrop,
label:backdrop selection:insensitive,
spinbutton:not(.vertical) selection:backdrop:insensitive,
entry selection:backdrop:insensitive,
modelbutton.flat:backdrop:insensitive:selected,
row:backdrop:insensitive:selected,
calendar:backdrop:insensitive:selected {
    color: @theme_accent_color
}

.monospace {
    font-family: monospace;
}

.overshoot.top {
    background-image: -gtk-gradient(radial, center top, 0, center top, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, center top, 0, center top, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 100% 5%, 100% 100%;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.overshoot.top:backdrop {
    background-image: -gtk-gradient(radial, center top, 0, center top, 0.5, to(#1e2222), to(rgba(30, 34, 34, 0)));
    background-size: 100% 5%;
    background-repeat: no-repeat;
    background-position: center top;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.overshoot.bottom {
    background-image: -gtk-gradient(radial, center bottom, 0, center bottom, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, center bottom, 0, center bottom, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 100% 5%, 100% 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.overshoot.bottom:backdrop {
    background-image: -gtk-gradient(radial, center bottom, 0, center bottom, 0.5, to(#1e2222), to(rgba(30, 34, 34, 0)));
    background-size: 100% 5%;
    background-repeat: no-repeat;
    background-position: center bottom;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.overshoot.left {
    background-image: -gtk-gradient(radial, left center, 0, left center, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, left center, 0, left center, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 5% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.overshoot.left:backdrop {
    background-image: -gtk-gradient(radial, left center, 0, left center, 0.5, to(#1e2222), to(rgba(30, 34, 34, 0)));
    background-size: 5% 100%;
    background-repeat: no-repeat;
    background-position: left center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.overshoot.right {
    background-image: -gtk-gradient(radial, right center, 0, right center, 0.5, to(#040404), to(rgba(4, 4, 4, 0))),
                      -gtk-gradient(radial, right center, 0, right center, 0.6, from(rgba(238, 238, 236, 0.07)), to(rgba(238, 238, 236, 0)));
    background-size: 5% 100%, 100% 100%;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}
  
.overshoot.right:backdrop {
    background-image: -gtk-gradient(radial, right center, 0, right center, 0.5, to(#1e2222), to(rgba(30, 34, 34, 0)));
    background-size: 5% 100%;
    background-repeat: no-repeat;
    background-position: right center;
    background-color: transparent;
    border: none;
    box-shadow: none;
}

.undershoot.top {
    background-color: transparent;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-top: 1px;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-origin: content-box;
    background-position: center top;
}

.undershoot.bottom {
    background-color: transparent;
    background-image: linear-gradient(to left, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-bottom: 1px;
    background-size: 10px 1px;
    background-repeat: repeat-x;
    background-origin: content-box;
    background-position: center bottom;
}

.undershoot.left {
    background-color: transparent;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-left: 1px;
    background-size: 1px 10px;
    background-repeat: repeat-y;
    background-origin: content-box;
    background-position: left center;
}

.undershoot.right {
    background-color: transparent;
    background-image: linear-gradient(to top, rgba(255, 255, 255, 0.2) 50%, rgba(0, 0, 0, 0.2) 50%);
    padding-right: 1px;
    background-size: 1px 10px;
    background-repeat: repeat-y;
    background-origin: content-box;
    background-position: right center;
}

/************
 * terminal *
 ************/

TerminalScreen,
vte-terminal {
    -TerminalScreen-background-darkness: 0.8;
    background-color: #000;
    color: @terminal_fg;
}

TerminalWindow GtkNotebook.notebook {
    border-bottom-width: 0;
    border-right-width: 0;
    border-left-width: 0;
}


.nautilus-window notebook > stack,
.nautilus-window notebook > stack:not(:only-child) {
    background-color: @view_bg;
}


headerbar .nautilus-canvas-item.subtitle,
.titlebar:not(headerbar) .nautilus-canvas-item.subtitle,

headerbar .nemo-canvas-item.subtitle,
.titlebar:not(headerbar) .nemo-canvas-item.subtitle,
.nemo-list-dim-label {
    color: @header_fg_color_sub;
}

.nautilus-canvas-item.dim-label,
label.nautilus-canvas-item.separator,
.nautilus-list-dim-label,
.nemo-canvas-item.dim-label,
label.nemo-canvas-item.separator,
.nemo-list-dim-label {
    color: @theme_fg_color_sub;
}

.nautilus-canvas-item {
    border-radius: 3px;
}
.nautilus-desktop.nautilus-canvas-item {
    color: @desktop_item_fg;
    text-shadow: 1px 1px @shadow_color;
}

.nautilus-desktop.nautilus-canvas-item:active {
    background-color: @theme_selected_fg_color;
    background-image: none;
    color: @theme_fg_color;
}

.nautilus-desktop.nautilus-canvas-item:selected {
    background-color: @theme_selected_bg_color;
    background-image: none;
    color: @theme_selected_fg_color;
}

.nautilus-desktop.nautilus-canvas-item:active,
.nautilus-desktop.nautilus-canvas-item:prelight,
.nautilus-desktop.nautilus-canvas-item:selected {
    text-shadow: none;
}



/***************************************************************************************************
 * Touch Copy & Paste *
 **************************************************************************************************/
cursor-handle {
    background-color: transparent;
    background-image: none;
    box-shadow: none;
    border-style: none;
}
cursor-handle.top:dir(ltr),
cursor-handle.bottom:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/text-select-start-dark.png"),
                                  url("assets/text-select-start-dark@2.png"));
    padding-left: 10px;
}
cursor-handle.bottom:dir(ltr),
cursor-handle.top:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/text-select-end-dark.png"),
                                  url("assets/text-select-end-dark@2.png"));
    padding-right: 10px;
}
cursor-handle.insertion-cursor:dir(ltr),
cursor-handle.insertion-cursor:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-dark@2.png"));
}
cursor-handle.top:hover:dir(ltr),
cursor-handle.bottom:hover:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/text-select-start-hover-dark.png"),
                                  url("assets/text-select-start-hover-dark@2.png"));
    padding-left: 10px;
}
cursor-handle.bottom:hover:dir(ltr),
cursor-handle.top:hover:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/text-select-end-hover-dark.png"),
                                  url("assets/text-select-end-hover-dark@2.png"));
    padding-right: 10px;
}
cursor-handle.insertion-cursor:hover:dir(ltr),
cursor-handle.insertion-cursor:hover:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-hover-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-hover-dark@2.png"));
}
cursor-handle.top:active:dir(ltr),
cursor-handle.bottom:active:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/text-select-start-active-dark.png"),
                                  url("assets/text-select-start-active-dark@2.png"));
    padding-left: 10px;
}
cursor-handle.bottom:active:dir(ltr),
cursor-handle.top:active:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/text-select-end-active-dark.png"),
                                  url("assets/text-select-end-active-dark@2.png"));
    padding-right: 10px;
}
cursor-handle.insertion-cursor:active:dir(ltr),
cursor-handle.insertion-cursor:active:dir(rtl) {
    -gtk-icon-source: -gtk-scaled(url("assets/slider-horz-scale-has-marks-above-active-dark.png"),
                                  url("assets/slider-horz-scale-has-marks-above-active-dark@2.png"));
}

.context-menu {
    font: initial;
}

.keycap {
    margin-top: 2px;
    padding-bottom: 3px;
    padding-left: 6px;
    padding-right: 6px;
    color: @theme_fg_color;
    background-color: @view_bg;
    border: 1px solid;
    border-color: @border_normal;
    border-radius: 5px;
    box-shadow: inset 0 -3px #1e2224;
    font-size: smaller;
}
.keycap:backdrop {
    background-color: @view_bg;
    color: @theme_fg_color_dis;
    transition: 200ms ease-out;
}

stackswitcher button.circular,
stackswitcher button.text-button.circular {
    padding: 0;
}

/***************************************************************************************************
 * window actions *
 **************************************************************************************************/

/* minimize */
.titlebar .titlebutton.minimize {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/min.svg"));
}

.titlebar .titlebutton.minimize:backdrop {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/minUnfocused.svg"));
}

.titlebar .titlebutton.minimize:hover,
.titlebar .titlebutton.minimize:checked {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/minPrelight.svg"));
}

.titlebar .titlebutton.minimize:active {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/minPress.svg"));
}

/* maximize */
.titlebar .titlebutton.maximize {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/max.svg"));
}

.titlebar .titlebutton.maximize:backdrop {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/maxUnfocused.svg"));
}

.titlebar .titlebutton.maximize:hover,
.titlebar .titlebutton.maximize:checked  {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-color: transparent;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/maxPrelight.svg"));
}

.titlebar .titlebutton.maximize:active  {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/maxPress.svg"));
}

/* close */
.titlebar .titlebutton.close {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/close.svg"));
}

.titlebar .titlebutton.close:backdrop {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/closeUnfocused.svg"));
}


.titlebar .titlebutton.close:hover,
.titlebar .titlebutton.close:checked  {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-color: transparent;
    background-image: -gtk-scaled(url("assets/closePrelight.svg"));
}

.titlebar .titlebutton.close:active  {
    color: transparent;
    background-color: transparent;
    border-image: none;
    border-width: 0px;
    box-shadow: none;
    background-position: center;
    background-repeat: no-repeat;
    background-image: -gtk-scaled(url("assets/closePress.svg"));
}

/* ******************************************************************************************** */
/* ****                          C I N N A M O N   S P E C I F I C S                       **** */
/* ******************************************************************************************** */

/********
 * Nemo *
 ********/

/* sidebar */

NemoWindow .sidebar .cell {
  padding: 0px; 
}

NemoWindow .sidebar treeview .view,
NemoWindow .sidebar GtkTreeView.view,
.nemo-window .sidebar treeview .view,
.nemo-window .sidebar GtkTreeView.view {
    padding-top: 0px;
    padding-bottom: 0px;
}

NemoWindow .sidebar .view,
.nemo-window .sidebar {
    background-color: @sidebar_bg;
    color: @sidebar_fg;
    text-shadow: none;
    icon-shadow: none;
}

.nemo-window .sidebar {
    color: @nemo_sidebar_fg;
}
.nemo-window .sidebar .view,
.nemo-window .sidebar iconview,
.nemo-window .sidebar row {
    background-color: transparent;
    color: @nemo_sidebar_fg;
}
NemoWindow .sidebar .view {
    padding-top: 0px;
    padding-bottom: 0px;
}

.nemo-window .sidebar .view.cell:selected,
.nemo-window .sidebar iconview.cell:selected,
.nemo-window .sidebar row.cell:selected,
.nemo-window .sidebar .view.cell:selected:hover,
.nemo-window .sidebar iconview.cell:selected:hover,
.nemo-window .sidebar row.cell:selected:hover  {
    background-color: @theme_accent_color;
    color: @sidebar_fg;
}
.nemo-window .sidebar .view.cell:hover,
.nemo-window .sidebar iconview.cell:hover,
.nemo-window .sidebar row.cell:hover {
    background-color: transparent;
    box-shadow: inset 0 0 0 9999px alpha(@sidebar_hovering, 0.2);
    color: @sidebar_fg;
}
.nemo-window .sidebar .view.expander,
.nemo-window .sidebar iconview.expander,
.nemo-window .sidebar row.expander {
    color: @sidebar_fg;
}
.nemo-window .sidebar .view.expander:hover,
.nemo-window .sidebar iconview.expander:hover,
.nemo-window .sidebar row.expander:hover {
    color: @sidebar_fg;
}
.nemo-window .sidebar separator {
    background-color: transparent;
}

.nemo-window .nemo-places-sidebar.frame {
    border-width: 0;
}

.nemo-window notebook {
    background-color: @theme_base_color;
}

.nemo-window .nemo-window-pane widget.entry {
    border: 1px solid @notebook_border;
    border-radius: 3px;
}

.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button {
    color: rgba(207, 218, 231, 0.8);
    border-color: rgba(21, 23, 28, 0.37);
    background-color: rgba(95, 105, 127, 0.37);
}
.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:not(:last-child):not(:only-child) {
    margin: 0 0 1px 0;
}
.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:hover {
    background-color: rgba(134, 144, 165, 0.37);
}
.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:active,
.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:checked {
    color: @theme_fg_color;
    border-color: transparent;
    background-color: @theme_accent_color;
}
.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:insensitive {
    color: rgba(207, 218, 231, 0.4);
}

.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button + button {
    border-left-style: none;
}

.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:hover:not(:checked):not(:active):not(:only-child):hover {
    box-shadow: inset 1px 0 rgba(21, 23, 28, 0.37), inset -1px 0 rgba(21, 23, 28, 0.37);
}

.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:hover:not(:checked):not(:active):not(:only-child):first-child:hover {
    box-shadow: inset -1px 0 rgba(21, 23, 28, 0.37);
}

.nemo-window .primary-toolbar widget.raised.linked:not(.vertical):not(.path-bar) > button:hover:not(:checked):not(:active):not(:only-child):last-child:hover {
    box-shadow: inset 1px 0 rgba(21, 23, 28, 0.37);
}

NemoPlacesTreeView {
    -NemoPlacesTreeView-disk-full-bg-color: #808080;
    -NemoPlacesTreeView-disk-full-fg-color: @theme_accent_color;
    -NemoPlacesTreeView-disk-full-bar-width: 2px;
    -NemoPlacesTreeView-disk-full-bar-radius: 0px;
    /*-NemoPlacesTreeView-disk-full-top-padding: 40px;
    -NemoPlacesTreeView-disk-full-bottom-padding: 5px;*/
    border-radius: 0px;
}

NemoPlacesTreeView:selected {
    -NemoPlacesTreeView-disk-full-bg-color: #808080;
    -NemoPlacesTreeView-disk-full-fg-color: @theme_accent_color;
    border-radius: 0px;
}

NemoWindow .sidebar .frame {
    border: none;
}

NemoWindow > GtkGrid > .pane-separator {
    background-color: transparent;
}

.nemo-canvas-item {
    border-radius: 3px;
}

.nemo-desktop.nemo-canvas-item {
    color: @desktop_item_fg;
    text-shadow: 1px 1px @desktop_item_text_shadow;
}

.nemo-desktop.nemo-canvas-item:selected {
    background-color: @theme_accent_color;
    background-image: none;
    color: @theme_selected_fg_color;
    text-shadow: none;
}

/* notebook */

NemoView.frame,
NemoNotebook.notebook {
    border: solid;
    border-width: 1px 0 0 1px;
    border-color: shade(@theme_bg_color, 0.8);
}

NemoNotebook.notebook tab,
NemoNotebook.notebook tab:active {
    padding: 2px;
}

/* inactive pane */

.nemo-inactive-pane .view {
    background-color: shade(@theme_base_color, 0.93);
    color: shade(@theme_fg_color, 1.2);
}

.nemo-inactive-pane .view:selected,
.nemo-inactive-pane .nautilus-canvas-item:selected {
    background-color: @theme_accent_color;
    color: @theme_selected_fg_color;
}

NemoWindow .toolbar,
.nemo-window .toolbar {
    padding: 0px;
    border-top-color: transparent;
}

NemoWindow .primary-toolbar,
.nemo-window .primary-toolbar {
    padding: 6px;
    border-top-color: @separator;
}

/* small buttons on the nemo status bar */

NemoWindow .toolbar .button .image-button,
.nemo-window .toolbar .button .image-button {
    padding: 0 5px;
}

NemoWindow .toolbar GtkStatusbar {
}

/* the fix above for the statusbar buttons also affects the primary toolbar so we need to reset the
    padding for those buttons */

.nemo-window widget .toolbar headerbar button.titlebutton, 
headerbar .nemo-window widget .toolbar button.titlebutton,
.nemo-window widget .toolbar .titlebar button.titlebutton,
.titlebar .nemo-window widget .toolbar button.titlebutton,
.nemo-window widget .toolbar .image-button {
    padding: 0px 2px; 
}

NemoWindow .primary-toolbar .toolbar .button.image-button {
    padding: 0 7px; 
}

NemoWindow .primary-toolbar.toolbar .entry {
    padding: 3px;
}

/*********************
 * Cinnamon Settings *
 *********************/

.section-bg {
    background-color: @section_bg;
    box-shadow: inset 0 3px white,
                inset -2px 0 @border,
                inset 0 -2px @border,
                inset 0 2px shade(@border, 1.15),
                inset 2px 0 @border,
                inset -1px 0 shade(@theme_bg_color, 0.93),
                inset 1px 0 shade(@theme_bg_color, 0.93),
                inset 0 1px @theme_bg_color,
                inset 0 -1px shade(@theme_bg_color, 0.85);
}

.cs-header {
    background-color: transparent;
    background-image: linear-gradient(to bottom,
                            @toolbar_bg_a,
                            @toolbar_bg_b);
}

.cs-category-view,
.cs-category-view .view {
    background-color: transparent;
}

/* ******************************************************************************************** */
/* ****                              M A T E   S P E C I F I C S                           **** */
/* ******************************************************************************************** */

/* selected WnckPager */
PanelApplet.wnck-applet .wnck-pager:selected {
    background-color: @view_fg_sel;
}

/* hover of WnckPager */
PanelApplet.wnck-applet .wnck-pager:hover {
    background-color: @view_fg_sel;
}

.caja-side-pane text,
.caja-side-pane treeview,
.caja-side-pane:backdrop text,
.caja-side-pane:backdrop treeview {
  color: @sidebar_fg;
  background-color: @sidebar_bg;
}

/* ******************************************************************************************** */
/* ****                          U B I Q U I T Y   S P E C I F I C S                       **** */
/* ******************************************************************************************** */

.ubiquity-menubar {
    background-color: @view_bg;
    color: @theme_fg_color;
}

/* ******************************************************************************************** */
/* ****                              X F C E    S P E C I F I C S                          **** */
/* ******************************************************************************************** */

.xfce4-panel.panel {
    background-color: @panel_bg;
    color: @panel_fg; 
}
.xfce4-panel.panel button.flat, 
.xfce4-panel.panel button.sidebar-button {
    color: @panel_fg; 
    border-radius: 0;
    border: none; 
}
.xfce4-panel.panel button.flat:hover, 
.xfce4-panel.panel button.sidebar-button:hover {
      border: none;
      background-color: @panel_bg_hov; 
}
.xfce4-panel.panel button.flat:active, 
.xfce4-panel.panel button.sidebar-button:active, 
.xfce4-panel.panel button.flat:checked, 
.xfce4-panel.panel button.sidebar-button:checked {
      color: @panel_fg; 
      border: none;
      background-color: @theme_accent_color; 
}

.thunar .sidebar .view, 
.thunar .sidebar iconview {
  color: @sidebar_fg;
  background-color: @sidebar_bg; 
}
.thunar .sidebar .view:selected, 
.thunar .sidebar iconview:selected, 
.thunar .sidebar .view:active, 
.thunar .sidebar iconview:active {
    background: @theme_accent_color;
    color: @sidebar_fg;
}
.thunar toolbar.horizontal button image, 
.thunar .horizontal.inline-toolbar button image {
  -gtk-icon-transform: scale(0.9); 
}

.gnome-panel-menu-bar button:not(#tasklist-button),
.mate-panel-menu-bar button:not(#tasklist-button), 
.xfce4-panel.panel button {
    color: @panel_fg;
    border-radius: 0;
    border: none;
    background-color: transparent; 
    background-image: none;
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    -gtk-icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
}
.gnome-panel-menu-bar button:hover:not(#tasklist-button),
.mate-panel-menu-bar button:hover:not(#tasklist-button), 
.xfce4-panel.panel button:hover {
    border: none;
    background-color: @panel_bg_hov; 
    background-image: none;
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    -gtk-icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
}
.gnome-panel-menu-bar button:active:not(#tasklist-button),
.mate-panel-menu-bar button:active:not(#tasklist-button), 
.xfce4-panel.panel button:active, 
.gnome-panel-menu-bar button:checked:not(#tasklist-button),
.mate-panel-menu-bar button:checked:not(#tasklist-button), 
.xfce4-panel.panel button:checked {
    color: @panel_fg;
    border: none;
    background-color: @theme_accent_color;
    background-image: none; 
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    -gtk-icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
}
.gnome-panel-menu-bar button:not(#tasklist-button) label,
.mate-panel-menu-bar button:not(#tasklist-button) label, 
.xfce4-panel.panel button label, 
.gnome-panel-menu-bar button:not(#tasklist-button) image,
.mate-panel-menu-bar button:not(#tasklist-button) image, 
.xfce4-panel.panel button image {
    color: inherit; 
    background-image: none;
    text-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
    -gtk-icon-shadow: 0 -1px alpha(@titlebutton_fg_shadow, 0.8);
}

.floating-bar {
  background-color: @theme_accent_color;
  color: @theme_selected_fg_color; 
}
.floating-bar.top {
    border-radius: 0 0 2px 2px; 
}
.floating-bar.right {
    border-radius: 2px 0 0 2px; 
}
.floating-bar.bottom {
    border-radius: 2px 2px 0 0; 
}
.floating-bar.left {
    border-radius: 0 2px 2px 0; 
}
.floating-bar .button {
    background-color: transparent;
    box-shadow: none;
    border: none; 
}
