p.iOS-13-4-warning{
	display:none;
	background-color:var(--faded-warning);
	color:red;
	padding:8px;
	/* position:absolute; */
	width:100%;	
}
.iOS-13-4.app-mode p.iOS-13-4-warning{
	display:initial;
}


sheet-clipboard{	
	display: flex;
	flex-direction: column;

	max-height:100vh;

	height: 100vh;
	height: calc(var(--vh, 1vh) * 100);

	--tab-height:28px;

	--tabbed-content-height: calc( 100 * var(--vh, 1vh) - var(--tab-height));

	transition:opacity 0.4s, transform 0.4s;
	transition-delay:0.25s;
	transition-timing-function: ease-out;
}

/* body{
	perspective: 1000px;
	perspective-origin: center;
} */

sheet-clipboard[hide]{
	opacity: 0;
	transition-delay:0s;
	transform:translate3d(0,0,-200px);
	transition-timing-function: ease-in;
}

.tabbed-content-area{
	/* contain: strict; */ /* should probably set the height first instead of using the tabbed-content-area */
	position:relative;	
	height:var(--tabbed-content-height);	
	background-color:white;		
	overflow: hidden;
}

/* .tabbed-content-area{
	height: calc( var(--vh, 1vh) * 100 - 28px);
	transition: height 0.35s;
} */

/* tabbed content needs to be absolute because we're going to swap 'pages' with opacity and transform, not display */
.tabbed-content{	
	position: absolute;	
	top:0;
	left:0px;
	height:var(--tabbed-content-height);
	width:100vw;
	background-color: white;

	/** In chrome 104, opacity change causes svg text rendering glitches */
	/* opacity: 0; */
	visibility: hidden;
	/* may cause text-scaling glitch */
	/* content-visibility: hidden; */

	/** There was either a text glitch issue or rendering lag somewhere that transform(0) created */
	/* transform:scale(0); */

	pointer-events:none;	
	z-index: 0;
}

.tabbed-content record-sheet{
	--sheet-height: var(--tabbed-content-height);
	height:var(--sheet-height);
	width:100vw;
}

sheet-clipboard.offline .online-only,
sheet-clipboard:not(.offline) .offline-only{
	display:none !important;
}

sheet-clipboard.offline form{
	opacity: 0.4;
	filter: saturate(0);
	pointer-events: none;
	cursor:not-allowed;
}



.tab-group{	
	z-index: 2;
	touch-action: none;
	background-color: #bbb;	
	/*background-image: transparent;*/
	flex-shrink: 0;
	height:var(--tab-height);
	/*justify-content: flex-end;*/
	/*position: fixed;
	width: 100%;*/
}


.tabbed-content.selected{
	/* display:initial; */

	/** In chrome 104, opacity change causes svg text rendering glitches */
	/* opacity: 1; */
	visibility:visible;
	/* may cause text-scaling glitch */
	/* content-visibility:visible; */

	pointer-events:auto;
	transform:none;	
	z-index: 1;
}

.tab-group{
	display: flex;
	align-content: center;
	/*justify-content: center;*/
}

.tab{
	font-size:12px;
	font-family: var(--normal-font);
	cursor: pointer; 	
	padding-top: 8px;	
	padding-bottom: 6px;
	padding-left:16px;
	padding-right:16px;
	background-color: #efefef;
	color:gray;
	margin-top: 1px;	
	margin-left: 1px;
	border-bottom: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
    overflow: hidden;
	text-overflow: ellipsis;	
	line-height: 1;
	position: relative;
	/*background-image: url("img/tabCorner.svg");
	background-size:7px 7px;
	background-repeat:no-repeat;
	background-position: 0px 0px;*/
}
/* .tab::before{
	font-size: 80%;
	margin-right: 8px;
} */

.tab span{
	pointer-events: none;
}

/* Know what?  We don't need this icon in the tab — takes up too much space, and large cropped alternatives don't feel right.
/* .tab.markable{
	background-image: url(img/grey-gear.svg);
	background-size: 12px;
    background-position-y: 7.5px;
    background-repeat: no-repeat;
    background-position-x: 9px;
    background-blend-mode: multiply;
    padding-left: 30px;
} */
/* .tab.markable::before{
	content:"⚙️";
	filter: saturate(0);
}
.tab.markable.selected::before{	
	filter: saturate(1);
} */

/* .tab.print-only::before{ */
	/*content:"🖨️";	*/
/* } */

