/* Gajim Application CSS File */

/* GTK named colors
Taken from: https://gitlab.gnome.org/GNOME/gtk/-/blob/gtk-3-24/gtk/theme/Adwaita/_colors-public.scss
@theme_fg_color
@theme_text_color
@theme_bg_color
@theme_base_color
@theme_selected_bg_color
@theme_selected_fg_color
@insensitive_bg_color
@insensitive_fg_color
@insensitive_base_color
@theme_unfocused_fg_color
@theme_unfocused_text_color
@theme_unfocused_bg_color
@theme_unfocused_base_color
@theme_unfocused_selected_bg_color
@theme_unfocused_selected_fg_color
@unfocused_insensitive_color
@borders
@unfocused_borders
@warning_color
@error_color
@success_color
*/

/* GTK specific changes =================================================== */
/* Remove backdrop anomation */
row:backdrop { transition: none; }
/* Treeview */
treeview.space { padding: 6px; }
/* GtkLinkButton style */
button.flat.link { padding: 0; border: 0; }

.tabular-digits { font-feature-settings: "tnum"; }

.confirmation-dialog .dialog-vbox { margin: 18px; }
.confirmation-dialog .dialog-vbox > :first-child { margin-bottom: 12px; }
.confirmation-dialog button {
    border-radius: 9px;
}

/* InfoBar */
.infobar > box {
    padding: 12px 18px;
    border-bottom: 1px solid @borders;
}
.infobar.info > box {
    color: #3A87AD;
    background-color: #D9EDF7;
}
.infobar.question > box {
    color: #295A72;
    background-color: #AFDAF0;
}
.infobar.warning > box {
    color: #D06821;
    background-color: #FFEBC0;
}
.infobar.error > box {
    color: #B94A48;
    background-color: #F2DEDE;
}

/* ========================================================================= */
/* Text style */
.bold { font-weight: bold; }
.monospace { font-family: monospace; }
.bold14 {
    font-size: 1.125rem;
    font-weight: bold;
}
.bold16 {
    font-size: 1.33rem;
    font-weight: bold;
}
.bold24 {
    font-size: 2.0rem;
    font-weight: bold;
}
.large-header {
    font-size: 1.75rem;
    font-weight: bold;
}
.small-label {
    font-size: 90%;
}
.draft {
    font-style: italic;
    color: @warning_color;
}

/* General Padding / Margin */

.m-3 { margin: 3px; }
.m-6 { margin: 6px; }
.m-9 { margin: 9px; }
.m-12 { margin: 12px; }
.m-18 { margin: 18px; }

.mt-3 { margin-top: 3px; }
.mt-6 { margin-top: 6px; }
.mt-9 { margin-top: 9px; }
.mt-12 { margin-top: 12px; }
.mt-18 { margin-top: 18px; }

.mb-3 { margin-bottom: 3px; }
.mb-6 { margin-bottom: 6px; }
.mb-9 { margin-bottom: 9px; }
.mb-12 { margin-bottom: 12px; }
.mb-18 { margin-bottom: 18px; }

.ms-3 { margin-left: 3px; }
.ms-6 { margin-left: 6px; }
.ms-9 { margin-left: 9px; }
.ms-12 { margin-left: 12px; }
.ms-18 { margin-left: 18px; }

.me-3 { margin-right: 3px; }
.me-6 { margin-right: 6px; }
.me-9 { margin-right: 9px; }
.me-12 { margin-right: 12px; }
.me-18 { margin-right: 18px; }

.mx-3 { margin-left: 3px; margin-right: 3px; }
.mx-6 { margin-left: 6px; margin-right: 6px;}
.mx-9 { margin-left: 9px; margin-right: 9px;}
.mx-12 { margin-left: 12px; margin-right: 12px;}
.mx-18 { margin-left: 18px; margin-right: 18px;}

.my-3 { margin-top: 3px; margin-bottom: 3px; }
.my-6 { margin-top: 6px; margin-bottom: 6px;}
.my-9 { margin-top: 9px; margin-bottom: 9px;}
.my-12 { margin-top: 12px; margin-bottom: 12px;}
.my-18 { margin-top: 18px; margin-bottom: 18px;}

