@namespace MadCap url(http://www.madcapsoftware.com/Schemas/MadCap.xsd);
/*The styles contained in this CSS are referenced in ALL target stylesheets.*/


/*styles used to improve the text flow and layout in various language versions - used mostly for print*/

/*avoid page breaks after these styles*/
h1, h2, h3, h4, h5, h6, 
p.procedureintro, 
p.safetyheading,
p.appendixheading,
p.tocHeading,
p.signal-word,
p.ttitle,
caption,
p.listintro /*used to make a sentence stick to the non-procedure list that follows this sentence*/,
MadCap|dropDownHead,
MadCap|dropDownHotspot,
.topic,
p.figtitle
{
	page-break-after: avoid;
	column-break-after: avoid;
	break-after: avoid;
}

/*min number of widow/orphan items allowed on a page*/
p
{
	orphans: 3;
	widows: 3;
}

ul,
ol,
li
{
	orphans: 2;
	widows: 2;
}
 

/*these steps are physically large so the list can be split in any place*/
ol.highlevel
{
	orphans: 0;
	widows: 0;
}

/*preventing list items from being split in the middle*/
p ~ ul,
p ~ ol

{
	break-before: avoid !important; 
	page-break-before: avoid !important;
	column-break-before: avoid !important;
}


p + ul,
p + ol
{
	break-before: avoid !important; 
	page-break-before: avoid !important;
	column-break-before: avoid !important;
}

li {
-webkit-column-break-inside: avoid;
          page-break-inside: avoid;
               break-inside: avoid;
}


/*prevent table rows from being split in the middle*/
table tr td,
table tr th
{
	page-break-inside: avoid;
	break-inside: avoid; 
}


/*end of page layout styles*/

/*prevents images from overlapping page margins*/
img,
pre,
div > pre
{
	max-width: 100%;
}

/*in HTML outputs, prevents code snippets from being flipped in rtl*/

MadCap|codeSnippet
{
  direction: ltr;
}

/*a wrapper for groups to avoid page breaks inside*/
div.nopagebreak
{
	page-break-inside: avoid;
	break-inside: avoid;
}
