/*
* -*- mode: text; coding: utf-8; -*-


   This file is part of Indico.
   Copyright (C) 2002 - 2012 European Organization for Nuclear Research (CERN).

   Indico is free software; you can redistribute it and/or
   modify it under the terms of the GNU General Public License as
   published by the Free Software Foundation; either version 3 of the
   License, or (at your option) any later version.

   Indico is distributed in the hope that it will be useful, but
   WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
   General Public License for more details.

   You should have received a copy of the GNU General Public License
   along with Indico; if not, see <http://www.gnu.org/licenses/>.
*/

table.i-table {
    border-collapse: collapse;
    margin-top: 1.6em;
    table-layout: fixed;
    width: 100%;
}

h3.i-table {
    color: #777;
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 0em;
    margin-top: 1.6em;
    padding: 3px 3px 5px 3px;
}

h3.i-table.emphasis {
    font-style: italic;
}

h3.i-table.border {
    border-bottom: 1px solid #E5E5E5;
}

h3.i-table + table.i-table,
table.i-table.no-margin {
    margin-top: 0em;
}

tr.i-table {
    border-bottom: 1px solid #E5E5E5;
    border-top: 1px solid #E5E5E5;
}

td.i-table {
/*     border-left: 2px solid rgba(56, 126, 229,0); */
    border-left: 2px solid transparent;
    box-sizing: border-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    overflow: hidden;
    padding: 5px 3px 5px 3px;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}

td.i-table ~ td.i-table {
    border-left: none !important;
}

td.i-table.empty {
    color: #999;
    font-style: italic;
}

td.i-table[class*="icon-"] {
     width: 30px;
}

td.i-table[class*="icon-"]:before {
    color: #555 !important;
    font-size: 1.2em;
}

/* **************** */
/* Interactive rows */
/* **************** */
tr.i-table.interactive.active {
    background-color: #F4F4F4;
    transition: background-color .25s ease-out;
    -webkit-transition: background-color .25s ease-out;
    -moz-transition: background-color .25s ease-out;
}

.border-bottom-none {
	border-bottom: none !important;
}

tr.i-table.interactive > td.i-table {
    cursor: pointer;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

tr.i-table.interactive.active > td.i-table {
    border-left-color: #E5E5E5;
}

tr.i-table.interactive:hover > td.i-table,
tr.i-table.interactive:hover + tr.i-table.content-wrapper > td.i-table {
    border-left-color: rgb(56, 126, 229) !important;
}

tr.i-table.content-wrapper {
    border-top: none;
}

tr.i-table.content-wrapper > td.i-table {
    border-left-color: #E5E5E5;
    padding: 0px;
}

tr.i-table.content > td.i-table.caption,
tr.i-table.content > td.i-table.value {
    padding: 3px 5px 3px 5px;
}

tr.i-table.content {
    border: none;
}

tr.i-table.content > td.i-table.log-caption {
    border-bottom: 1px dashed #E5E5E5;
    border-right: 1px dashed #E5E5E5;
    font-weight: bold;
    text-align: right;
    vertical-align: top;
}

tr.i-table.content > td.i-table.value {
    border-bottom: 1px solid transparent !important;
    white-space: pre-line;
}

tr.i-table.content:last-of-type > td.i-table.caption,
tr.i-table.content:last-of-type > td.i-table.value {
    border-bottom: none !important;
}

/* ************** */
/* View specifics */
/* ************** */
td.i-table.log-module {
    font-weight: bold;
    width: 150px;
}

td.i-table.log-subject {
    width: auto;
}

td.i-table.log-stamp {
    text-align: right;
    text-overflow: clip;
    width: 230px;
}

td.i-table.caption.log-caption {
    width: 175px;
}

span.user-name {
   display: inline-block;
   max-width: 120px;
   overflow: hidden;
   text-overflow: ellipsis;
   vertical-align: bottom;
}