﻿
/* Table design */
div.cmsTable
{
    border: 0 none;
    outline: none;
    background:transparent;
}
table.cmsTable
{
    border-collapse: collapse;
    width: 100%;
}


/* if a panel is followed by a gridview(normal and telerik): add top border to table/div */
div.box > div.panel + div > table.cmsTable, div.box > div.panel + div.cmsTable
{
    border-top: solid 1px #bfccd1;
}


table.cmsTable tr.published
{
    background: #c9d8cb;
    font-weight: bold;
}
table.cmsTable tr.current
{
    background: #9bc2db;
    font-style: italic;
}

table.cmsTable > tbody > tr:hover td, table.cmsTable tr.input, div.cmsTable table.rgMasterTable > tbody > tr:hover td:not(.checkboxColumn):not(.rgDragCol)
{
    background-color: #f5f9fa;
}


/* table [cells] */

.panel > table > tbody > tr > td
{
    padding: 4px 10px 0 0;
    height: 20px;
}

table.cmsTable > tbody > tr > td, div.cmsTable .rgRow > td, 
table.cmsTable > tbody > tr > td, div.cmsTable .rgEditRow > td, 
div.cmsTable .rgAltRow > td, div.cmsTable .rgRow .rgSorted, div.cmsTable .rgAltRow .rgSorted
{
    background-color: transparent;
    border-color: #e3ebef;
    border-style: solid;
    border-width: 0 1px 1px 0;
    line-height: inherit;
    height: 27px;
    line-height: 20px;
    overflow: hidden;
    padding: 10px 10px 5px;
}
div.cmsTable .rgAltRow .rgSorted, div.cmsTable .rgAltRow .rgSorted, div.cmsTable .rgAltRow
{
    background-color: transparent;
}
div.cmsTable .rgEditForm
{
    border-bottom: 1px solid #e3ebef;
}
div.cmsTable .rgEditRow
{
    background: none;
}
div.cmsTable .rgEditRow td
{
    background: none;
    border-bottom: 1px solid #e3ebef;
}

/* sorted overrides */
div.cmsTable tr.rgSelectedRow > td, div.cmsTable tr.rgSelectedRow td.rgSorted
{
    border-width: 0 0 1px 0;
    background: #f0f5f6;
    border-bottom-color: #e3ebef;
}

/* checkboxcolumn */
div.cmsTable tr.rgSelectedRow > td.checkboxColumn
{
    border-width: 0 1px 1px 0;
    border-color: #e3ebef;
}
div.cmsTable td.checkboxColumn, div.cmsTable th.checkboxColumn
{
    background: #cedae0;
    border-width: 0 1px 0 0;
    border-color: #c0ced4;
}
/* drag column*/

div.cmsTable tr.rgSelectedRow > td.dragCol
{
    border-color: #e3ebef;
}
div.cmsTable td.dragCol, div.cmsTable th.dragCol
{
    background: #e3ebef;
    border: 0 none;
}
div.cmsTable table.rgMasterTable tr .rgDragCol
{
    background: #e3ebef;
    border: 0 none;
}
/* no records td */

div.cmsTable table.rgMasterTable tr.rgNoRecords td
{
    padding: 10px;
}
/* table [header cells] */

table.cmsTable th, div.cmsTable table tr th, div.cmsTable th.rgHeader, div.cmsTable th.rgSorted
{
    font-size: 11px;
    text-align: left;
    font-weight: bold;
    padding: 4px 10px 0 10px;
    background: #e3ebef;
    border-width: 0 1px 0 0;
    border-color: #cddadf;
    border-style: solid;
    height: 27px;
    line-height: 27px;
}
div.cmsTable table tr th, div.cmsTable th.rgHeader, div.cmsTable th.rgSorted, div.cmsTable table.rgMasterTable tr th.rgDragCol
{
    border-top: 1px solid #c0ced4;
}

div.cmsTable div.rgHeaderDiv
{
    background: #e3ebef;
    border-color: #c0ced4;
    border-style: solid;
    border-width: 0 1px 0 0;
}
div.cmsTable .rgHeader input
{
    float: right;
}
div.cmsTable .rgHeader .rgSortAsc
{
    background: url("images/sort_asc.png") no-repeat scroll 0 0 transparent;
    height: 6px;
    margin-top: 7px;
}
div.cmsTable .rgHeader .rgSortDesc
{
    background: url("images/sort_desc.png") no-repeat scroll 0 0 transparent;
    height: 6px;
    margin-top: 7px;
}

/* overrides for last cells in table */

table.cmsTable > tbody > tr:last-of-type td, table.rgMasterTable > tbody > tr:last-of-type td, table.rgMasterTable > tbody > tr:last-of-type td.rgSorted
{
    border-bottom: 0 none;
}

table.cmsTable > tbody > tr > td:last-of-type, table.cmsTable > tbody > tr > th:last-of-type, table.cmsTable > thead > tr > th:last-of-type, div.cmsTable table > tbody > tr > td:last-of-type, div.cmsTable table.rgMasterTable > thead > tr > th:last-of-type
{
    border-right: 0 none;
}

div.cmsTable .rgDataDiv
{
    height: 100% !important;
}

/* grid pager */
div.cmsTable .rgPager
{
    background: url(images/cmstable_pager_bg.png) repeat-x 0 0;
    height: 29px;
    border: 0 none;
}
div.cmsTable .rgPager td table
{
    padding-left: 21px;
}
div.cmsTable td.rgPagerCell
{
    border: 0 none;
    padding: 3px 0 0 4px;
}

/* table links */

div.cmsTable table tr td a
{
    color: #1f8db3 !important;
    font-weight: bold;
}
div.cmsTable table tr td a
{
    color: #1f8db3 !important;
    font-weight: bold;
}

div.cmsTable .rgSelectedRow a, div.cmsTable .rgSelectedRow
{
    color: #000000;
}
/*høyde på radene i edit form i radgrid */
.rgEditForm   tr tr td
{
    height:26px;
}
/* ======================== */




/* reorderlist */

.reorderList li
{
    list-style-type: none;
    padding: 5px;
    background-color: #ffffff;
    border-color: #e3ebef;
    border-style: solid;
    border-width: 0 1px 1px 0;
    line-height: inherit;
    line-height: 20px;
    padding: 10px 10px 5px;
}

.reorderList ul li:nth-child(odd)
{
    /* background-color: #F0F5F6;*/
    background-color: white;
}

.reorderList ul li:hover
{
    background-color: #F5F9FA;
}

.dragHandle
{
    width: 15px;
    height: 15px;
    margin: 2px 5px 2px 2px;
    background: transparent url(images/drag.png) no-repeat;
    cursor: move;
    border: 0;
    opacity: 0.2;
}

.dragHandle:hover, .dragHandle:active
{
    opacity: 1;
}

.callbackStyle
{
    border: solid 1px blue;
}

.reorderCue
{
    border: dashed 1px #999999;
    height: 22px;
}