.tab.selected{
	background-color: white;
	border-bottom: 1px solid white;
	color: black;	
	/* pointer-events: none; */
	cursor: context-menu;
}
.tab.selected .designation{
	/* display: none; */
	opacity: 0.5;
}

.tab.defuct-design-data::before{
	content:"*";
	color:purple;
	margin-right:2px;
}

.tab.sheet-tab.markable.selected:active .designation{
	color:var(--hover-color);
	opacity: 1;
}
.tab.sheet-tab.markable.selected .designation{
	cursor:pointer;
}

/* .tab.selected .delete-button::before{
	content:"▼";
	position: absolute;
} */

sheet-clipboard:not([viewing-force]) .sheet-tab.selected{
	padding-right: 30px; /* make room for delete button, unless we're just viewing  */
}

.tab.attention-required{
	background-color: var(--warning-yellow);
	border-bottom: 1px solid #d6c000; /* darker yellow shadow */
}

/* .tab.online-tab{
	display: none;
} */

.server-available .tab.online-tab{
	display: inline-flex;
}

.tab.online-tab:not(.connected)::after{
	margin-left:0px;
}
.tab.online-tab:not([data-count])::after{
	display:none;
}
.tab.online-tab::after{
	content: attr(data-count);
	margin-left:2px; 
	margin-right:3px;
	font-weight: 700;
}
.tab.online-tab.connected{
	/* background-color: palegreen;
	border-bottom: 1px solid palegreen; */
	background-color: var(--option-selected-color);
	border-bottom: 1px solid var(--option-selected-color);
}
.tab.online-tab.disconnected{
	background-color: var(--warning-yellow);
	border-bottom: 1px solid var(--warning-yellow);
}
.tab.online-tab.disconnected::after{
	color:var(--destroyed-red);
	margin-left:5px; 
}
.tab.online-tab.connected:not(.selected){
	opacity: 0.8;
}
.tab.online-tab.disconnected:not(.selected){
	opacity: 0.8;
}

.version-conflict .tab.online-tab{
	background-color:var(--destroyed-red);
	border-bottom-color: var(--destroyed-red);
	color:white;
}

.tab-button{	
	margin-bottom: 2px;
    border: none;
    /* margin-left: auto; */
    margin-right: 2px;
    border-radius: 200px; 
	/* margin-right: 4px; */
	padding-bottom: 7px;
}
/*.tab-button:hover,*/
.tab-button:active{
	background-color: var(--hover-color);	
	color:white;
}

/* .tab.settings-tab{
	margin-left:auto;
	background-color: transparent;
}

.tab.settings-tab.selected{
	color:white;
	border-bottom: 0px;
} */


.delete-button{
	width:18px;
	height:18px;	
	display: none;
	position:absolute;
	right:5px;
	top:4.5px;	
	cursor: pointer;	
	opacity: 0.2;
	background-image: url("img/recordsheet-remove-button.svg");
	/*margin-left: 8px*/	
}
.selected .delete-button{
	display: block;
	pointer-events: initial !important;
}
.delete-button:hover,
.delete-button:active{
	opacity: 1;
	/*filter: invert(1);*/
	background-color: #efefef;
	/*outline:2px solid white;*/
}


/* always show print button */
/* body:not(.full-screen) #print-button{
	display: none;
} */

.icon-button{
	display: flex;
    align-items: center;	
	padding-top: 2px;
    padding-bottom: 0px;
	padding-left: 10px;
	padding-right: 10px;	
	background-color: transparent;
	text-shadow:0px 2px 7px rgba(0,0,0,0.4);
	font-size: 14px;    
	flex-shrink: 0;
}

/* From when it was a tab */
/* #print-button{
	margin-left: auto;
} */

#chrome-install-button:not(.enabled){	
	display: none;
}
/* #chrome-install-button{	
	color:#333;
	background-color:transparent;
	text-shadow:0px 2px 7px rgba(0,0,0,0.4);
	border-radius: 0px;
	border-left: 1px solid #999;
} */

.no-save #save-button,
.no-save #sessionRestore{
	display: none !important;
}

#login-button,#logout-button,#account-button{
	font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-left: auto;
    border-radius: 0px;
    font-family: var(--bold-font);
    color: white;
    text-shadow: 0px 1px 6px rgba(0,0,0,0.5);
}

#close-button{
	background-color: var(--warning-yellow);
	border-radius: 0px;
	color: black;
    text-shadow: none;
    flex-grow: 1;
	margin-left: 2px;	
}
#close-button:active{
	background-color: var(--hover-color);
	color:white;
}

