/* Common stylesheet - Used in every templates */ 
html {
    margin-left: -0.1px; /* -0.1 to avoid background alignment bug in FF */
    background: #ccc;
    color: #000;
    font-size: 14px;
    font-family: Arial, Lucida Sans, Trebuchet MS, Helvetica, Verdana, sans-serif;
}

html, body, div, table, h1, h2, h3, h4, tr, th, td, img, ul, ol, li, form { margin: 0; padding: 0; }

a {       color: #102b62; text-decoration: none; }
a:hover { color: #1f90cb; text-decoration: none; }

img { vertical-align: middle; border: 0 none; }

fieldset { margin-bottom: 8px; border-radius: 4px; }

legend { padding: 0 5px; font-weight: bold; }

ul, ol { padding-left: 24px; }

li { margin-top: 4px; margin-bottom: 4px; }

table { border-spacing: 0; border-collapse: collapse; }

object, embed { vertical-align: top; }

iframe { border: 0 none; }

textarea { max-width: 100%; }

pre { margin: 8px 0; overflow: auto; max-width: 100%; }

p { margin: 8px 0; }

.page-background {
    background: #eee url(http://webtv.iadt.fr/statics/mediaserver/images/page_bg.png) 0 100% repeat-x;
    text-align: center; /* to avoid block centering bug in IE */
    width: 100%;
    min-width: 1000px;
}


/* title */
h1 {
    font-weight: bold;
    font-size: 22px;
}
h2 {
    font-weight: bold;
    font-size: 18px;
}
h3 {
    margin: 0;
    margin-bottom: 10px;
    font-weight: bold;
    font-size: 16px;
    color: #444;
}
h3 a {
    color: #444;
}
h3.closed {
    padding-left: 26px;
    cursor: pointer;
    background: url("http://webtv.iadt.fr/statics/mediaserver/images/slide_right_black.png") 4px 50% no-repeat;
}
h3.open {
    padding-left: 26px;
    cursor: pointer;
    background: url("http://webtv.iadt.fr/statics/mediaserver/images/slide_down_black.png") 4px 50% no-repeat;
}
h4 {
    margin-top: 6px;
    margin-bottom: 6px;
}


/* tree */
div.tree-place {
    padding: 0 8px;
    font-size: 12px;
}
div.tree-place a {
    color: #444;
}
div.tree-place a:hover {
    color: #1f90cb;
}
a.tree {
    margin-left: 4px;
    padding-left: 24px;
    background: transparent url("http://webtv.iadt.fr/statics/mediaserver/images/right_arrow_grey.png") 0 50% no-repeat;
}


.btn-bar,
.form-top-bar,
.form-bottom-bar {
    line-height: 24px;
}
.form-top-bar {
    margin-bottom: 8px;
}
.form-bottom-bar {
    margin-top: 8px;
}
.form-validate {
    margin-top: 8px;
    text-align: right;
}

a.clickable {
    padding-left: 8px;
    padding-right: 8px;
    display: block;
    cursor: pointer;
}
p.nopadding {
    margin-top: 0;
    margin-bottom: 2px;
}

p.error { color: red; }
span.red { color: red; }
span.green { color: green; }

pre.log-pre {
    margin: 0;
    padding: 5px;
    background: transparent url("http://webtv.iadt.fr/statics/mediaserver/images/black_mask.png") 0 0 repeat;
    color: #fff;
    border: 1px solid #888;
    overflow: auto;
    border-radius: 4px;
}

.search-label img {
    margin-right: 4px;
    margin-bottom: 6px;
}


/* Embed code (sharing table) */
div.embed-code {
    margin-left: 24px;
    margin-right: 24px;
    margin-top: 8px;
    margin-bottom: 16px;
    padding-left: 8px;
    padding-right: 8px;
    text-align: left;
    border: 1px solid #888;
    background: transparent url("../../../../statics/mediaserver/images/tab_mask.png") 0 0 repeat;
}
div.embed-code p {
    margin-top: 2px;
    margin-bottom: 2px;
}


/* common table style */
table.oddeven tbody tr:nth-child(odd) {
    background: #e2e2e2;
    background: rgba(210, 210, 210, 0.6);
}
table.oddeven tbody tr:nth-child(even) {
    background: #eeeeee;
    background: rgba(230, 230, 230, 0.6);
}
.title-bg-block,
table th {
    padding: 4px 6px;
    text-align: left;
    font-weight: bold;
    color: #222;
    border-left: 2px solid #fff;
    border-right: 2px solid #fff;
    background: #ddd;
    background: -moz-linear-gradient(top, #eee, #ccc);
    background: -webkit-gradient(linear, left top, left bottom, from(#eee), to(#ccc));
}
table td {
    padding: 4px 6px;
}
table th.label,
table td.label {
    line-height: 24px;
    vertical-align: top;
    white-space: nowrap;
}
table th.input,
table td.input {
    width: 100%;
}
.no-full-input th.input,
.no-full-input td.input {
    width: auto;
}
.has-default th.input,
.has-default td.input {
    width: auto;
}
.has-default th.input + th,
.has-default td.input + td {
    width: 100%;
}
table th.header {
    cursor: pointer;
}
table th.header > span,
table th.headerSortDown > span,
table th.headerSortUp > span {
    padding-left: 20px;
    padding-right: 4px;
    background: transparent none 2px 50% no-repeat;
    display: block;
}
table th.header > span {
    background-image: url("http://webtv.iadt.fr/statics/mediaserver/images/sort.png");
}
table th.header:hover {
    background: -moz-linear-gradient(top, #fff, #ddd);
    background: -webkit-gradient(linear, left top, left bottom, from(#fff), to(#ddd));
}
table th.headerSortDown > span {
    background-image: url("../../../../statics/mediaserver/images/sort_down.png");
}
table th.headerSortUp > span {
    background-image: url("../../../../statics/mediaserver/images/sort_up.png");
}
table tr.even > td {
    background: #eeeeee;
    background: rgba(230, 230, 230, 0.6);
}
table tr.odd > td {
    background: #e2e2e2;
    background: rgba(210, 210, 210, 0.6);
}
table tr.green > td {
    color: #040;
    background: #eeffee;
    background: rgba(230, 255, 230, 0.6);
}
table tr.odd.green > td {
    color: #040;
    background: #e2f0e2;
    background: rgba(200, 235, 200, 0.6);
}
table tr.red > td {
    color: #400;
    background: #ffeeee;
    background: rgba(255, 230, 230, 0.6);
}
table tr.odd.red > td {
    color: #400;
    background: #f0e2e2;
    background: rgba(235, 210, 210, 0.6);
}
table tr.selected > td {
    color: #004;
    background: #eeeeff;
    background: rgba(205, 205, 255, 0.7);
}
table tr.odd.selected > td {
    color: #004;
    background: #e2e2f0;
    background: rgba(190, 190, 255, 0.7);
}
table tr.hovered > td,
table tr.clicked > td,
table tr.hoverable:hover > td,
table tr.clickable:hover > td {
    color: #022;
    background: #aaffff;
    background: rgba(180, 255, 255, 0.8);
}
table tr.odd.hovered > td,
table tr.odd.clicked > td,
table tr.odd.hoverable:hover > td,
table tr.odd.clickable:hover > td {
    color: #011;
    background: #99f0f0;
    background: rgba(160, 235, 235, 0.8);
}
table tr.clickable:hover > td {
    cursor: pointer;
}

input[type=text],
input[type=password] {
    width: 200px;
}
input[type=checkbox],
input[type=radio] {
    margin: 2px;
    vertical-align: middle;
}
input.smaller {
    width: 40px;
    text-align: center;
}
input.small {
    width: 150px;
    text-align: center;
}
input.medium {
    width: 300px;
}
input.large,
textarea.large {
    width: 100%;
    width: calc(100% - 6px);
}
textarea.large {
    height: 200px;
    resize: vertical;
}
select.multiple {
    min-width: 200px;
}
.input-padding {
    padding-right: 6px;
}
.full-input input[type=text],
.full-input input[type=password],
.full-input textarea  {
    width: 100%;
    display: block;
}
.full-input textarea {
    height: 200px;
}

html .mce-path {
    padding: 0 8px;
}

/* template messages */
.messages-block ul {
    padding: 0;
}
.info,
.success,
.warning,
.error,
.loading {
    margin: 5px;
    padding-top: 4px;
    padding-bottom: 4px;
    padding-left: 38px;
    padding-right: 4px;
    line-height: 20px;
    min-height: 20px;
    display: block;
    border: 1px solid transparent;
    overflow: hidden;
    border-radius: 6px;
}
.info {
    color: #143447;
    border-color: #388fc4;
    background: #ebfaff url("../../../../statics/mediaserver/images/icons/messages/icon_24_info.png") 6px 50% no-repeat;
}
.success {
    color: #223205;
    border-color: #76ae12;
    background: #f2ffdb url("http://webtv.iadt.fr/statics/mediaserver/images/icons/messages/icon_24_tick.png") 6px 50% no-repeat;
}
.warning {
    color: #150c03;
    border-color: #e47f25;
    background: #ffeddc url("../../../../statics/mediaserver/images/icons/messages/icon_24_warning.png") 6px 50% no-repeat;
}
.error {
    color: #390a0a;
    border-color: #e42626;
    background: #ffefef url("../../../../statics/mediaserver/images/icons/messages/icon_24_error.png") 6px 50% no-repeat;
}
.loading {
    padding-top: 8px;
    padding-bottom: 8px;
    line-height: 28px;
    min-height: 28px;
    padding-left: 48px;
    color: #000;
    border-color: #aaa;
    background: #eee url("../../../../statics/mediaserver/images/icons/messages/icon_32_loading.gif") 6px 50% no-repeat;
}
.paragraph-block .info,
.paragraph-block .success,
.paragraph-block .warning,
.paragraph-block .error,
.paragraph-block .loading {
    margin: 0;
    background-color: transparent;
    border: 0 none;
    border-radius: 0;
}


.tooltip {
    color: #555;
}
span.tooltip {
    padding-left: 24px;
}
div.tooltip {
    margin-top: 4px;
}
table td.tooltip {
    padding-top: 0;
    padding-left: 24px;
}
table th + td.tooltip,
table td + td.tooltip {
    padding-left: 6px;
}


ul.errorlist {
    margin-top: 6px;
}
ul.errorlist li {
    margin: 0;
    color: #ff0000;
    list-style-position: inside;
    list-style-image: url("../../../../statics/mediaserver/images/top_arrow.png");
}
ul.error {
    margin: 0;
    padding: 0;
    background: transparent;
}
ul.error li {
    margin: 0;
    padding: 0;
    list-style-position: inside;
    list-style-image: url("http://webtv.iadt.fr/statics/mediaserver/images/left_arrow.png");
    color: red;
}

ul.error-top {
    padding-left: 10px;
    background: transparent url("../../../../statics/mediaserver/images/top_arrow.png") 10px 50% no-repeat;
}
ul.error-top li {
    padding-left: 20px;
    list-style-type: none;
    color: red;
}



/* progress bar */
.progress-bar {
    height: 20px;
    position: relative;
    overflow: hidden;
    background: #ddd;
    border: 1px solid #888;
    border-radius: 5px;
}
.progress-level {
    width: 0%;
    height: 20px;
    background: #5bff5b;
    background: -moz-linear-gradient(top, #9fff9f, #5bff5b);
    background: -webkit-gradient(linear, left top, left bottom, from(#9fff9f), to(#5bff5b));
}
.red .progress-level {
    background: #ff5b5b;
    background: -moz-linear-gradient(top, #ff9f9f, #ff5b5b);
    background: -webkit-gradient(linear, left top, left bottom, from(#ff9f9f), to(#ff5b5b));
}
.progress-label {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    position: absolute;
    text-align: center;
    font-size: 16px;
    line-height: 20px;
}


/* ajax blocks switch */
.ajax-blocks .ajax-block { display: none; }
.ajax-blocks .ajax-block.displayed { display: block; }


/* login form */
.login-form { text-align: left; }
.login-content { min-width: 450px; }
.login-form p { margin: 0; padding: 8px; }
.login-form td { padding: 8px; text-align: left; }
.login-form td.label { text-align: right; }


/* cookies message */
.cookies-msg {
    top: 0;
    left: 0;
    right: 0;
    position: absolute;
    width: 100%;
    height: 1px;
    z-index: 40;
}
.cookies-msg .info {
    padding-right: 20px;
}
.cookies-msg-content {
    margin: 0 auto;
    padding: 10px;
    max-width: 100%;
    width: 600px;
    position: relative;
}
.cookies-msg .cookies-msg-content .paragraph-block {
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 0 8px #000;
}
.cookies-msg-close {
    top: 8px;
    right: 8px;
    position: absolute;
    width: 28px;
    height: 28px;
    background: transparent url("../../../../statics/mediaserver/images/info_close.png") 0 0 no-repeat;
    cursor: pointer;
}
.cookies-msg-close:hover {
    background-position: 100% 0;
}


/* jquery ui */
.ui-datepicker { z-index: 100 !important; }


/* common display styles */
.left { display: block; float: left; }
.right { display: block; float: right; }
.float-container { overflow: hidden; }
.inline { display: inline; }
.inline-block { display: inline-block; }
.block { display: block; }
.first { margin-top: 0; padding-top: 0; }
.no-margin { margin: 0; }
.no-padding { padding: 0; }
.marged { margin-left: 24px; }
.padded { padding-left: 24px; }
.margin-auto { margin: 0 auto; }
.margin-8 { margin: 8px; }
.margin-32 { margin: 32px; }
.column-2 { width: 50%; float: left; display: block; }
.column-3 { width: 33.3%; float: left; display: block; }
.column-32 { width: 66.6%; float: left; display: block; }
.top { vertical-align: top; }
.bottom { vertical-align: bottom; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.align-left { text-align: left; }
.align-right { text-align: right; }
.full { width: 100%; }
.hidden { display: none; }
.relative { position: relative; }
.mono { font-family: monospace; }
.margin-fix {
    margin-bottom: -1px;
    display: block;
    height: 1px;
    width: 100%;
    clear: both;
}
.separator {
    display: block;
    width: 100%;
    height: 1px;
}
.section {
    margin-left: 24px;
    margin-right: 24px;
}
.paragraph {
    margin-left: 24px;
    margin-right: 24px;
    margin-top: 6px;
    margin-bottom: 12px;
}

/* css for timepicker */
.ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
.ui-timepicker-div dl { text-align: left; }
.ui-timepicker-div dl dt { float: left; clear:left; padding: 0 0 0 5px; }
.ui-timepicker-div dl dd { margin: 0 10px 10px 45%; }
.ui-timepicker-div td { font-size: 90%; }
.ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }

.ui-timepicker-rtl{ direction: rtl; }
.ui-timepicker-rtl dl { text-align: right; padding: 0 5px 0 0; }
.ui-timepicker-rtl dl dt{ float: right; clear: right; }
.ui-timepicker-rtl dl dd { margin: 0 45% 10px 10px; }