.p-3 { padding: 3px; }
.p-6 { padding: 6px; }
.p-9 { padding: 9px; }
.p-12 { padding: 12px; }
.p-18 { padding: 18px; }

.pt-3 { padding-top: 3px; }
.pt-6 { padding-top: 6px; }
.pt-9 { padding-top: 9px; }
.pt-12 { padding-top: 12px; }
.pt-18 { padding-top: 18px; }

.pb-3 { padding-bottom: 3px; }
.pb-6 { padding-bottom: 6px; }
.pb-9 { padding-bottom: 9px; }
.pb-12 { padding-bottom: 12px; }
.pb-18 { padding-bottom: 18px; }

.ps-3 { padding-left: 3px; }
.ps-6 { padding-left: 6px; }
.ps-9 { padding-left: 9px; }
.ps-12 { padding-left: 12px; }
.ps-18 { padding-left: 18px; }

.pe-3 { padding-right: 3px; }
.pe-6 { padding-right: 6px; }
.pe-9 { padding-right: 9px; }
.pe-12 { padding-right: 12px; }
.pe-18 { padding-right: 18px; }

.px-3 { padding-left: 3px; padding-right: 3px; }
.px-6 { padding-left: 6px; padding-right: 6px;}
.px-9 { padding-left: 9px; padding-right: 9px;}
.px-12 { padding-left: 12px; padding-right: 12px;}
.px-18 { padding-left: 18px; padding-right: 18px;}

.py-3 { padding-top: 3px; padding-bottom: 3px; }
.py-6 { padding-top: 6px; padding-bottom: 6px;}
.py-9 { padding-top: 9px; padding-bottom: 9px;}
.py-12 { padding-top: 12px; padding-bottom: 12px;}
.py-18 { padding-top: 18px; padding-bottom: 18px;}

/* Colors */
.success-color { color: @success_color; }
.error-color { color: @error_color; }
.warning-color { color: @warning_color; }
.info-color { color: rgb(75, 150, 200); }
.selected-color { color: @theme_selected_bg_color; }
.insensitive-fg-color {color: @insensitive_fg_color;}
.encrypted-color { color: rgb(75, 181, 67); }
.unencrypted-color { color: @error_color; }
.receipt-received-color { color: rgb(75, 181, 67); }

