*{
    margin:0;padding:0;border:none;
    /*text-align:left;*/vertical-align:top;
    background:none;}
html,body{
    width:100%;height:100%;
    font:normal 12px Verdana, Arial, Helvetica, sans-serif;line-height:1.1em;color:#000;
    background:#fff;}

div.all{width:auto;height:auto;background:#fff;}
html>body all{}

/**
 *	Basic styles
 *
 */
/******************** captions ********************/
h1{
    display:block;
    margin:0 0 36px;color:#666;font-weight:bold;font-size:1.2em;line-height:1.5em;letter-spacing:-1px;
    background:url(../images/bgTtl.gif) no-repeat bottom left;}
h2{
    display:block;
    color:#666;font-weight:bold;font-size:1.1em;line-height:1.5em;letter-spacing:-1px;}
h3, h4, h5, h6{
    display:block;
    color:#666;font-weight:bold;font-size:1em;line-height:1.5em;}

/*********************** links *********************/
a{color:#666;text-decoration:underline;}
a:hover{text-decoration:none;}
a:active{}

/********************** buttons ********************/
a.btn{
    display:block;float:left;
    height:16px;margin:0 2px 0 0;padding:0 5px;border:1px solid #666;
    color:#000;line-height:16px;text-decoration:none;
    background:#ccc;}
a.btn:hover{background:#fff;}
a.btn:active{border-color:#000;}




/********************** images *********************/
img{}


/***************** text containers *****************/
p{text-align:justify;}
span{}

/******************* lists *************************/
ul{display:block;list-style:square inside;margin:0 0 18px 35px;}
    ul li{padding:0 0 5px;}
ol{display:block;list-style:inside decimal;margin:0 0 18px 35px;}
    ol li{padding:0 0 5px;}
dl{}
    dt{}
    dd{}

/**
 * Таблицы
 * 
 */
table.main{cellspacing:0;cellpadding:0;width:1002px;border:none;}

/**
 *	Классы
 *
 */
.clear{width:100%;height:0;clear:both;}

/**
 * Main
 */
div.body{}
/*    div.menu{
        height:20px;line-height:18px;text-align:right;
        padding-right:12px;margin-bottom:12px;
        background-color:#cef;
        color:#000;line-height:18px;text-decoration:none;
        border:1px solid #888;
    }*/

    div.worker{
        margin:0 auto;padding:1px;
        width:960px;height:642px;
        text-align:left;
        overflow:auto;}
    div.work{
        width:958px;height:640px;
        border:1px solid #888;}
        div.section{text-align:left;}
    div.mainLocal{
        border:none;/*1px solid #88A;background-color:#ffe;*/
        background:url(../images/bg.png);
        position:absolute;z-index:2;
        /*width:800px;height:400px;
        left:50%;margin-left:-400px;top:50%;margin-top:-200px;*/
        width:100%;height:100%;
        left:0px;top:0px;
        display:none;
        /*style="position: relative; width: 700px; left: 50%; margin-left: -350px;*/
    }
    
    div.winLocal{
        z-index:10;
        position:absolute;
        border:1px solid #88A;background:#fff;
        width:830px;height:673px;left:50%;margin-left:-410px;top:108px;
    /*style="position: relative; width: 700px; left: 50%; margin-left: -350px;*/
    }
    div.workerLocal{
        /*position:absolute;margin:-290px 0 0 -400px;left:50%;top:50%;*/
        margin:6px;
        width:800px;height:597px;
        background:#fff;}
    
    
    
    div.template{
        border:none;/*1px solid #88A;background-color:#ffe;*/
        background:url(../images/bg.png);
        position:absolute;z-index:1;
        width:100%;height:100%;
        left:0px;top:0px;
        display:none;
        /*style="position: relative; width: 700px; left: 50%; margin-left: -350px;*/
    }
    div.winTemplate{
        position:absolute;
        border:1px solid #88A;background:#fff;
        width:880px;height:520px;left:50%;margin-left:-440px;top:120px;
    /*style="position: relative; width: 700px; left: 50%; margin-left: -350px;*/
    }
    
    div.editString{
    border:none;/*1px solid #88A;background-color:#ffe;*/
        background:url(../images/bg.png);
        position:absolute;z-index:20;
        /*width:800px;height:400px;
        left:50%;margin-left:-400px;top:50%;margin-top:-200px;*/
        width:100%;height:100%;
        left:0px;top:0px;
        display:none;
        /*style="position: relative; width: 700px; left: 50%; margin-left: -350px;*/
    }
    div.winEditString{
        position:absolute;
        /*background-color:#fff;
        width:600px;height:84px;*/left:50%;margin-left:-300px;top:120px;
    /*style="position: relative; width: 700px; left: 50%; margin-left: -350px;*/
    }
    
/**
 * Prefix
 */ 
div.prefix{margin:0 auto;width:960px;text-align:left;height:28px;border:none;}
div.client{width:366px;float:left;}
div.staff{
	float:left;
	width:366px;
	text-align:center;}
div.calendar{width:228px;float:left;}
    div.calendar div.calendarBox{float:right;} 
	    div.calendar select.dateD{width:40px;/*text-align:center;*/}
	    div.calendar select.dateM{width:90px;/*text-align:center;*/}
	    div.calendar select.dateY{width:56px;/*text-align:center;*/}
	    
div.prefix a.btnSection{width:958px;}
div.prefix img.ico{margin:4px 2px 4px 4px;}
div.prefix input.textFio{
				margin:2px 4px 2px 2px;
				width:320px;height:18px;
				/*text-align:center;*/
				border:1px solid #aab;}
div.prefix select{border:1px solid #aab;height:20px;margin:2px 0px 2px 2px;}

/**
 * Section
 */
 a.btnSection{
    display:block;float:left;
    margin:0px;padding:0px;border:1px solid #fff;
    color:#000;line-height:18px;text-decoration:none;
    background:#fff;
    width:956px;}
a.btnSection:hover{
	background:#c3dcfc url(../images/btnbg.png) repeat-x;
	border:1px solid #7ac;}
img.icoSection{margin:2px 2px 2px 2px;border:none;}


/**
 * Break
 */
a.btnBreak{
    display:block;float:left;
    margin:0px;padding:0px;border:1px solid #fff;
    color:#000;line-height:18px;text-decoration:none;
    background:#fff;
    width:348px;height:21px;}
a.btnBreak:hover{
    background:#c3dcfc url(../images/btnbg.png) repeat-x;
    border:1px solid #7ac;}

/**
 * Dir
 */
img.dir{margin:2px 4px 2px 0px;}
 
a.btnDir, a.btnDir2{
    display:block;float:left;
    margin:0px;padding:0 2px 0 0;/*ie8*/padding:0 1px 0 0\0/;
    width:99%;
    color:#000;line-height:18px;text-decoration:none;
    background:#fff;border:1px solid #fff;}
a.btnDir2{
	background:#c3dcfc url(../images/btnbg.png) repeat-x;
    border:1px solid #7ac;}
a.btnDir:hover{ /* одинаково с a.btnTools:hover */
    background:#ebf3fd url(../images/btnbg2.png) repeat-x;
    border:1px solid #bdf;} 



div.debug{border:1px solid red;}

/**
 * Tools
 */
a.btnTools {
	float:left;
	margin:0px;padding:0px;border:1px solid #fff;
    color:#000;line-height:18px;text-decoration:none;
    background:#fff;
    width:24px;
	}
a.btnTools:hover{
	background:#c3dcfc url(../images/btnbg.png) repeat-x;
    border:1px solid #7ac;}
img.toolsIcon{margin:4px;width:16px;height:16px;padding:1px 0 0 0;}
img.toolsIconEmp{margin:4px;width:16px;height:16px;padding:1px 0 0 0;border:1px solid #FFF;}

div.right div.tools{height:27px;border-bottom:1px solid #888;}
    div.tools ul{display:block;list-style:none;margin:0;}
    div.tools li{display:block;float:left;padding:0;}
	    div.mTools{/*width:210px;margin:0 auto;*/}
	    /*div.mTools a{border:none;}
	    /*div.mTools a:hover{height:22px;}
	    /*div.mTools img.toolsIcon:hover{padding:0;}*/
        div.temp{border:1px solid #fff;}


/* super */
div.up{padding:20px 0 0 0;margin:0 0 1px 0;height:63px;background:url(../images/upLine.gif) repeat-x bottom;}
div.up div.logo{margin:0 auto 1px auto;width:960px;height:32px;border-bottom:1px solid #ccc;}
div.up div.upMenu{margin:0 auto 1px auto;width:960px;}

div.umenu{display:block;height:18px;background:url(../images/menuUp.jpg) no-repeat top right;text-align:right;letter-spacing:3px;}
div.umenu ul{display:block;float:right;list-style:none;white-space:nowrap;margin:0;}
div.umenu li{display:block;float:left;height:11px;border-left:1px solid #fff;margin:1px 0 0 0;}
div.umenu li.active{}
div.umenu a{display:block;float:left;padding:0 20px 0 20px;font-size:11px;line-height:16px;text-decoration:none;color:#000;cursor:pointer;}
div.umenu a:hover{color:#fff;}
div.umenu li.active a{color:#fff;}

div.left{
	float:left;
	width:350px;height:640px;
	border:1px solid #888;}
div.worker div.leftBreak{height:27px;border-bottom:1px solid #888;}
           div.leftBreak div.topLeft{}
           div.leftBreak a.btnBreak{height:25px;width:348px;}
           /*div.leftBreak a.btnBreakBack{height:25px;width:24px;}*/
           div.icoBack{width:20px;float:left;padding:2px 0 0 2px;}
           div.nameBack{float:left;padding:3px 0 0 2px;width:300px;font-weight:bold;}
           div.imgBack{width:20px;float:left;padding:2px 0 0 2px;}

div.treeLeft{height:567px;overflow:auto;}
	
div.right{
	margin:0 0 0 1px;float:left;
	width:605px;
	border:1px solid #888;}
	div.right div.selManipulation{height:612px;overflow:auto;}
	div.right div.selManipulation a.btnDir,
	div.right div.selManipulation a.btnDir2{padding:0 2px 0 12px;width:97.2%;}
	
div.mainLocal{}
    div.mainLocal div.left{
	    float:left;
	    width:380px;
	    overflow:auto;border:none;}
	div.mainLocal div.right{
	    margin:1px 0 0 1px;float:left;
	    width:416px;}



/* Зубы */
div.teeth{
	margin:1px 0 0 1px;padding:10px 0 0 6px;border:1px solid #888;
	width:371px;height:146px;}
    
div.teeth div.top{
    float:left;width:360px;}
div.teeth div.bottom{
    margin:14px 0 0 0;float:left;width:360px;}


div.teeth ul{
    margin:0;}

div.teeth LI {
	padding:0;float:left;
	list-style:none;
    position:relative;
    overflow:hidden;}
    
div.teeth LI SPAN {
    display:block;padding:0;/*margin:0 4px;*/
    height:60px;width:26px;
    background:url(../images/teethAll.png);}
    

div.teeth .t18 span {width:23px;background-position:-56px -14px;}
div.teeth .t17 span {width:25px;background-position:-80px -14px;}
div.teeth .t16 SPAN {width:29px;background-position:-106px -14px;}
div.teeth .t15 SPAN {width:19px;background-position:-135px -14px;}
div.teeth .t14 SPAN {width:20px;background-position:-154px -14px;}
div.teeth .t13 SPAN {width:22px;background-position:-174px -14px;}
div.teeth .t12 SPAN {width:18px;background-position:-196px -14px;}
div.teeth .t11 SPAN {width:24px;background-position:-214px -14px;}

div.teeth .t21 SPAN {width:24px;background-position:-237px -14px;}
div.teeth .t22 SPAN {width:18px;background-position:-261px -14px;}
div.teeth .t23 SPAN {width:22px;background-position:-279px -14px;}
div.teeth .t24 SPAN {width:19px;background-position:-301px -14px;}
div.teeth .t25 SPAN {width:20px;background-position:-320px -14px;}
div.teeth .t26 SPAN {width:29px;background-position:-340px -14px;}
div.teeth .t27 SPAN {width:25px;background-position:-369px -14px;}
div.teeth .t28 SPAN {width:20px;background-position:-394px -14px;}

div.teeth .t48 span {width:24px;background-position:-58px -85px;}
div.teeth .t47 span {width:27px;background-position:-82px -85px;}
div.teeth .t46 SPAN {width:31px;background-position:-109px -85px;}
div.teeth .t45 SPAN {width:22px;background-position:-140px -85px;}
div.teeth .t44 SPAN {width:22px;background-position:-162px -85px;}
div.teeth .t43 SPAN {width:21px;background-position:-184px -85px;}
div.teeth .t42 SPAN {width:16px;background-position:-206px -85px;}
div.teeth .t41 SPAN {width:16px;background-position:-222px -85px;}

div.teeth .t31 SPAN {width:16px;background-position:-238px -85px;}
div.teeth .t32 SPAN {width:16px;background-position:-254px -85px;}
div.teeth .t33 SPAN {width:20px;background-position:-270px -85px;}
div.teeth .t34 SPAN {width:22px;background-position:-290px -85px;}
div.teeth .t35 SPAN {width:22px;background-position:-312px -85px;}
div.teeth .t36 SPAN {width:30px;background-position:-334px -85px;}
div.teeth .t37 SPAN {width:28px;background-position:-364px -85px;}
div.teeth .t38 SPAN {width:24px;background-position:-392px -85px;}
	
/* hover */
div.teeth li.t18:hover span {background-position:-56px -168px;}
div.teeth li.t17:hover span {background-position:-80px -168px;}
div.teeth li.t16:hover SPAN {background-position:-106px -168px;}
div.teeth li.t15:hover SPAN {background-position:-135px -168px;}
div.teeth li.t14:hover SPAN {background-position:-154px -168px;}
div.teeth li.t13:hover SPAN {background-position:-174px -168px;}
div.teeth li.t12:hover SPAN {background-position:-196px -168px;}
div.teeth li.t11:hover SPAN {background-position:-214px -168px;}

div.teeth li.t21:hover SPAN {background-position:-237px -168px;}
div.teeth li.t22:hover SPAN {background-position:-261px -168px;}
div.teeth li.t23:hover SPAN {background-position:-279px -168px;}
div.teeth li.t24:hover SPAN {background-position:-301px -168px;}
div.teeth li.t25:hover SPAN {background-position:-320px -168px;}
div.teeth li.t26:hover SPAN {background-position:-340px -168px;}
div.teeth li.t27:hover SPAN {background-position:-369px -168px;}
div.teeth li.t28:hover SPAN {background-position:-394px -168px;}

div.teeth li.t48:hover span {width:24px;background-position:-58px -239px;}
div.teeth li.t47:hover span {width:27px;background-position:-82px -239px;}
div.teeth li.t46:hover SPAN {width:31px;background-position:-109px -239px;}
div.teeth li.t45:hover SPAN {width:22px;background-position:-140px -239px;}
div.teeth li.t44:hover SPAN {width:22px;background-position:-162px -239px;}
div.teeth li.t43:hover SPAN {width:21px;background-position:-184px -239px;}
div.teeth li.t42:hover SPAN {width:16px;background-position:-206px -239px;}
div.teeth li.t41:hover SPAN {width:16px;background-position:-222px -239px;}

div.teeth li.t31:hover SPAN {width:16px;background-position:-238px -239px;}
div.teeth li.t32:hover SPAN {width:16px;background-position:-254px -239px;}
div.teeth li.t33:hover SPAN {width:20px;background-position:-270px -239px;}
div.teeth li.t34:hover SPAN {width:22px;background-position:-290px -239px;}
div.teeth li.t35:hover SPAN {width:22px;background-position:-312px -239px;}
div.teeth li.t36:hover SPAN {width:30px;background-position:-334px -239px;}
div.teeth li.t37:hover SPAN {width:28px;background-position:-364px -239px;}
div.teeth li.t38:hover SPAN {width:24px;background-position:-392px -239px;}

/* Дерево под зубами */
div.workerLocal div.treeLeft{
    margin:1px 0 0 1px;float:left;border:1px solid #888;
    height:434px;width:377px;overflow:auto;}
    div.workerLocal div.selManipulation{height:564px;}
    div.workerLocal div.selManipulation a.btnDir,
    div.workerLocal div.selManipulation a.btnDir2{width:96%;/*width:374px;*/}
    
/* шаблоны */
div.templateBody{padding:4px 0 0 6px;height:452px;}
    div.templateBody div.templateLoc{}
    div.templateBody div.selectTem{float:left;}
	    div.selectTem a.btnSection{width:848px;}
	    div.selectTem div.tmpNone{width:856px;}
    div.templateBody div.treeTem{
        margin:56px 0 0 0;
        width:848px;height:387px;
        border:1px solid #888;background:#fff;}
	    div.treeTem a.btnDir,
	    div.treeTem a.btnDir2{width:99.6%;}
	    div.treeTem a.btnDir:hover,
	    div.treeTem a.btnDir2:hover{
	        background:#c3dcfc url(../images/btnbg.png) repeat-x;
	        border:1px solid #7ac;}
div.template a.btnSection{
    display:block;float:left;
    margin:0px;padding:0px;border:1px solid #F0F0F0;
    color:#000;line-height:18px;text-decoration:none;
    background:#F0F0F0;
    width:848px;
    }
div.template a.btnSection:hover{ /* одинаково с a.btnTools:hover */
    background:#c3dcfc url(../images/btnbg.png) repeat-x;
    border:1px solid #7ac;}

    
/* оболочка всплывающих окон */
div.popupBorder{
	/*padding:0 4px 0 0;border:4px ridge #888;*/
	padding:0 0 0 0;border:1px solid #fff;
    background:#BCDDFD;}
    div.popupBorder2{border:1px solid #252C33;}
div.btnCancel{float:right;}
    div.btnCancel a.btn,
    div.buttonsLocal a.btn{
        padding:0;margin:-8px 6px 0 0;border:none;
        width:47px;height:20px;background:url(../images/butExit.png);}
    div.btnCancel a.btn:hover,
    div.buttonsLocal a.btn:hover{background:url(../images/butExit.png) -47px 0px;}
div.popupTitle{padding:6px 0 0 6px;}
div.popupWin{border:1px solid #5D6C7A;}
div.popupWin2{
	margin:6px;border:1px solid #EBF4FE;
    background:#F0F0F0;}
    div.popupOk{height:27px;}



/* всплывающее окно создания/редактирования */
div.boxEditStr{}
    div.boxEditStr input{margin:6px;width:560px;height:20px;border:1px solid #888;background:#fff;}
        div.popupOk a.btn{
            float:right;margin:0 6px 0 0;padding:0;
            width:64px;height:21px;
            background:url(../images/butOk.png);border:none;}
        div.popupOk a.btn:hover{background:url(../images/butOk.png) -64px 0px;border:none;}
/*div.boxTextEditString{
	float:left;
	width:500px;margin:0 0 4px 10px;}
div.boxEditString{
	margin:10px;
	border:1px solid #888;background:#fff;}
	div.boxEditString input{width:580px;height:20px;}
div.boxOkEditString{
	float:right;margin:4px 6px 0 0;}
	div.boxOkEditString{} a.btn{background:#c3dcfc url(../images/btnbg2.png) repeat-x;border:1px solid #7ac;}*/

/* Для печати */
div.report{
	position:absolute;z-index:1;left:0px;top:0px;
	width:100%;height:100%;
    border:none;display:none;background:url(../images/bg.png);}
div.winReport{
        position:absolute;margin-left:-160px;top:120px;left:50%;
        width:320px;background:#fff;}
        div.winReport div.print{margin:4px 0 0 0;}
            div.print div.ico{float:left;width:32px;margin:0 0 4px 4px;}
                /*div.print div.ico a.btnReport{
				    margin:0px;padding:0px;border:1px solid #fff;
				    width:24px;background:#fff;}
                div.ico a.btnReport:hover{
                    background:#c3dcfc url(../images/btnbg.png) repeat-x;
                    border:1px solid #7ac;}*/
            div.print div.txt{float:left;width:258px;margin:9px 0 0 4px;}
            
