:root {
	--y-listview-cell-height: 20px;
}

.y-component {
	overflow: hidden;
	font-size: 11px;
    line-height: normal;
    font-family: tahoma, arial, helvetica, sans-serif;
	user-select: none;
}

.y-panel {
	box-sizing: border-box;
	display: grid;
	grid-template-rows: auto 1fr auto;
}

.y-panel-title {
	padding: 5px;
	background: white;
	border-bottom: 1px solid #000;
	font-weight: bold;
}

.y-panel-body {
	overflow: auto;
}

.y-panel-buttons {
	padding: 5px 5px 2px 5px;
	text-align: right;
}

.y-tab-panel {
	grid-template-rows: auto;
}

.y-tab-root-panel {
	display: grid;
	grid-template-rows: auto 1fr;
	overflow: hidden;
}

.y-tab-buttons-panel {
	height: 25px;
}

.y-tab-panel-button {
	height: 24px;
	float: left;
	border-top: 1px solid #555;
	border-right: 1px solid #555;
	border-left: 1px solid #555;
	margin-right: 2px;
	line-height: 24px;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	padding-left: 5px;
	padding-right: 5px;
	background-color: #aaa;
	cursor: pointer;
}

.y-tab-panel-button.y-tab-active-button {
	background-color: #ccc;
	border-color: #999;
}

.y-tab-panel-button:hover:not(.y-tab-active-button) {
	background-color: #eee;
}

.y-window {
	background-color: #eee;
}

.y-panel-toolicon {
	width: 10px;
	height: 10px;
	float: right;
	cursor: pointer;
}

.y-button {
	cursor: pointer;
	height: 21px;
}

.y-button.y-small-button {
	padding: 0;
	font-size: 80%;
	height: auto;
	width: auto;
	border-radius: 0;
	min-width: auto;
}

.y-button.y-icon.y-small-button::before {
	width: 8px;
	height: 8px;
	background-size: contain;
	margin-right: 0;
	margin-left: 1px;
	margin-top: 1px;
}

.y-icon:before {
	content: "";
    display: block;
    width: 16px;
    height: 16px;
    float: left;
	margin-right: 3px;
	margin-top: 2px;
	background-repeat: no-repeat;
}

.y-border {
	border: 1px solid #000;
}

.y-box-shadow {
	box-shadow: 10px 10px 5px grey;
}

.y-rounded {
	border-radius: 0 5px 5px 5px;
}

.y-moveable {
	cursor: move;
}

.y-textarea {
	resize: none;
	user-select: text;
}

.y-label {
	user-select: text;
}

.y-textfield {
	user-select: text;
}

.y-viewport-mask {
	position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: #999;
    z-index: 10000;
    opacity: 0.5;
}

/* With header, no paging, default */
.y-listview > .y-panel-body {
	padding: 0;
	display: grid;
	grid-template-rows: var(--y-listview-cell-height) auto;
	grid-auto-flow: row;
	overflow: hidden;
	background-color: white;
}

.y-listview {
	outline: none;
}

/* Without header, with paging */
.y-listview > .y-panel-body.y-with-paging.y-headerless {
	grid-template-rows: auto var(--y-listview-cell-height);
}

/* Without header, no paging */
.y-listview > .y-panel-body.y-headerless:not(.y-with-paging) {
	grid-template-rows: auto;
}

/* With header, with paging */
.y-listview > .y-panel-body.y-with-paging:not(.y-headerless) {
	grid-template-rows: var(--y-listview-cell-height) auto var(--y-listview-cell-height);
}

.y-listview > .y-panel-body .y-odd {
	background-color: #f4f7fc;
}

.y-listview-headers {
	display: grid;
	background-color: #ddd;
	height: var(--y-listview-cell-height);
	max-height: var(--y-listview-cell-height);
	font-weight: bold;
	box-sizing: content-box;
	overflow-y: scroll;
}

.y-listview-header {
	line-height: calc(var(--y-listview-cell-height) - 1px);
	padding-left: 3px;
	padding-right: 3px;
	border-right: 1px solid #bbb;
	border-bottom: 1px solid #000;
}

/* column-in-title helpers */
.y-panel-title.y-listview-headers {
	padding-left: 3px;
	padding-right: 19px;
	overflow-y: hidden;
}
.y-panel-title.y-listview-headers .y-listview-header {
	border: 0;
	padding-left: 4px;		/* one more for border! */
	padding-right: 3px;
}

.y-listview-paging {
	background-color: #eee;
	height: var(--y-listview-cell-height);
	max-height: var(--y-listview-cell-height);
	line-height:var(--y-listview-cell-height);
	font-weight: bold;
	box-sizing: content-box;
	overflow-y: hidden;
	text-align: center;
}

.y-listview-header-first {
	border-left: 1px solid #bbb;
}

.y-listview-cells {
	overflow-y: scroll;
}

.y-listview-cellsbody {
	display: grid;
}