/* Generic animations */
@keyframes pulse-opacity {
    0%  { opacity: 1.0; }
    20% { opacity: 0.7; }
    45% { opacity: 1.0; }
}
.pulse-opacity {
    animation-name: pulse-opacity;
    animation-duration: 2.0s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
.dnd-target {
    animation-name: pulse-opacity;
    animation-duration: 1.6s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@keyframes pulse-transform {
    0%  { -gtk-icon-transform: scale(1.0); }
    20% { -gtk-icon-transform: scale(1.1); }
    35% { -gtk-icon-transform: scale(1.0); }
}
.pulse-transform {
    animation-name: pulse-transform;
    animation-duration: 2.0s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}
@keyframes spin {
    to { -gtk-icon-transform: rotate(1turn); }
}
.spin {
    animation-name: spin;
    animation-duration: 1s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.opacity-0 {
    opacity: 0;
}

/* General purpose classes ================================================= */
.solid-background { background-color: @theme_base_color; }
.border { border: 1px solid @borders; }
.no-border { border: none; }
.scrolled-no-border { border: none; }
.preview-image {
    border-radius: 4px;
    box-shadow: 0px 0px 3px 0px alpha(@theme_text_color, 0.2);
}

/* Scrollbars */
.no-scroll-indicator undershoot.top, undershoot.bottom { background-image: none; }
.scrollbar-style scrollbar trough {background-color:@theme_base_color; }
.scrollbar-style scrollbar {border:none; }

/* Treeview */
.gajim-treeview { padding: 5px; }
.gajim-treeview check { padding: 0px; }
.gajim-scrolled {
    border: 1px solid;
    border-color:@unfocused_borders;
}

/* ListBox */
.gajim-listbox {
    background: transparent;
}
.gajim-listbox row {
    padding: 12px;
    border-bottom: 1px solid @borders;
}

/* Drag and drop */
.dnd-area {
    border: 2px dashed @theme_selected_bg_color;
    border-radius: 6px;
    padding: 18px;
}

/* .inline-toolbar linked from top */
.ontop-bar {
    border-width: 1px;
    border-bottom: none;
    border-radius: 3px 3px 0 0;
    padding: 5px;
}

/* Container with buttons linked from below */
.linked-up * {
    border-top: none;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

/* Unread counter */
.unread-counter {
    background-color: rgb(22, 100, 169);
    color: rgb(242, 242, 242);
    font-weight: bold;
    font-size: 80%;
    padding-left: 6px;
    padding-right: 6px;
    border-radius: 10px;
}
.unread-counter-silent {
    background-color: rgb(95, 95, 95);
}

.badge {
    color: rgb(242, 242, 242);
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 4px;
    font-size: 80%;
    font-weight: bold;
}
.hat-badge {
  background-color:#295a72;
  font-size: 100%;
}

.group {
    color: rgb(242, 242, 242);
    padding-left: 6px;
    padding-right: 6px;
    padding-top: 2px;
    padding-bottom: 2px;
    border-radius: 4px;
    font-size: 80%;
    font-weight: bold;
    background-color: rgb(128, 128, 128);
}

.link-button { min-height: 0px; }

.floating-overlay-box {
    background-color: alpha(shade(@theme_bg_color, 0.3), 0.8);
    padding: 12px;
    border-radius: 6px;
}
.floating-overlay-box > label,
.floating-overlay-box > spinner {
    color: shade(@theme_bg_color, 4.0);
}

/* Main Window ============================================================= */
.mainwindow-grid {
    background: @theme_base_color;
}

.gajim-app-window.window-padding > box {
    padding: 18px;
}


/* Generic sidebar / chatlist elements */
.account-identifier-bar {
	border-radius: 6px;
}
.selection-bar {
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
}
.selection-bar-selected {
    background-color: lighter(@theme_selected_bg_color);
}
.selection-bar-hover {
    background-color: @theme_selected_bg_color;
}

/* ActivitySidebar, WorkspaceSidebar, AccountSidebar */
.chatlist-left-grid {
    border-right: 1px solid @unfocused_borders;
    background: @theme_bg_color;
}

/* ActivitySidebar */
.activity-sidebar {
    background: transparent;
    margin-top: 6px;
    margin-bottom: 6px;
}

.activity-sidebar image {
    background-color: mix(@theme_base_color, @theme_fg_color, 0.2);
    border-radius: 9px;
    padding: 6px;
    margin: 6px 6px 0px 7px;
}

.activity-sidebar .selection-bar {
    margin-top: 6px;
    margin-bottom: 0px;
}

.activity-box > separator {
    background-color: darker(@theme_bg_color);
}

/* ActivityPage */
.activity-page {
    padding: 18px;
    margin-top: 12px;
}

/* WorkspaceSidebar */
.workspace-scrolled {
    background: transparent;
}
.workspace-sidebar {
	background: transparent;
	margin-right: 6px;
}
.workspace-sidebar-item {
	padding-top: 0px;
	padding-bottom: 0px;
}
.workspace-sidebar-item:selected,
.workspace-sidebar-item:hover,
.workspace-sidebar-item:focus {
	background: transparent;
	box-shadow: none;
	outline: none;
}
.workspace-sidebar-item .selection-bar {
    margin-top: 6px;
    margin-bottom: 6px;
}
.workspace-sidebar-item:selected .selection-bar {
    background-color: lighter(@theme_selected_bg_color);
}
.workspace-sidebar-item:hover .selection-bar {
    background-color: @theme_selected_bg_color;
}
.workspace-sidebar-item image {
    border-radius: 9px;
    margin: 4px 0 4px 4px;
}
.workspace-add:hover,
.workspace-add:focus {
    background: transparent;
    box-shadow: none;
    outline: none;
}
.workspace-add button {
    margin: 6px 8px 6px 14px;
}
.workspace-avatar {
    border: 2px solid transparent;
}
.dnd-target .workspace-avatar {
    border: 2px dashed @theme_selected_bg_color;
}

/* AccountSidebar */
.account-sidebar {
    background: transparent;
}
.account-sidebar .selection-bar {
    margin-top: 6px;
    margin-bottom: 12px;
}
.account-sidebar > box > image {
    padding: 6px 6px 12px 6px;
}

.account-box {
    background-color: mix(@theme_base_color, @theme_fg_color, 0.15);
}
.account-box > separator {
    background-color: darker(@theme_bg_color);
}

/* AccountPage */
.account-page {
    background: transparent;
}
.account-page-box {
    padding: 18px;
}

/* ActivityListView */
.activity-list-view row {
    transition: none;
    padding: 4px 0px 4px 6px;
    margin: 0 10px 3px 10px;
    border: 2px solid transparent;
    border-radius: 6px;
}
.activity-list-view row:active,
.activity-list-view row:selected:active {
    box-shadow: none;
}
.activity-list-view row:selected {
    background-color: mix(@theme_base_color, @theme_fg_color, 0.1);
    outline: none;
}
.activity-list-view row:selected label {
    color: @theme_text_color;
}
.activity-list-view row button {
    min-width: 25px;
    min-height: 25px;
    padding: 0px;
}
.activity-list-view row:selected button {
	color: @theme_fg_color;
    border-color: @borders;
}
.activity-list-view row:selected image {
	color: @theme_fg_color;
}

/* Middle Grid (ChatList and widgets on top) */
.middle-grid > scrolledwindow { background: transparent; }

.chat-page-header {
	padding: 12px;
	background: transparent;
}
.chat-filter-active {
    background: @theme_selected_bg_color;
    border-radius: 50%;
}

/* ChatList */
.chatlist {
    background: transparent;
}
.chatlist-row {
    transition: none;
    padding: 4px 0px 4px 6px;
    margin: 0 10px 3px 10px;
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: @theme_base_color;
}
.chatlist-row:hover{
	background-color: @theme_bg_color;
}
.chatlist-row:active,
.chatlist-row:selected:active {
    box-shadow: none;
}
.chatlist-row:selected {
    background-color: mix(@theme_base_color, @theme_fg_color, 0.1);
    outline: none;
}
.chatlist-row:selected label:not(.unread-counter){
    color: @theme_text_color;
}
.chatlist-row button {
    min-width: 25px;
    min-height: 25px;
    padding: 0px;
}
.chatlist-row:selected button {
	color: @theme_fg_color;
    border-color: @borders;
}
.chatlist-row:selected image {
	color: @theme_fg_color;
}
.chatlist-row:selected spinner {
    color: @theme_fg_color;
}
.dnd-target-chatlist {
    animation-name: pulse-opacity;
    animation-duration: 2.0s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
    border: 2px dashed @theme_selected_bg_color;
}

@keyframes composing {
    0%  {
	    -gtk-icon-transform: translate(0px, 2px);
	}
    10% {
	    -gtk-icon-transform: translate(0px, -1px) rotate(20deg);
	}
    30% {
	    -gtk-icon-transform: translate(0px, -1px) rotate(-20deg);
	}
    40% {
	    -gtk-icon-transform: translate(0px, 2px);
	}
    100% {
        -gtk-icon-transform: translate(0px, 2px);
    }
}
.chat-state-icon {
    animation-name: composing;
    animation-duration: 2.0s;
    animation-timing-function: ease-in-out;
    animation-iteration-count: infinite;
}

.header-box label {
	padding: 12px 18px 6px 18px;
	font-weight: bold;
	color: @insensitive_fg_color;
	font-size: 90%;
}
.header-box-first label {
	padding: 0px 18px 6px 18px;
}

/* SearchView */
.search-view {
    padding: 13px 12px 12px 12px;
    border-left: 1px solid @borders;
    background-color: @theme_base_color;
}
.search-view-row {
    padding: 4px 3px 4px 6px;
    border-radius: 4px;
    transition: opacity 500ms ease-in-out;
}
.search-view-row-grid textview {
	background: transparent;
}
.search-view-row-grid textview text {
	background: transparent;
}
.search-view-row-grid label {
    font-size: 90%;
}
.search-view-counter label {
    font-style: italic;
    color: @insensitive_fg_color;
}
.search-view-header {
    padding: 12px 6px 6px 6px;
}
.search-view-header label {
    font-size: 90%;
    color: @insensitive_fg_color;
}

/* MessageActionsBox */
.message-actions-box { margin: 2px 13px 8px 8px; }
.message-actions-box > box > box > button:not(:hover),
.message-actions-box > box > box > menubutton > button:not(:hover) {
    background: transparent;
    border: 1px solid transparent;
    box-shadow: none;
}
.message-actions-box > box > box > button:hover,
.message-actions-box > box > box > menubutton > button:hover {
    border: 1px solid transparent;
    border-radius: 8px;
}

/* MessageInputTextView */
.message-input-textview,
.message-input-textview text {
    background-color: transparent;
}
.message-input-border {
    border: 2px solid @theme_unfocused_bg_color;
    border-radius: 4px;
}
.message-input-focus {
    border: 2px solid @theme_selected_bg_color;
    border-radius: 4px;
}

/*CompletionPopover*/
.completion-popover > contents {
    padding: 12px;
}
.completion-popover > contents > box > label {
    padding: 0px 0px 6px 3px;
}
.completion-popover listview {
    background-color: transparent;
}
.nickname-completion > row,
.command-completion > row,
.emoji-completion > row {
    padding: 6px 9px 6px 9px;
}
.nickname-completion > row:selected,
.command-completion > row:selected,
.emoji-completion > row:selected {
    border-radius: 18px;
}

.emoji-completion > row button { padding: 0px 12px 0px 12px; }

/* ConversationView ======================================================== */

/* BaseRow */
.conversation-row {
    padding: 10px 3px 4px 6px;
    border-radius: 4px;
    margin-left: 8px;
    margin-right: 2px;
}
.conversation-row:hover button {
    opacity: 1;
}
.conversation-row:selected * {
    background-color: @theme_selected_bg_color;
    color: @theme_selected_fg_color;
}
.conversation-row grid textview:not(.sourceview),
.conversation-row grid textview:not(.sourceview) text {
	background: transparent;
}

/* Help class for emulating prelight state */
.conversation-row-hover {
    background-color: @theme_bg_color;
}
.conversation-row:selected.conversation-row-hover {
    background-color: @theme_selected_bg_color;
}

/* FileTransferJingleRow */
.file-transfer {
    padding: 10px;
    margin: 5px;
    background-color: @theme_unfocused_base_color;
    border: 1px solid @borders;
    border-radius: 5px;
}

/* SystemRow */
.conversation-system-row {
    padding: 18px;
}

/* DateRow */
.conversation-date-row {
    padding: 12px;
}

/* CommandRow */
.conversation-command-row .gajim-command-error,
.conversation-command-row .gajim-command-output {
    font-weight: 600;
    border-radius: 6px;
    padding: 12px;
}

/* Conversation row styles */
.merged { padding-top: 1px; }
.moderated-message { opacity: 0.4; }
.transparent-selection > selection {
    background-color: transparent;
    color: @theme_fg_color;
}

.conversation-row-highlight {
    transition: background-color 1s;
    background-color: alpha(@theme_selected_bg_color, 0.8);
}

/* Row widgets ============================================================ */
.conversation-subject-box,
.conversation-call-box {
    border-radius: 6px;
    padding: 12px;
}
.conversation-call-box label {
    font-size: 90%;
}

/* QuoteWidget */
.conversation-quote {
    padding-bottom: 6px;
}
.conversation-quote textview text,
.conversation-quote label {
    color: alpha(@theme_text_color, 0.6);
}
.conversation-quote-bar {
    background-color: alpha(@theme_text_color, 0.2);
}

/* CodeWidget */
.code-widget {
    border: 1px solid @borders;
    border-radius: 4px;
    margin-top: 6px;
    margin-bottom: 6px;
}
.code-widget-header {
    background-color: alpha(@insensitive_fg_color, 0.4);
    padding: 0 6px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
}
.code-widget-header label {
    font-size: 90%;
}
.code-widget-header button {
    padding: 0;
}

/* ReferencedMessageWidget */
.referenced-message {
    padding: 8px;
    border: 1px solid @borders;
    border-radius: 4px;
    background-color: alpha(@insensitive_fg_color, 0.06);
}

.referenced-message #quote-bar {
    background-color: alpha(@insensitive_fg_color, 0.7);
    border-radius: 3px;
}

/* PreviewWidget */
.preview-stack > box {
    border: 1px solid;
    border-color: @borders;
    border-radius: 4px;
    padding: 10px;
    background-color: @theme_unfocused_base_color;
}
.preview-image-button,
.preview-image-button:hover {
    padding: 0px;
    border: none;
    outline: none;
    transition: none;
    -gtk-icon-shadow: none;
    background-image: none;
    text-shadow: none;
    box-shadow: none;
}
.preview-image-button > picture {
    border-radius: 4px;
}
.preview-content-box {
    border-radius: 4px;
}
.preview-content-box:hover {
    background: alpha(@theme_fg_color, 0.1);
}
.preview-image-overlay {
    background: alpha(@theme_bg_color, 0.9);
    padding: 4px 12px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}
.preview-image-overlay-button {
    background: @theme_bg_color;
}
.preview-image-overlay-button:hover {
    background: shade(@theme_bg_color, 0.92);
}

/* Conversation meta elements */
.conversation-meta {
    opacity: 0.6;
    font-size: 90%;
}
.conversation-read-marker {
    color: @insensitive_fg_color;
    font-size: 90%;
    font-style: italic;
}
.conversation-nickname {
    font-size: 90%;
    font-weight: bold;
}

/* ReactionsBar */
.reaction {
    border: 1px solid @borders;
    border-radius: 18px;
    padding: 2px 6px;
    outline: none;
 }
 .reaction:hover {
    border-color: @theme_selected_bg_color;
    background: alpha(@theme_selected_bg_color, 0.3);
 }
 .reaction-from-us {
    border-color: alpha(@theme_selected_bg_color, 0.9);
    background: alpha(@theme_selected_bg_color, 0.1);
}
.reaction label {
    font-size: 90%;
}
.reaction-add-show-all > button {
    border: 1px solid @borders;
    border-radius: 18px;
    padding: 2px;
}
.dummy-emoji-entry {
    padding: 0;
    border: 0;
}

/* Multi-purpose elements / widgets ======================================== */

/* ContactFlowBox */
.contact-flowbox-item {
    background-color: alpha(@borders, 0.4);
    border-radius: 12px;
    padding: 6px;
}
.contact-flowbox-item button {
    background: none;
    border: 1px solid alpha(@borders, 0.4);
}
.contact-flowbox-item button:hover {
    border: 1px solid @borders;
}

/* ResourceSelector */
.resource-selector list row {
    padding: 6px;
    border-bottom: 1px solid @borders;
}

/* AvatarSelector */
.avatar-selector {
    border: 2px dotted @theme_selected_bg_color;
    border-radius: 12px;
    padding: 18px;
}

/* DataFormWidget */
.field-fixed { font-size: 1.33rem; font-weight: bold; padding-top:5px;}
.data-form-title { font-size: 1.33rem; font-weight: bold; }
.data-form-widget grid { margin: 0px 18px 18px 18px; }
.data-form-widget treeview { padding: 5px; }
.data-form-widget scrolledwindow { border: 1px solid; border-color:@unfocused_borders; }
.data-form-widget textview { padding: 5px; }

/* Miscellaneous widgets ================================================== */

/* Notification (Windows) */
#NotificationPopup {
    background-color: #333333;
    padding: 4px;
}
#NotificationPopup label {
    color: #FFF;
}
#NotificationPopup button {
    border-width: 0;
    background-image: none;
    background-color: inherit;
    box-shadow: none;
    text-shadow: none;
    -gtk-icon-shadow: none;
}
#NotificationPopupTitle {
    font-weight: bold;
}

