#tilesViewSwitcher {
    display: flex;
	justify-content: flex-end;
    gap: 5px;
    margin-bottom: 12px;
}

.view-switch-btn {
	border: solid 1px var(--color-gray-cc);
	border-radius: 6px;
	padding: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    opacity: 0.4;
    transition: opacity .2s;
}

.view-switch-btn:hover {
    opacity: 0.8;
}

.view-switch-btn.active {
    opacity: 1;
	background-color: var(--color-orange);
	border:0;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 10px; 
    align-content: start;
    margin-top:10px; 
	width:100%;
}

.tiles > * {
  max-width: 700px;
}

.tile, .tile-item {
	position:relative;
	padding:10px;
	border: solid 1px var(--color-gray-cc);
	border-bottom:solid 1px var(--color-gray-555);
	border-radius: 6px;
	background:var(--color-white);
	box-shadow: 1px 1px 3px var(--color-gray-ef);
	display: flex;
	gap:10px;
}

.tile-thumb {
	min-width:112px;
    width:112px;
    height: 150px;
    overflow: hidden;
	background-color: var(--color-white);
	border: solid 1px var(--color-gray-cc);
	border-radius: 3px;
	cursor:pointer;
	display: flex;
	justify-content: center;
	align-items: center;

}

.tile-thumb > * {
display: block;
}

.tile-thumb img {
	max-width:112px;
	max-height:150px;
}

.tile-thumb .file-icon {
	min-width: 80px;
}


.tile-content {
	flex-grow: 1;
    font-size: 1.1em;
    overflow: hidden;  
	text-align: left;
	display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.tile-original {
	font-size: 1em;
	display:block;
	word-break: break-word;
	margin-bottom:10px;
}

.tile-system {
	font-size: 0.7em;
	display:block;
	margin-top:5px;
    text-align: left;
}

.tile-info {
	font-size:0.8em;
	display:block;
	margin-top:5px;
    text-align: left;
}

.tile-amounts {
	
	display:grid;
	grid-template-columns: auto auto auto;
	word-wrap: break-word;
	grid-column-gap: 3px;
	grid-template-rows: repeat(3, 1fr);
	grid-row-gap: 0px; 
	justify-items: end;
	justify-content: start; 
	font-size: 0.8em;
	margin-top:5px;
}

.tile-am-st-wrapper {
	display: grid;
	grid-template-columns: auto auto;
	align-content: center;
}

.tile-contractor {
	font-size: 0.8em;
	margin-top:7px;
	text-align: left;
	font-weight: 400;
}

.tile-tools {
    display: flex;
    flex-direction: column;
	gap:3px;
    width:45px;
	margin-left:5px;
	padding-left:10px;
	font-size:0.9em;
	border-left:solid 1px var(--color-gray-cc);
}

.tile-duplicate, .tile-potduplicate {
	color:red;
	display:inline-block;
	border:solid 1px red;
	padding:5px;
	font-size:10pt;
	margin:5px 0px;
	background:white;
	width: 100%;
}

.tile-potduplicate {
	color:#f57900;
	border-color:#f57900;
}

.tile-select-overlay {
	width:100%;
	height: 100%;
	position: absolute;
	top:0px; left:0px;
	background-color: rgba(255,255,255,0.6);
	z-index: 4000;
	cursor:pointer;
	display: flex;
	justify-content:center;
	align-items:center;

}

.tile-select-checked {
	display: none;
	transform: scale(3);
}

.tile-select-selected {
    border: solid 2px #3c9e6d;
	border-radius:6px;
}

.tile-pointer,.tile-pointer label, .tile-check input {
    cursor:pointer !important;
}


.ksef-thumb {
	text-align: center;
}

.tile-type-sell, .tile-type-cost {
	color:white;
	font-weight: 400;
	font-size: 0.7em;
	border-radius:5px;
	padding:4px 6px;
	display: inline-block;
}

.tile-type-sell {
	background-color: #65c282;
}

.tile-type-cost {
	background-color: #bf735e;
}

.tile-status {
	display: block;
	color:white;
	border-radius: 5px;
	font-weight: 400;
	text-align: center;
	font-size: 0.85em;
	padding:6px 0px;
	align-self: center;
}

.tile-status img {
	width:24px;
	height:24px;
	vertical-align: middle;
}

.tile-status-go {
	background-color: green
}

.tile-status-hold {
	background-color: red;
}

.tile-ksef-logo {
	max-height:23px; 
	vertical-align:middle;
	border:solid 1px gray;
	border-radius:5px;
}

.tiles table {
	width:100%;
	border-collapse: collapse;
}

.tiles th {
	text-align: center;
}

.tiles th, .tiles td {
	border: solid 1px var(--color-gray-cc);
	padding:2px;
}

.tiles .green {
	background-color: #8bbd9b;
}

.tiles .right {
	text-align: right;
}

.tiles-table-view {
    overflow-x: auto;
    overflow-y: visible;
    max-width: 100%;
    width: 100%;
}

.tiles-table-view .tiles {
	display: table;
	border-collapse: collapse;
	background: white;
}

@media (max-width: 800px) {
	.tiles-table-view .tiles {
		min-width: max-content;
	}
}

.tiles-table-view .tile {
	display: table-row;
	background: none;
	box-shadow: none;
	max-width: 100%;
	border:0;
}

.tiles-table-view .tile:nth-child(even) > *:not(.tile-select-overlay) {
	background-color: var(--color-gray-fa);
}

.tiles-table-view .tile:hover > *:not(.tile-select-overlay) {
	background-color: var(--color-gray-f3);
}

.tiles-table-view .tile > *:not(.tile-select-overlay){
	display: table-cell;
	padding: 5px;
	border: solid 1px var(--color-gray-cc);
	vertical-align: middle;
	background-color: transparent;
	background-clip: padding-box;
}

.tiles-table-view .tile-tools {
	width:auto;
	text-align: center;
}

.tiles-table-view .tile-tools > * {
	margin:3px;
}