sheet-clipboard:not([viewing-force]) #close-button,
sheet-clipboard[logged-in] #login-button,
sheet-clipboard:not([logged-in]) #logout-button,
sheet-clipboard[viewing-force] #login-button,
sheet-clipboard[viewing-force] #account-button,
sheet-clipboard[viewing-force] #logout-button{
	display:none;
}

sheet-clipboard:not([logged-in]) .logged-in-only{
	display: none;
}



.new-sheet-tab{
	min-height: 27px;
	font-weight: 700;
	padding-top: 7px;
	padding-left: 7px;
	padding-right: 7px;
	min-width: calc(18px + 14px);
}
.new-sheet-tab .plus-icon{
	width:18px;
	height:18px;		
	position:absolute;
	left:7px;
	top:4.5px;		
	background-image: url("img/add-button.svg");
	pointer-events: none;
}
.online-tab{
	padding-left: 7px;
	padding-right: 7px;
	display: inline-flex;
	align-items: center;
	cursor:pointer;
}
.online-tab .network-icon{	
    width: 24px;
    height: 20px;
    position: relative;        
    background-image: url(img/network-button.svg);
    pointer-events: none;
	background-repeat: no-repeat;
    background-position: center;
}
.online-tab:not(.selected) .network-icon{
	opacity: 0.3;
}
.online-tab:hover:not(.selected) .network-icon{
	opacity: 0.7;	
	/* background-color: #efefef; */
}

[viewing-force] .new-sheet-tab,
[viewing-force] .online-tab,
[viewing-force] .settings-tab,
[viewing-force] .delete-button,
[viewing-force] .new-sheet-screen,
[viewing-force] .online-screen,
[viewing-force] .settings-screen{
	display: none !important;
}
/* need information screen */

.new-sheet-tab:not(.selected) .plus-icon{
	opacity: 0.2;
}
.new-sheet-tab:hover:not(.selected) .plus-icon{
	opacity: 0.7;	
	background-color: #efefef;
}
sheet-clipboard #toolbar{
	flex-shrink:0;
	position: relative;
	background-color: white;
	/*margin-top:100px;*/
	padding-top: 0px;
}

.new-sheet-screen{	
	flex-direction: column;	
	overflow: scroll;		
	-webkit-overflow-scrolling:touch;
}
/* .new-sheet-screen h1{
	margin-top: 100px;
} */

.new-sheet-screen.selected{
	display: flex;
}


#clipboard-in-text-alert{	
	display:none;
	color:white; 
	padding:3px 6px 3px 6px;
	background-color: #8bc34a;
	background-color: #999;
}
#clipboard-in-text-alert.show{
	display: inline-block;
}

/*

	SETTINGS

*/

.tabbed-content.settings-screen{
	/* padding-top: 48px;	 */
	overflow: scroll;	
}

.settings-wrapper{
	max-width:400px; 
	/* make a column */
	margin-left: auto;
    margin-right: auto;	
	padding-top: 48px;
	margin-bottom: 48px;
}

.settings-screen h4{
	padding-bottom:5px;
    border-bottom: 1px solid #bbb;
}
.settings-screen .settings-group{
	padding: 0px 12px 24px 12px;
    border-top: 0px;
    background-color: white;
}

.settings-group.actions-group{
	padding-left: 0px;
	padding-top: 0px;
	padding-right:0px;
	display: flex;
}

.settings-screen button::before{
	content:"";
}
.settings-screen button{
	/* display: block;
	text-align: left;
	margin-bottom:2px; */
	margin-right: 2px;
}
.settings-screen button:last-of-type{
	margin-right: 0px;
}

/*

	AUTOMATION OPTIONS

*/

#automation-options{
	display: flex;
    flex-direction: column-reverse;
}

#automation-options-reset{
	margin-top:12px;
}
#automation-options-reset[disabled]{
	background-color:transparent;
	color:#ccc;
	outline:2px solid #efefef;
}

li.automation-option .option-name{	
	/* min-width: 200px; */
	display: inline-block;
	text-align: left;

	text-transform: capitalize;
	padding: 5px 0px;
	color:#aaa;
	margin-left:16px;
}
li:hover.automation-option .option-name{
	color:black;
}

li.automation-option{
	margin:0px;
	padding:0px;
	vertical-align: middle;
	display: flex;
	align-content: middle;
	/* flex-direction: column; */
	margin-bottom: 1px;
	/* background-color: #efefef; */
}

#automation-options input[type=radio] {
  position: absolute;
  visibility: hidden;
  display: none;
}