/* Settings widgets ======================================================== */

/* SettingsBox */
.settings-box > row {
    border-bottom: 1px solid @theme_unfocused_bg_color;
}
.settings-box > row:last-child { border-bottom: 0px; }
.settings-box > row.activatable:active { box-shadow: none; }
.settings-box > row { padding: 10px 20px 10px 10px; }
.settings-box > row:not(.activatable) label { color: @insensitive_fg_color; }

.settings-stack > box,
.settings-stack viewport > box {
    margin: 30px 25px;
}

window.settings-dialog row {
    border-bottom: 0px;
}
window.settings-dialog list { 
    background: transparent;
    margin: 12px;
}

/* GenericSetting */
#SubDescription { color: @insensitive_fg_color; font-size: 90%; }
#GenericSettingBox { margin-left: 30px; }
#GenericSettingBox > label { padding-right: 3px; }

/* Generic Popover Menu with Buttons */
.PopoverButtonListbox { padding-left: 0px; padding-right: 0px; }
.PopoverButtonListbox > list { margin-top: 10px; margin-bottom: 10px; }
.PopoverButtonListbox > list > row { padding: 10px 20px 10px 20px; }
.PopoverButtonListbox > list > row.activatable:active { box-shadow: none; background-color: @theme_selected_bg_color; }

