/*	CSS-Framework

	Version		: 0.2
	File name	: cssf-base.css
	Description	: Styles for webdewelopers
	Author		: Aleksej Romanovskij (http://css-framework.ru)
	
------------------------------ */

/* Utilites
------------------------------ */

* { margin: 0; padding: 0; }
.img-repl { text-indent: -9999px; overflow: hidden; display: block; }
*:focus { outline: none; }
.hidden { display: none!important; }
.show { display: block!important; }
.no-margin { margin: 0!important; }
.no-padding { padding: 0!important; }
.no-back { background: none!important; }
.no-border, img { border: none!important; }
.container { overflow: hidden; }

/* Main custom rules
------------------------------ */

html { background: #ddd; font: .75em/1.4 Helvetica, Verdana, Lucida-Grande, Arial, sans-serif; }
body { background: #fff url(../img/body_bg.gif) repeat-x; height: 100%; }

a { color: #0066cc; text-decoration: none; }
a:visited {  }
a:hover {  }
a:active {  }

ul li { list-style-image:  url(../img/arrow.gif); }

/* Базовые ID
------------------------------ */

#site { width: 700px; margin: 0 auto; }

#header { position: relative; background: transparent; height: 143px; }
#header a { color: #438ec8; }
#header h1 { position: absolute; background: transparent url(../img/logo.gif) no-repeat; margin: 20px 0 0 18px; width: 311px; height: 105px; text-indent:-5000px; }
#login_block { position: absolute; background: #ddd; color: #19a854; padding: 4px 8px 4px 8px; top: 40px; right: 10px; font-size: 1.2em; }
#login_block a { margin: 0 .4em; }
#login_block a:hover { text-decoration: underline; }

#all_projects { position: absolute; padding: 4px 8px 4px 8px; top: 85px; right: 10px; font-size: 1.2em; }

#content { min-height: 250px; margin-bottom: 5em; padding-top: 20px; font-size: 1.2em; }
#content a { text-decoration: underline; }
#content .pslink { color: #0066cc; text-decoration: underline; cursor: pointer; cursor: hand; }

#footer { background: #ddd; clear: both; margin-top: 1em; font-size: .9em; color: #666; }
#in-footer { width: 750px; margin: 0 auto; padding: 40px 5px 20px 5px; }
#in-footer a { color: #666; text-decoration: underline; }
#in-footer .right { float: right; }

#executeTime { position: absolute; width: 100%; top: 125px; }
#executeTime .time { margin: 0 auto; width: 700px; text-indent: 30px; color: #000; font-weight: bold; }

/* Новости
------------------------------ */
#content .comment { font-size: 70%; }
#content .news li { margin-bottom: .5em; }
#content .from { margin-top: 2em; }

/* Формы сообщений
------------------------------ */
.message { width: 100%; text-align: center; border-bottom: 2px solid #ccc; font-weight: bold; margin: 8px 4px; }
#errorMessage { border-color: #900; color: #900; }
#successMessage { color: #19a854; }
#flashMessage { color: #f0fd00; }
.error { font-size: .75em; color: #900; }

/* Уголки
------------------------------ */

.top_left { left: 0; top: 0; background-position: top left; }
.top_right { right: 0; top: 0; background-position: top right; }
.bottom_left { left: 0; bottom: 0; background-position: bottom left; }
.bottom_right { right: 0; bottom: 0; background-position: bottom right; }
.corner { position: absolute; width: 6px; height: 6px; background-image:url(../img/corner.gif); }
/* #header .corner { background-image:url(../img/corner_header.gif); } */

/* Форма авторизации на главной
------------------------------ */

#login_form_box { position: absolute; left: 50%; top: 50%; }
#login_form { position: absolute; left: -150px; top: -100px; width: 300px; background: #222; color: #fff; padding: 10px; }
#login_form .close { position: absolute; right: 10px; top: 10px; color: #fff; }

#login_form .ch  .f-inputs { float: left; text-align: right; width: 25.99%; padding: 0 2%; }
#login_form .ch label { text-align: left; width: 60%; }

#login_form form { padding: 0; }
#login_form fieldset { margin-bottom: .5em; border: none; }
#login_form legend { margin-top: -1px; padding-bottom: 1em; font-size: 1.1em; font-weight: bold; }
#login_form .i-text { width: 170px; }

#pause { position: absolute; left: -5000px; top: -5000px; }


/* Разбивка на страницы
------------------------------ */
div.paging { color: #ccc; margin: 2em; text-align: center; }
div.paging div.disabled { color: #ddd; display: inline; }

/* Horizontal Menu
------------------------------ */

.menu-h { position: relative; margin-bottom: 1em; border-left: 1px solid #ccc; float: right; }
.menu-h li { float: left; list-style: none; padding: 0 .8em .2em; border-right: 1px solid #ccc; }
.menu-h .active { background: #ccc; border-bottom: 1px solid #ccc; }

/* Horizontal Drop Down Menu
------------------------------ */

.menu-h-d { min-height: 24px; border-left: 1px solid #ccc; }
.menu-h-d li { float: left; display: block; position: relative; border: 1px solid #ccc; border-width: 1px 1px 1px 0px; list-style: none; }
.menu-h-d li:hover {  }
.menu-h-d a { text-decoration: none; padding: 2px 10px; display: block; }

.menu-h-d ul { display: none; position: absolute; top: 22px; left: -1px; width: 160px; background: #fff; border: 0; border-bottom: 1px solid #ccc; }
.menu-h-d ul ul { left: 100%; top: -1px; }

.menu-h-d li li { float: none; border-width: 1px 1px 0px 1px; }

.menu-h-d li:hover { background: #ccc; }
.menu-h-d a:hover { color: #fff; }
.menu-h-d a.active { color: #000; }

.menu-h-d li:hover ul ul,
.menu-h-d li:hover ul li:hover ul ul { display: none; }

.menu-h-d li:hover ul,
.menu-h-d li:hover ul li:hover ul,
.menu-h-d li:hover ul li:hover ul li:hover ul { display: block; }

/* Vertical Menu
------------------------------ */

.menu-v a, .menu-h a { text-decoration: none; display: block; }
.menu-v a:hover, .menu-h a:hover { text-decoration: underline; }

.menu-v { border-top: 1px solid #ccc; }
.menu-v li { padding: 2px 0; list-style: none; border-bottom: 1px solid #ccc; }
.menu-v li ul { padding-left: 1em; margin-top: 2px; }
.menu-v li li { border: none; border-top: 1px solid #ccc; }

/* Vertical Drop Down Menu
------------------------------ */

.menu-v-d { border-top: 1px solid #ccc; }
.menu-v-d li { padding: 2px 0; display: block; position: relative; border: 1px solid #ccc; border-width: 0px 1px 1px 1px; list-style: none; }
.menu-v-d li a { display: block; position: relative; text-decoration: none; padding-left: 10px; }

.menu-v-d li:hover { background: #ccc; }
.menu-v-d a:hover { color: #fff; }
.menu-v-d a.active { color: #000; }

.menu-v-d li ul { display: none; position: absolute; top: -1px; border-top: 1px solid #ccc; left: 100%; width: 100%; background: #fff; }
.menu-v-d li ul li { background: #fff; }

.menu-v-d li:hover ul ul,
.menu-v-d li:hover ul li:hover ul ul { display: none; }

.menu-v-d li:hover ul,
.menu-v-d li:hover ul li:hover ul,
.menu-v-d li:hover ul li:hover ul li:hover ul { display: block; }

.menu-v-d ul ul { left: 100%; }

/* Content elements
------------------------------ */

.content h1, .content h2, .content h3, .content h4 { font: 1em Verdana, Arial, Helvetica, sans-serif; margin-bottom: .5em; color:#045; }
.content h2 a, .content h3 a, .content h4 a { color:#045; }
.content h1 a { color:#333; }

.content h1 { font-size: 1.9em; color:#333; }
.content h2 { font-size: 1.6em; }
.content h3 { font-size: 1.4em; }
.content h4 { font-size: 1.3em; font-weight: bold; }


blockquote { margin-left: 10em; padding-left: 1em; border-left: 2px solid #ccc; }

.content ul { margin-left: 2em; line-height: 1.3em; }
.content ul li { margin-bottom: .2em; }

.content ol { margin-left: 3em; line-height: 1.3em; }
.content ol li { margin-bottom: .2em; }

pre, code { font: 1.1em/1.3 "Courier New", Courier, monospace; }
pre { border: 1px dashed #aaa; padding: .3em; background: #eee; }
code { padding: .2em .2em; }

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

.icons a, .icon { padding-left: 20px; }

.content p, .content ul, .content ol, .content table, blockquote, pre, .columns, .content img { margin-bottom: 1em; }

/* Text align & Float
------------------------------ */

.a-left { text-align: left; }
.a-center { text-align: center; }
.a-right { text-align: right; }

.f-left { float: left; }
.f-right { float: right; }

/*	Tables
------------------------------ */

table { border-collapse: collapse; width: 100%; }
table th, table td { padding: 2px 3px; border-top: 1px solid #ccc; }
table th { background: #f4f4f4; }
table td {  }
.noline { border-top: 1px solid #fff; }

/*	Columns
------------------------------ */

.columns { width: 100%; overflow: hidden; }
.w-50, .w-25, .w-33, .w-38, .w-66, .w-75, .w-62, .w-40, .w-60, .w-30 { float: left; overflow: hidden; }

.col-content { padding: .5em; background: #eed; margin: 10px; }
.menu { float: right; width: 250px; background: #eed; margin: .5em; padding: .5em; }
.col-first { padding-left: 0!important; }
.col-last { padding-right: 0!important; }

.w-5 { width: 5%; }
.w-10 { width: 10%; }
.w-15 { width: 15%; }
.w-20 { width: 20%; }
.w-25 { width: 25%; }
.w-30 { width: 30%; }
.w-35 { width: 35%; }
.w-40 { width: 40%; }
.w-45 { width: 45%; }
.w-50 { width: 50%; }
.w-55 { width: 55%; }
.w-60 { width: 60%; }
.w-65 { width: 65%; }
.w-70 { width: 70%; }
.w-75 { width: 75%; }
.w-80 { width: 80%; }
.w-85 { width: 85%; }
.w-90 { width: 90%; }
.w-95 { width: 95%; }
.w-100 { width: 100%; }

.w-33 { width: 33%; }
.w-66 { width: 66%; }

.w-38 { width: 38%; }
.w-62 { width: 62%; }

/* Images
------------------------------ */

.content img { padding: 5px; border: 1px solid #ccc!important; margin-top: .4em; }
.content img.null-image { padding: 0!important; border: none!important; margin: 0!important; }
img.f-left { margin-right: 1em; }
img.f-right { margin-left: 1em; }

.projects img { padding: 0!important; border: none!important; margin: 0!important; float: right; }

/* Content Form
------------------------------ */

.content form { padding: .5em 0; }
.content fieldset { margin-bottom: 1em; border: none; }
.content legend { margin-top: -1px; padding-bottom: 1em; font-size: 1.1em; font-weight: bold; }

.content .f-row { overflow: hidden; margin-bottom: .5em; }
.content label { float: left; text-align: right; width: 25.99%; padding: 0 2%; }
.checkbox label { float: none; padding: 0; }
.content .f-inputs { padding-left: 30%; }

.f-actions { padding-top: 1em; border-top: 1px solid #ccc; }

/* Inputs
------------------------------ */

input { vertical-align: middle }
.i-checkbox { margin-top: 3px; }
.i-text { width: 200px; padding: 0 1px; font: 1em sans-serif; }
.button { padding: 0 .25em; width: auto; overflow: visible; cursor: pointer; }


.projects a:visited { color: #551A8B; }