#automation-options label{
	color: #999;
	display: inline-block;
	cursor: pointer;

	padding: 6px 10px;
	text-align: center;
	min-width:55px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 10px;	
	background-color: #efefef;
	margin-top: 0px;
    margin-bottom: 0px;
}
#automation-options input[type=radio][disabled] + label{
	pointer-events: none;
	color:transparent;
}
#automation-options label:hover{
	outline: 2px solid var(--hover-color);
	outline-offset:-2px;
	color:var(--hover-color);
}
#automation-options label:active{
	background-color: var(--hover-color);
	color: white;
}

#automation-options input[type=radio]:checked + label{
	/* color: black;
	background-color: palegoldenrod; */
	color: white;
	background-color: #aaa;	

	outline:0px;
	pointer-events: none;
}
#automation-options input[type=radio][value="IGNORE"]:checked + label{
	background-color:var(--destroyed-red);
}
#automation-options input[type=radio][value="IGNORE"]:checked + .option-name{
	color:var(--destroyed-red);
}

/* #automation-options label + input[type=radio] + label {
  border-left: solid 1px #666;
} */
#automation-options .radio-group {
  /* border: solid 1px #666; */
  display: inline-block;
  /* margin: 20px; */
  /* border-radius: 10px; */
  overflow: hidden;
}

/* SHORTCUTS */

#shortcuts{
	line-height: 24px;
}

#shortcuts .shortcut-category{
	color:#aaa;
	line-height: 2;
	margin-bottom: 12px;
}
#shortcuts .shortcut-label{
	flex-grow: 1;
	margin-left: 12px;
}
#shortcuts .shortcut-key{
	color:black;
	text-transform: uppercase;
	font-weight: normal;
	font-family: var(--bold-font);
	/* border-bottom: 2px solid black; */
	/* border-radius: 4px; */		
	background-color: #efefef;
	/* outline:2px solid #efefef; */
	min-width: 72px;
	text-align: center;
	padding-left: 8px;
	padding-right: 8px;
	letter-spacing: 0.08em;
}

#shortcuts li{
	display: flex;
	flex-direction: row-reverse;
	/* justify-content: space-between; */
	margin-bottom: 2px;	
}
/* #shortcuts li:hover{
	background-color: #efefef;
	color:black !important;
	outline:2px solid #efefef;
} */


#shortcuts .note{
	color:#aaa;
}




/*#install-button{
	padding: 0px;
	background-color: transparent;
	outline: none;	
}
#install-button:before{
	content:"";
}*/

@media print{		
	/* see index for html,document,body print styling */
	sheet-clipboard,
	sheet-clipboard .tabbed-content-area,
	sheet-clipboard .tabbed-content-area .tabbed-content:not(.online-screen):not(.settings-screen):not(.new-sheet-screen),
	sheet-clipboard .tabbed-content-area .tabbed-content record-sheet,
	sheet-clipboard .tabbed-content-area .tabbed-content.selected:not(.online-screen):not(.settings-screen):not(.new-sheet-screen),
	sheet-clipboard .tabbed-content-area .tabbed-content.selected record-sheet{		
		display: block !important; 
		height:100% !important;
		max-height: 100% !important;	
		width: 100% !important;
		max-width: 100% !important;
		font-size: 0px;
		transform: none;
		opacity: 1;
		position: initial;
		overflow: visible;
		z-index:0;
		outline: 2px solid white;
		outline-offset: -2px;
	}

	/* Chrome is printing the fragment, on multiple pages (!), even when it has no height or width */
	record-sheet#safari-fragment-hack{
		display:none !important;
		visibility: hidden !important;
		transform:scale(0) !important;
	}

	sheet-clipboard .tabbed-content.online-screen,
	sheet-clipboard .tabbed-content.new-sheet-screen,
	sheet-clipboard .tabbed-content.settings-screen
	{
		display: none !important;	
		visibility: hidden;		
	}

	#toolbar,
	.tab-group{
		display: none !important;	
		height:0px !important;
	}	

	sheet-clipboard{
		height: auto; /* wait, isn't this canceled by the !important above? */
		max-height: none;
		--tabbed-content-height:100%;
		/* calc( 100 * var(--vh, 1vh) - var(--tab-height)); */
	}

	/*
	For some reason FF on desktop spits out low res prints.
	All I know is that some kind of layout bump will force it to print high res. #SHRUGGIE  :(	
	*/
	body[data-is-firefox] record-sheet{
		margin-top:0.1px !important;
	}
}