/* Settings ListBox */
list.settings {
    border: 1px solid @borders;
}
list.settings > row:not(:last-child) {
	border-bottom: 1px solid @theme_unfocused_bg_color;
}
list.settings row { min-height: 52px; }
list.settings > row > box {
    margin: 10px 20px 10px 10px;
}

/* Settings Window */
list.settings-menu row {
    border-bottom: 1px solid;
    border-color: @theme_unfocused_bg_color;
    padding: 14px;
    min-width: 170px;
}
list.settings-menu row label {
    padding-left: 12px;
}

popover.combo list {
    min-width: 200px;
    margin: 12px;
}
popover.combo { padding: 0px; }
popover.combo list {
    border-style: none;
    background-color: transparent;
}
popover.combo list > row {
    padding: 0px 12px 0px 12px;
    min-height: 40px;
}
popover.combo list > row:not(:last-child) { border-bottom: 1px solid alpha(#cdc7c2, 0.5); }
popover.combo scrollbar.vertical { padding-top: 2px; padding-bottom: 2px; }
popover.combo scrollbar.vertical {
    padding-top: 2px;
    padding-bottom: 2px;
}

/* Dialogs ================================================================= */

/* ProfileWindow */
#NicknameEntry:disabled {
    border: none;
    background-color: @theme_unfocused_bg_color;
    padding: 0px 0px 0px 0px;
}
#NicknameEntry text:disabled {
    font-size: 2.3rem;
    font-weight: bold;
    color: @theme_fg_color;
}

