/************ Main Dashboard Styling ************/

#dashboard  {
	width: 100%;
	height: auto;
}

.dashboardpanel  {
	width: 100%;
	height: auto;
}

#dashboard_full  {
	width: 100%;
	height: auto;
	margin-top: 40px;
}

#dashboardleft  {
	width: 62%;
	height: auto;
	float: left;
	padding: 10px;
	padding-left: 0 !important;
}

#dashboardright  {
	width: 38%;
	height: auto;
	float: left;
	padding: 10px;
	padding-right: 0 !important;
}

.dboard_item  {
	display: inline-block;
	vertical-align: top;
	width: 100%;
	height: auto;
	background-color: #FFF;
	margin-bottom: 20px;
}

.dboard_item .header  {
	width: 100%;
	height: auto;
	padding: 14px;
	/*color: #FFF;*/
	color: #435F80;
	font-family: 'Montserrat', sans-serif;
	font-size: 18px;
	text-align: left;
	/*background-color: #004677;*/
	background: #fefeff;
	background: -moz-linear-gradient(top,  #fefeff 0%, #e7f2f8 100%);
	background: -webkit-linear-gradient(top,  #fefeff 0%,#e7f2f8 100%);
	background: linear-gradient(to bottom,  #fefeff 0%,#e7f2f8 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fefeff', endColorstr='#e7f2f8',GradientType=0 );
	border-top-left-radius: 8px;
	border-top-right-radius: 8px;
	border: 1px solid #CCCCCC;
	
	/*background: #f0f0f0;
	background: -moz-linear-gradient(top,  #f0f0f0 0%, #dddddd 100%);
	background: -webkit-linear-gradient(top,  #f0f0f0 0%,#dddddd 100%);
	background: linear-gradient(to bottom,  #f0f0f0 0%,#dddddd 100%);
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f0f0f0', endColorstr='#dddddd',GradientType=0 );*/
	
	/*border: 2px solid #004677;*/
	
	/*background-image: url('../images/whitelogo.svg');
	background-repeat: no-repeat;
	background-position: center right;
	background-size: 120px auto;*/
}

.dboard_item .main  {
	width: 100%;
	height: auto;
	padding: 14px;
	border: 1px solid #CCCCCC;
	border-top: 0;
}

.dboard_item_row  {
	width: 100%;
	height: auto;
}

.dboard_item
.dboard_item_row
.split  {
	width: 100%;
	height: auto;
	float: left;
}

#callback  {width: 100%;}

.callback_btn .standardbtn,
.callback_btn_wide .standardbtn,
.callback_btn .subnavbtn,
.callback_btn_wide .subnavbtn  {
	width: 98% !important;
	height: auto !important;
	float: none !important;
	margin: 0 auto !important;
	font-size: 10px !important;
}

#callback_wrapper .dataTables_filter,
#callback_wrapper .dataTables_info  {width: 100% !important;}

.dsbactive  {
	background-color: #E8E8E8;
	-moz-box-shadow: inset 0 0 20px rgba(106,172,222, 0.75);
	-webkit-box-shadow: inset 0 0 20px rgba(106,172,222, 0.75);
}

#db_billing
.dboard_item_row:nth-child(1)
.split,
#db_patients
.dboard_item_row:nth-child(1)
.split  {
	width: 33.3%;
	padding: 0 0 20px 0 !important;
}

#db_billing
.dboard_item_row
.split,
#db_patients
.dboard_item_row
.split,
#db_letterqueue
.dboard_item_row
.split,
#db_scannerlog
.dboard_item_row
.split,
#faxLog
.dboard_item_row
.split,
#db_nextfive
.dboard_item_row
.split  {padding: 4px 0;}

#db_billing_sub .dashboarditembody
{	
	height: 250px;
	overflow-y: auto;
}

#db_callbacks
.dboard_item_row
.split,
#db_callbacks
.dboard_item_row
.norecord  {
	padding: 5px 0;
	color: #004677 !important;}

#db_callbacks
.dboard_item_row
.norecord  {font-family: 'Montserrat', sans-serif;}

#db_callbacks
.dboard_item_row  {padding: 0px;}

#db_callbacks
.dboard_item_row
.split  {cursor: pointer;}

#db_callbacks
.dboard_item_row
.split:hover  {color: #008ABE;}

/*.callback_row  {text-align: center; border-bottom: 2px solid #EAEAEA;}*/

#callback th  {cursor: pointer;}

#callback_wrapper  {
	width: 100%;
	height: auto;
	max-height: 400px;
	overflow: auto;
}

#dashboard #callback_wrapper table  {
	border-right: none;
	border-left: none;
}

#dashboard #callback_wrapper  .dataTables_filter  {
	border-top: none;
	border-right: none;
}

/*#callback thead  {position: fixed;}*/

/*#callback thead  {font-weight: 700;}*/

#callback thead th:nth-child(1)  {width: 10% !important; border-right: 1px solid #EAEAEA;}

#callback thead th:nth-child(2)  {width: 20% !important; border-right: 1px solid #EAEAEA;}

#callback thead th:nth-child(3)  {width: 20% !important; border-right: 1px solid #EAEAEA;}

#callback thead th:nth-child(4)  {width: 10% !important; border-right: 1px solid #EAEAEA;}

#callback thead th:nth-child(5)  {width: 20% !important; border-right: 1px solid #EAEAEA;}

#callback thead th:nth-child(6)  {width: 20% !important; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row  {}

#db_callbacks
.dboard_item_row
.split:nth-child(1)  {width: 10%; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row
.split:nth-child(2)  {width: 20%; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row
.split:nth-child(3)  {width: 20%; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row
.split:nth-child(4)  {width: 10%; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row
.split:nth-child(5)  {width: 20%; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row
.split:nth-child(6)  {width: 20%; border-right: 1px solid #EAEAEA;}

#db_callbacks
.dboard_item_row
.norecord  {width: 100%; text-align: center;}

#db_callbacks .main  {padding: 0;}

.callback_row  {
	font-size: 90%;
	width: 100%;
	height: auto;
	clear: both;
}

#db_callbacks .callback_row:nth-child(even)  {background-color:#f9fbfd;}

.callback_row .split  {
	text-align: center;
	padding: 0px;
}

.callback_btn  {
	width: 33.3%;
	height: auto;
	float: left;
}

.callback_btn_wide  {width: 100%;}

/* Callback icon buttons */
.callback_actions {
	white-space: nowrap;
}

.callback_icon_btn {
	width: 22px;
	height: 22px;
	padding: 3px;
	margin: 0 2px;
	border: none;
	border-radius: 4px;
	background-color: #008ABE;
	cursor: pointer;
	transition: background-color 0.2s ease;
	vertical-align: middle;
}

.callback_icon_btn:hover {
	background-color: #004677;
}

.callback_icon_btn img {
	width: 14px;
	height: 14px;
	filter: brightness(0) invert(1);
}

.callback_icon_btn_cancel {
	background-color: #c0392b;
}

.callback_icon_btn_cancel:hover {
	background-color: #962d22;
}

.db_header_title  {
	widtH: auto;
	height: auto;
	float: left;
	padding-top: 4px;
}

.db_header_btns  {
	widtH: auto;
	height: auto;
	float: left;
	margin-left: 14px;
}

/* Dashboard widget buttons - narrower styling */
.dboard_item .subnavbtn,
.dboard_item_row .subnavbtn {
	min-width: 70px;
	height: 24px;
	padding: 5px 8px !important;
	font-size: 11px;
	line-height: 11px;
	margin-right: 5px;
}

.dashboard_table .subnavbtn {
	min-width: 60px;
	height: 22px;
	padding: 4px 6px !important;
	font-size: 10px;
	line-height: 10px;
	margin: 2px;
}

.dashboard_table thead tr {
    background-color:#e7f2f8 ;
    color: #435f80;
    text-align: left;
	border-top: 1pt solid #363636;
	border-bottom: 1pt solid  #363636;
}

.dashboard_table tr:nth-child(even) {
    background-color:#f9fbfd;
}

.dashboard_table th{
    padding: 2px 22px;
	font-size: 110%;
	border-top: 1pt solid #363636;
	border-bottom: 1pt solid  #363636;
}
.dashboard_table td {
    padding: 1px 22px;
	font-size: 90%;
	vertical-align: top;
}

.dashboard_table h2 {
    padding-top: 20px;
	font-size: 110%;;
}

/* Period Statistics Container Pagination Buttons */
#periodstatistics_container .btn_standard,
#periodstatistics_container a.btn-primary {
	display: inline-block;
	min-width: 30px;
	height: 29px;
	box-sizing: border-box;
	text-align: center;
	font-size: 12px;
	line-height: 15px;
	color: #FFF;
	cursor: pointer;
	font-family: 'Open Sans', sans-serif;
	border-radius: 6px;
	background-color: #008ABE;
	transition: background 0.25s ease;
	padding: 6px 10px;
	border: 0;
	font-weight: 400;
	margin: 2px;
	text-decoration: none;
}

#periodstatistics_container .btn_standard:hover,
#periodstatistics_container a.btn-primary:hover {
	background-color: #004677;
}

/************ Widget System Styles ************/

/* Dashboard Header with Configure Button */
.dashboard-header {
	margin-bottom: 20px;
	text-align: right;
}

#widget_settings_btn {
	background-color: #f0f0f0;
	color: #435F80;
	border: 1px solid #ccc;
	padding: 8px 16px;
	font-size: 14px;
	cursor: pointer;
	border-radius: 4px;
	transition: all 0.2s ease;
}

#widget_settings_btn:hover {
	background-color: #e0e0e0;
	border-color: #008ABE;
	color: #004677;
}

/* Widget Container - Sortable */
#widget_container {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 20px;
}

#widget_container .dboard_item {
	margin-bottom: 0;
}

/* Widget Sizes */
.widget-small {
	grid-column: span 3;
}

.widget-medium {
	grid-column: span 4;
}

.widget-large {
	grid-column: span 6;
}

/* Sortable placeholder */
.widget-sortable .ui-sortable-placeholder {
	background: #e7f2f8;
	border: 2px dashed #008ABE;
	border-radius: 8px;
	visibility: visible !important;
	min-height: 200px;
}

.widget-sortable .ui-sortable-helper {
	box-shadow: 0 8px 24px rgba(0,0,0,0.15);
	transform: rotate(1deg);
}

/* Drag Handle */
.widget-drag-handle {
	float: right;
	cursor: move;
	color: #999;
	font-size: 18px;
	padding: 0 5px;
	user-select: none;
	transition: color 0.2s;
}

.widget-drag-handle:hover {
	color: #008ABE;
}

/* Widget Stats Display */
.widget-stats-row {
	display: flex;
	gap: 20px;
	margin-bottom: 10px;
}

.widget-stat-box {
	text-align: center;
}

.widget-stat-big {
	font-size: 36px;
	font-weight: 700;
	color: #004677;
	line-height: 1.1;
}

.widget-stat-medium {
	font-size: 24px;
	font-weight: 600;
	color: #008ABE;
	line-height: 1.2;
}

.widget-stat-label {
	font-size: 11px;
	color: #666;
	margin-top: 2px;
}

/* Chart Container */
.widget-chart {
	height: 120px;
	margin-top: 5px;
	position: relative;
}

.widget-chart-doughnut {
	height: 140px;
}

.widget-chart canvas {
	width: 100% !important;
	height: 100% !important;
}

/* No Widgets Message */
.no-widgets-message {
	text-align: center;
	padding: 60px 20px;
	background: #f8f9fa;
	border-radius: 8px;
	color: #666;
	grid-column: 1 / -1;
}

.no-widgets-message p {
	margin: 0;
	font-size: 16px;
}

/* Modal Overlay */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0,0,0,0.5);
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-container {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0,0,0,0.2);
	max-height: 90vh;
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.modal-header {
	padding: 15px 20px;
	border-bottom: 1px solid #eee;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.modal-header h3 {
	margin: 0;
	font-size: 18px;
	color: #435F80;
}

.modal-close {
	font-size: 24px;
	color: #999;
	cursor: pointer;
	line-height: 1;
}

.modal-close:hover {
	color: #333;
}

.modal-body {
	padding: 20px;
	overflow-y: auto;
	flex: 1;
}

/* Next 5 Patients collapsible sections */
.nextfive-doctor-section h2 {
	margin: 5px 0;
	padding: 8px;
	background: #f5f5f5;
	border-radius: 4px;
}

.nextfive-doctor-section h2:hover {
	background: #e7f2f8;
}

.collapse-arrow {
	display: inline-block;
	margin-right: 8px;
	transition: transform 0.2s;
}

.collapse-arrow.collapsed {
	transform: rotate(0deg);
}

.collapse-arrow:not(.collapsed) {
	transform: rotate(90deg);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
	.widget-small {
		grid-column: span 4;
	}
	.widget-medium {
		grid-column: span 6;
	}
	.widget-large {
		grid-column: span 6;
	}
}

@media (max-width: 900px) {
	#widget_container {
		grid-template-columns: 1fr;
	}

	.widget-small,
	.widget-medium,
	.widget-large {
		grid-column: span 1;
	}

	.widget-stats-row {
		flex-wrap: wrap;
		gap: 15px;
	}

	.widget-stat-big {
		font-size: 36px;
	}

	.widget-stat-medium {
		font-size: 24px;
	}
}