@media all{

	#dbWrapper{
		font-size: 11px;
		min-width: 200ch;
	}

	#dashboard{
		margin: 0 auto;
		display: grid;
		grid-gap: 11px;
		grid-template-columns: 350px 350px 350px;
		grid-auto-rows: min-content;
		width: 1100px;
		margin-bottom: 50px;
	}

	#ui header{
		text-align: center;
		font-weight: bold;
		padding-bottom: .25em;
	}

	.customDashboard,
	#dashboard article,
	#dashboard #chart_div{
		border-radius: 14px;
	}

	.customDashboard{
		display: grid;
        box-sizing: border-box;
		text-align: center;
		margin-top:12px;
		/*min-*/width: 269px;
		height: 138px;
	}

    #dashboard article {
        display: grid;
        box-sizing: border-box;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        background-color: #eee;
        color: #000;
        -webkit-font-smoothing: antialiased;
	}

	#dashboard #openCases {
		grid-column: 1 !important;
		grid-row: 1 !important;
		width: 350px !important;
		height: 175px !important;
	}

	#dashboard #contracts {
		grid-column: 2 !important;
		grid-row: 1 !important;
		width: 350px !important;
		height: 175px !important;
	}

	#dashboard #openCases section,
	#dashboard #contracts section {
		color: #6d1ab8 !important;
	}

	#dashboard #invoices {
		grid-column: 3 !important;
		grid-row: 1 !important;
		width: 350px !important;
		height: 175px !important;
	}

	#dashboard #chart_div{
		grid-column: 1 / 3 !important;
		grid-row: 2 !important;
		width: 100%;
		max-width: 711px;
		height: 325px;
		background-color: #eee;
		padding: 20px;
		box-sizing: border-box;
	}

	#dashboard #monthlySave {
		grid-column: 3 !important;
		grid-row: 2 !important;
		width: 350px !important;
		height: 157px !important;
		margin-bottom: 0 !important;
	}

	#dashboard #credits {
		grid-column: 3 !important;
		grid-row: 2 !important;
		width: 350px !important;
		height: 157px !important;
		margin-top: 168px !important;
		align-self: start !important;
	}

	#dashboard #serviceType {
		grid-column: 1 !important;
		grid-row: 3 !important;
		width: 350px !important;
		height: 175px !important;
	}

	#dashboard #accountActivity {
		grid-column: 2 !important;
		grid-row: 3 !important;
		width: 350px !important;
		height: 175px !important;
	}

	#dashboard #CustomReports {
		grid-column: 3 !important;
		grid-row: 3 !important;
		width: 350px !important;
		height: 175px !important;
		background-color: #eee !important;
		margin-top: 0 !important;
		overflow: hidden !important;
		display: flex !important;
		flex-direction: column !important;
	}

	#dashboard #clientServices {
		grid-column: 1 !important;
		grid-row: 4 !important;
		width: 350px !important;
		height: 175px !important;
		background-color: #eee !important;
		margin-top: 0 !important;
		overflow: hidden !important;
		display: flex !important;
		flex-direction: column !important;
	}

	#dashboard #CustomReports > center.ui-widget-header,
	#dashboard #clientServices > center.ui-widget-header {
		position: relative !important;
		top: 0 !important;
		color: #000 !important;
		font-size: 14pt !important;
		font-family: Helvetica, Arial, sans-serif !important;
		height: 17pt !important;
		white-space: nowrap !important;
		font-weight: normal !important;
		margin: 10px 20px 0px 20px !important;
		padding-top: 0 !important;
		padding-bottom: 0 !important;
		background-color: transparent !important;
		border: none !important;
		background-image: none !important;
		flex-shrink: 0 !important;
	}

	#dashboard #CustomReports table {
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
	}

	#dashboard #CustomReports td {
		padding: 0 !important;
		text-align: left !important;
	}

	#dashboard #divCustomReportList {
		overflow-y: auto !important;
		overflow-x: hidden !important;
		flex: 1 !important;
		padding: 0 20px !important;
		text-align: left !important;
	}

	#dashboard #divCustomReportList > div {
		padding-left: 0 !important;
	}

	#dashboard #divCustomReportList p {
		margin: 8px 0 !important;
	}

	#dashboard #divCustomReportList a {
		color: #3C698A !important;
		text-decoration: none !important;
		font-size: 10pt !important;
		font-family: Helvetica !important;
	}

	#dashboard #divCustomReportList a:hover {
		text-decoration: underline !important;
		color: #6d1ab8 !important;
	}

	#dashboard #clientServices > div {
		overflow-y: auto !important;
		overflow-x: hidden !important;
		flex: 1 !important;
		padding: 0 20px !important;
		text-align: left !important;
	}

	#dashboard #clientServices table {
		margin: 0 !important;
		padding: 0 !important;
		width: 100% !important;
	}

	#dashboard #clientServices td {
		padding: 0 !important;
		text-align: left !important;
		font-size: 10pt !important;
		font-family: Helvetica !important;
		color: #3C698A !important;
	}

	#dashboard #clientServices li {
		margin: 8px 0 !important;
		color: #3C698A !important;
		font-size: 10pt !important;
		font-family: Helvetica !important;
	}

    #dashboard article section {
        font-size: 48pt;
		font-family: system-ui;
		font-weight: bold;
		margin: -10px 20px -5px 20px;
		text-align: center;
	}
	#dashboard article section.chart {
		width: 100%;
		height: 280px;
		padding: 0;
		margin: 0;
		font-size: 11px;
		font-weight: normal;
	}

	#dashboard #invoices section.chart {
		height: 80px;
	}

	#dashboard #monthlySave section.chart,
	#dashboard #credits section.chart {
		height: 80px;
	}

	#dashboard #monthlySave header,
	#dashboard #credits header {
		margin: 10px 20px 0px 20px !important;
	}

	#dashboard #serviceType section.chart,
	#dashboard #accountActivity section.chart {
		height: 100px;
	}

	#dashboard #serviceType header,
	#dashboard #accountActivity header {
		margin: 10px 20px 0px 20px !important;
	}

    #dashboard section img.spin91{
        content: url(/images/91.gif);
		height: 36px;
	}

    #dashboard article header {
		color: #000;
		font-size: 14pt;
		font-family: Helvetica, Arial, sans-serif;
		height: 17pt;
		white-space: nowrap;
		font-weight: normal;
		margin: 20px 20px 5px 20px;
    }
    #dashboard article footer {
		align-self: flex-end;
		padding: .5em 1ch;
		text-align: center;
		box-sizing: border-box;
		background-color: #f5f5f5;
		border-radius: 0 0 14px 14px;
	}
	#dashboard article footer a {
		color: #000;
		text-decoration: none;
	}
	#dashboard article footer a::after {
		content: " >";
	}
	#divCustomReportList {
		overflow: auto;
		height: 100%;
	}
}
@media only screen and (max-width: 760px) {
    #dbWrapper{
        max-width: 100vw;
        min-width: auto;
	}

    #dashboard {
		max-width: 100vw;
		display: flex;
		flex-direction: column;
		width: auto;
		height: auto;
		padding-bottom: 5vw;
	}


	#dashboard article,
	#dashboard #chart_div,
	.customDashboard{
		margin-top: 1em;
	}

    #dashboard article footer a,
    #dashboard a{
        pointer-events: none;
        color: transparent;
	}

    #dashboard a::after{
        /*content: '(Desktop only)';*/
	}

    #dashboard article {
        width: 100%;
	}

    #dashboard article > img {
		padding-left: 2ch;
		min-width: 5vw;
		max-width: 10vw;
		height: auto;
    }

    #CustomReports{
		/*visibility: hidden;*/
		display:none;
    }
	.customDashboard{
		margin-left:3px;
		margin-top:20px;
		width: 100%;
		height: 100%;
	}
}