#ProfileWindow grid { padding: 18px; }
#ProfileWindow grid > button {
    padding-left: 4px;
    padding-right: 4px;
}
#ProfileWindow popover { padding: 6px; }
#ProfileWindow actionbar box  {
    padding: 0px;
}
#ProfileWindow actionbar button {
   margin-top: 12px;
}
.profile-scrolled {
    border: 1px solid @borders;
    border-radius: 4px;
}
.profile-scrolled-read textview {
    background: transparent;
}
.profile-scrolled-read textview text {
    background: transparent;
    color: @theme_text_color;
}

/* ContactInfo / GroupchatDetails */
.stack-border {
    border: 1px solid;
    border-color: @borders;
}
.stack-header {
    background-color: @insensitive_bg_color;
    border-width: 0 1px 0 1px;
    border-style: none solid none solid;
    border-color: @borders;
    padding: 9px 9px;
}
#ContactNameEntry:disabled {
    border: none;
    background-color: transparent;
    padding: 0px 0px 0px 0px;
}
#ContactNameEntry text:disabled {
    font-size: 2.0rem;
    font-weight: bold;
    color: @theme_fg_color;
}

/* FullMessageWindow */
#FullMessageWindow textview { padding: 10px; }

/* ManageRoster */
#ManageRoster #scrolled {
    border: 1px solid @borders;
}
#ManageRoster listview header {
    font-weight: bold;
    padding: 6px;
    background: alpha(@borders, 0.3);
}