.y-listview-cell {
	min-height: var(--y-listview-cell-height);
	line-height: calc(var(--y-listview-cell-height) - 1px);
	padding-left: 3px;
	padding-right: 3px;
	border-right: 1px solid #bbb;
	border-bottom: 1px solid #000;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	user-select: text;
}

.y-listview-cell.y-hover, .y-listview-cell.y-odd.y-hover {
	background-color: #ececec;
	cursor: pointer;
}

.y-listview-cell.y-selected, .y-listview-cell.y-odd.y-selected {
	background-color: #dfebfd !important;
	cursor: pointer;
}

.y-listview-cell-first {
	border-left: 1px solid #bbb;
}

.y-align-left { text-align: left; }
.y-align-center { text-align: center; }
.y-align-right { text-align: right; }

.y-resizer {
	background-color: #aaa;
}

.y-resizer.y-horizontal {
	border-left: 1px solid #eee;
	border-right: 1px solid #555;
	cursor: ew-resize;
}

.y-resizer.y-vertical {
	border-top: 1px solid #eee;
	border-bottom: 1px solid #555;
	cursor: ns-resize;
}

.y-error {
	border: 1px solid red !important;
	background-color: #fee !important;
}

.y-menu-bar > .y-panel-body {
	padding: 0 0 0 5px;
	height: 20px;			/* required for vertical lines to work... */
}

.y-menu-item {
	display: inline-block;
	min-width: 32px;
	margin: 2px;
	cursor: pointer;
	min-height: var(--y-listview-cell-height);
	line-height: calc(var(--y-listview-cell-height) - 1px);
	padding: 0 5px;
	user-select: none;
}

.y-menu-item:hover {
	background-color: #ddd;
}

.y-menu-item.y-disabled:hover {
	background-color: initial;
}

.y-menu-line-horizontal {
	margin: 3px 0px;
	height: 1px;
	width: 100%;
	border-bottom: 1px solid #aaa;
}

.y-menu-line-vertical {
	margin: 0px 3px;
	width: 1px;
	border-left: 1px solid #aaa;
	height: 100%;
}

.y-submenu-btn {
	width: 16px;
	height: 16px;
	display: inline-block;
	vertical-align: middle;
	padding-left: 2px;
}

.y-submenu-btn::before {
	content: 'v';
	font-weight: bold;
	vertical-align: bottom;
	position: relative;
	top: -4px;
	left: 4px;
}

.y-submenu-btn.y-side::before {
	content: '>';
}

.y-menu .y-panel-body {
	align-items: stretch;
}

.y-upload-view > .y-panel-body {
	grid-auto-flow: row;
	grid-template-columns: 2fr;
	grid-template-rows: auto 1fr;
	grid-gap: 10px;
	grid-template-areas:
		"select"
		"list";
}

.y-upload-view.y-extra-controls > .y-panel-body {
	grid-template-columns: 2fr 1fr 2fr;
	grid-template-areas:
		"select counter removeAll"
		"list   list    list";
}

.y-tableview .y-panel-body {
	align-content: start;
	justify-content: start;
}

.y-tableview .y-tableview-cell {
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	padding: 4px;
	border-left: 1px solid #999;
	border-top: 1px solid #999;
}

.y-tableview .y-last-row {
	border-bottom: 1px solid #999;
}
.y-tableview .y-last-column {
	border-right: 1px solid #999;
}

.y-tableview .y-tableview-header {
	background-color: #ddd;
	padding: 4px;
	font-weight: bold;
	border-left: 1px solid #999;
	border-top: 1px solid #999;
	min-width: 30px;
	text-align: center;
}

.y-tableview-cell.y-hover, .y-tableview-cell.y-hover {
	background-color: #ececec;
	cursor: pointer;
}

.y-tableview-cell.y-selected, .y-tableview-cell.y-selected {
	background-color: #dfebfd !important;
	cursor: pointer;
}

.y-tableview > .y-panel-body > .y-root-header,
.y-tableview > .y-panel-body > .y-column-header {
	position: sticky;
	top: 0;
	z-index: 1;		/* in chrome other cells go on top of this sticky header sometimes... :/ */
}

.y-treeview > .y-panel-body {
	background-color: #fafafa;
}

.y-treeview-container {
	width: 100%;
	border-spacing: 0px;
}

.y-treeview-container thead th {
	border-bottom: 1px solid black;
	font-weight: bold;
	padding: 4px;
}

.y-treeview-container tbody td {
	border-bottom: 1px solid #999;
	padding: 4px;
}

.y-treeview-container tbody tr:hover td {
	background-color: #d1e1f4;
	cursor: pointer;
}

.y-treeview-container tbody tr.y-selected td {
	background-color: #99bbe8;
}

.y-treeview-container tbody tr.y-collapsed td.y-first {
	background-image: url(node-collapsed.png);
	background-repeat: no-repeat;
	background-position: left center;
}

.y-treeview-container tbody tr.y-expanded td.y-first {
	background-image: url(node-expanded.png);
	background-repeat: no-repeat;
	background-position: left center;
}

.y-treeview-container tbody tr.y-hidden td {
	display: none;
}

.y-scrollbox {
	background-color: transparent !important;
}