/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> global settings needed for thickbox <<<-----------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
*{padding: 0; margin: 0;}

/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox specific link and font settings <<<------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_window {
	font: 12px Arial, Helvetica, sans-serif;
	color: #333333;
}

#TB_secondLine {
	font: 10px Arial, Helvetica, sans-serif;
	color:#666666;
}

#TB_window a:link {color: #666666;}
#TB_window a:visited {color: #666666;}
#TB_window a:hover {color: #000;}
#TB_window a:active {color: #666666;}
#TB_window a:focus{color: #666666;}

/* ----------------------------------------------------------------------------------------------------------------*/
/* ---------->>> thickbox settings <<<-----------------------------------------------------------------------------*/
/* ----------------------------------------------------------------------------------------------------------------*/
#TB_overlay {
	position: fixed;
	z-index:100;
	top: 0px;
	left: 0px;
	height:100%;
	width:100%;
}

.TB_overlayMacFFBGHack {background: url(macFFBgHack.png) repeat;}
.TB_overlayBG {
	background-color:#000;
	filter:alpha(opacity=75);
	-moz-opacity: 0.75;
	opacity: 0.75;
}

* html #TB_overlay { /* ie6 hack */
     position: absolute;
     height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}

#TB_window {
	position: fixed;
	background: #FFF;
	z-index: 102;
	color:#000000;
	display:none;
	text-align:left;
	top:10%;
	left:50%;
}

* html #TB_window { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

#TB_window img#TB_Image {
	display:block;
	margin: 15px 0 0 15px;

}

#TB_caption{
	height:30px;
	padding:7px 30px 10px 25px;
	float:left;
	font-weight:bold;
	line-height:1.6;
}

#TB_closeWindow{
	height:30px;
	padding:11px 25px 10px 0;
	float:right;
}

#TB_closeWindow a{
	background:url(/images/pharm/common/btn_close_b.gif) no-repeat;
	width:70px;
	height:20px;
	display:block;
	text-indent:-9999px;
	overflow:hidden;
}


#TB_closeAjaxWindow{
	padding:7px 10px 0px 0;
	margin-bottom:1px;

	float:right;
}


#TB_closeAjaxWindow a{
	text-indent:-9999px;
}

#TB_ajaxWindowTitle{
	float:left;
	padding:7px 0 5px 10px;
	margin-bottom:1px;
	display:none;
}

#TB_window #TB_title{
	background-color:#FFF;
	height:20px;
	font-size:14px;
	font-weight:bold;
	*height:30px;
    width: 869px;
    position: relative;
}

*:first-child+html #TB_window #TB_title{
	background-color:#FFF;
	font-size:14px;
	font-weight:bold;
	height:30px;
}

#TB_window #TB_title a{
	background:url(/images/pharm/common/btn_close_b.gif) no-repeat;
	width:70px;
	height:20px;
	display:block;
	text-indent:-9999px;
	overflow:hidden;
}

*:first-child+html #TB_window #TB_title a{
	background:url(/images/pharm/common/btn_close_b.gif) no-repeat;
	width:70px;
	height:30px;
	display:block;
	text-indent:-9999px;
	overflow:hidden;
}


#TB_ajaxContent{
	clear:both;
	padding:2px 15px 15px 15px;
	overflow:auto;
	text-align:left;
	line-height:1.4em;
}

#TB_ajaxContent.TB_modal{
	padding:15px;
}

#TB_ajaxContent p{
	padding:5px 0px 5px 0px;
}

#TB_load{
	position: fixed;
	display:none;
	height:13px;
	width:208px;
	z-index:103;
	top: 50%;
	left: 50%;
	margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
}

* html #TB_load { /* ie6 hack */
position: absolute;
margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
}

#TB_HideSelect{
	z-index:99;
	position:fixed;
	top: 0;
	left: 0;
	background-color:#FFF;
	border:none;
	filter:alpha(opacity=0);
	-moz-opacity: 0;
	opacity: 0;
	height:100%;
	width:100%;
}

* html #TB_HideSelect { /* ie6 hack */
     position: absolute;
     height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
}

#TB_iframeContent{
	clear:both;
	border:none;
}

#TB_window #TB_next a{
	font-size:10px;
	color:#325EA5;
	font-weight:bold;
	background:url(/pm/img/btn_next_c.gif) no-repeat right 2px;
}

#TB_window #TB_prev a{
	font-size:10px;
	color:#325EA5;
	font-weight:bold;
	background:url(/pm/img/btn_back_c.gif) no-repeat left 2px;
}
@media screen and (max-width: 1200px) {
    #TB_window {
        width: 90% !important; /* Adjust width for better visibility */
        left: 5% !important; /* Center align horizontally */
        top: 5% !important; /* Adjust spacing from top */
        height: auto; /* Allow dynamic height */
        max-height: 90% !important; /* Limit height to 90% of viewport */
        overflow-y: auto; /* Scroll for overflowing content */
        padding: 10px;
        box-sizing: border-box;
        margin-left: none !important; /* Remove margin */
    }

    #TB_ajaxContent {
        padding: 10px;
        font-size: 14px; /* Adjust font size for better readability */
        line-height: 1.6;
    }

    #TB_title {
        height: auto;
        font-size: 16px; /* Larger font for better visibility */
        text-align: center;
    }

    #TB_closeWindow {
        height: auto;
        padding: 5px;
    }

    #TB_closeWindow a {
        width: 50px;
        height: 20px;
        display: inline-block;
    }

    #TB_overlay {
        position: fixed;
        height: 100%;
        width: 100%;
    }

    #TB_load {
        top: 50% !important; /* Center align vertically */
        left: 50% !important; /* Center align horizontally */
        transform: translate(-50%, -50%) !important; /* Center align */
        margin: 0 !important; /* Remove margin */
    }

    img {
        max-width: 100%; /* Make images responsive */
        height: auto;
    }
}