/* HistorySyncAssistant */
#HistorySyncAssistant notebook { padding: 18px; }
#HistorySyncAssistant progressbar text { font-size: 1.6rem; padding: 10px;}
#HistorySyncAssistant list { border: 1px solid; border-color: @borders; }
#HistorySyncAssistant list > row { padding: 10px 30px 10px 30px; }
#HistorySyncAssistant list > row > label { color: @insensitive_fg_color; }
#HistorySyncAssistant list > row.activatable > label { color: @theme_text_color; }
#HistorySyncAssistant list > row.activatable:selected > label { color: @theme_selected_fg_color; }
#FinishedLabel { font-size: 1.2rem; font-weight: bold; }

/* ServerInfo */
#ServerInfo notebook { border: none; }
#ServerInfo notebook > stack { padding: 18px; }
#ServerInfo > box { padding: 0px; }
#ServerInfo #Features { border: 1px solid; border-color: @borders; }
#ServerInfo #Features > row:first-child { border-top: 1px solid; border-color: @borders; }
#ServerInfo #Features > row { padding: 10px 20px 10px 10px; }
#ServerInfo #Features > label { padding:10px; color: @insensitive_fg_color; font-weight: bold; }
#ServerInfo #Features > row.activatable:active { box-shadow: none; }

/* Features */
#FeaturesInfoGrid { padding: 6px; }
#FeaturesInfoGrid > list { border: 1px solid; border-color: @borders; }
#FeaturesInfoGrid > list > row:first-child { border-top: 1px solid; border-color: @borders; }
#FeaturesInfoGrid > list > row { padding: 10px 20px 10px 10px; }
#FeaturesInfoGrid > list > label { padding:10px; color: @insensitive_fg_color; font-weight: bold; }
#FeaturesInfoGrid > list > row.activatable:active { box-shadow: none; }

/* AccountsWindow */
.accounts-menu {
    border-right: 1px solid @borders;
}
.accounts-menu-listbox > row {
    border-bottom: 1px solid @theme_unfocused_bg_color;
    padding: 10px 20px 10px 10px;
}
.accounts-label-row {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.6rem;
    font-weight: bold;
    color: @insensitive_fg_color;
}

/* AccountWizard */
.tls-error-list {
    border: 1px solid; border-color: @borders;
}
.tls-error-list > row {
    border-bottom: 1px solid; border-color: @theme_unfocused_bg_color;
    padding: 6px;
}
.tls-error-list > row:last-child {
    border-bottom: 0px;
}

/* OMEMO */
.fingerprint {
    color: @insensitive_fg_color;
    font-family: monospace;
    font-size: 90%;
}
.omemo-inactive-color { color: @insensitive_fg_color; }

.omemo-trust-manager list row {
    border-bottom: 1px solid;
    border-color: @unfocused_borders;
    padding: 10px 20px 10px 10px;
}
.omemo-trust-manager list {
    border: 1px solid;
    border-color:@unfocused_borders;
}
.omemo-trust-manager list > row { outline: none; }

.omemo-trust-popover row { padding: 10px 15px 10px 10px; }

/* StartChatDialog */
.start-chat-treeview { padding: 5px; }
.start-chat-treeview:focus {outline: none; }
.start-chat-scrolled { border: 1px solid; border-color:@unfocused_borders; }
.start-chat-row { border-bottom: 1px solid; border-color: @theme_unfocused_bg_color; }
.start-chat-row:last-child { border-bottom: 0px; }
.start-chat-row.activatable:active { box-shadow: none; }
.start-chat-row { padding: 5px 20px 5px 8px; }
.start-chat-row:focus { outline: none; }

/* GroupchatConfig */
#GroupchatConfig stack { border-bottom: 1px solid; border-color: @borders;}
#GroupchatConfig stacksidebar > scrolledwindow {
    background-color: @theme_base_color;
    border-bottom: 1px solid;
    border-color: @borders;
}
#GroupchatConfig treeview { padding: 5px; }

/* Themes */
.theme_listbox row { border-bottom: 1px solid; border-color: @theme_unfocused_bg_color; padding: 5px 10px 5px 10px;}
.theme_listbox row:last-child { border-bottom: 0px; }
.theme_listbox row.activatable:active { box-shadow: none; }
.theme_listbox row:not(.activatable) label { color: @insensitive_fg_color; }
.theme_listbox row:focus { outline: none; }
.theme_listbox row:hover { background-color: @theme_base_color; }

.theme_remove_button {
    background-color: @theme_base_color; 
    border: none;
    background-image: none;
}
.theme_remove_button:focus {outline: none;}

.theme_popover_listbox { padding: 10px; }
.theme_popover_listbox row { padding: 5px; }
.theme_popover_listbox row:focus { outline: none; }
