/*
  Copyright (C) 2005 SKYRIX Software AG

  This file is part of OpenGroupware.org.

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

  OGo 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 Lesser General Public
  License for more details.

  You should have received a copy of the GNU Lesser General Public
  License along with OGo; see the file COPYING.  If not, write to the
  Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
  02111-1307, USA.
*/

DIV#rightPanel
{ position: absolute;
  top: 80px;
  left: 15em;
  margin-left: 5px;
  right: 0px;
  bottom: 0px;
  overflow: hidden; }

/* top list */
DIV#contactsListContent
{ cursor: default;
  position: absolute;
  background-color: #FFFFFF;
  top: 27px;
  left: 0px;
  right: 0px;
  height: 15.5em;
  border-left: 1px solid #9B9B9B;
  overflow: auto;
  overflow-x: hidden; }

.aptview_text
{
  color: #000000;
}

.apt_other
{
  color: #000000;
}

.apt_other_print
{
  font-style: italic;
}

.foldercell
{
  width: 25%;
}

.titlediv
{ line-height: 18px;
  vertical-align: middle;
  padding-top: 8px;
  padding-left: 6px; }

TABLE.titletable
{
  height: 24px;
  vertical-align: middle;
  padding-top: 6px;
  padding-left: 6px;
}

TD.titlecell
{
  height: 22px;
  vertical-align: middle;
  padding-bottom: 2px;
  white-space: nowrap;
}

TABLE.titletable TD.titlecell SELECT
{ 
  display: -moz-popup;
  border-top: 1px solid #fff;
  border-left: 1px solid #fff;
  border-right: 2px solid #222;
  border-bottom: 2px solid #222;
  -moz-border-bottom-colors: #000 #9c9a94 transparent;
  -moz-border-right-colors: #000 #9c9a94 transparent;
  background-color: #DCDAD5;
}

.whitesec_title
{
  background-color: #DCDAD5;
  padding: 4px;
}

DIV#contactFoldersList
{ position: absolute;
  top: 84px;
  left: 0px;
  width: 15em;
  bottom: 0px;
  margin: 0px;
  padding: 0px;
  overflow: hidden; }

DIV#smallToolbarContainer
{ height: 50px;
  margin: 0px 2px; }

DIV#smallToolbarContainer > .tabs
{ margin: 0px 2px;
  height: 40px; }

DIV#abToolbar
{ height: 38px; }

SPAN.toolbarButton
{ float: none;
  padding: 14px 2px 0px 2px; }

A.toolbarButton
{ text-decoration: none; }

UL#contactFolders
{ display: block;
  list-style-type: none;
  list-style-image: none;
  clear: both;
  cursor: default;
  color: #000;
  background: #CCDDEC;
  position: absolute; /* required for Safari & IE */
  top: 68px; /* leave space for the mini addressbook */
  bottom: 0px;
  left: 0;
  right: 0;
  width: auto;
  margin: 0px;
  padding: 0px;
  overflow: auto;
  overflow-x: hidden;
  border-top: 1px solid #909090;
  border-left: 1px solid #909090;
  border-bottom: 1px solid #FFFFFF;
  border-right: 1px solid #FFFFFF;
  -moz-user-select: none;
  -khtml-user-select: none;
}

UL#contactFolders LI
{
    background-repeat: no-repeat;
    background-position: 4px 2px;
    cursor: pointer;
    line-height: 20px;
    height: 20px;
    padding-left: 22px;
    margin: 0px;
    width: auto;
    white-space: nowrap;
}

DIV#contactFoldersList LI.local
{
    background-image: url('addrbook.png');
}

DIV#contactFoldersList LI.remote
{
    background-image: url('remote-addrbook.png');
}
    
.treecell
{
  color: black;
  vertical-align: bottom;
  padding-left: 4px; /* move away from the icon */
  padding-right: 2px; /* move away from the right border */
  white-space: nowrap;
}

DIV#folderTreeContent TABLE TD
{ height: 2em;
  border-top: 1px solid #fff;
  margin: 0px;
  padding: 0px; }

TABLE#contactsList
{ -moz-user-select: none;
  -khtml-user-select: none;
  width: 100%; }

TABLE#contactsList TBODY TD
{ cursor: pointer; }

TABLE#contactsList TD,
TABLE#contactsList TH
{ overflow: hidden;
  line-height: 16px;
  height: 18px;
  text-overflow: ellipsis;
  white-space: nowrap; } /* pre, normal, nowrap */

TABLE#contactsList TH
{ white-space: pre; }

TABLE#contactsList TR._deleted TD
{ 
  text-decoration: line-through;
}

TABLE#contactsList TD.displayName
{ background-repeat: no-repeat;
  background-position: 4px 1px;
  padding-left: 24px; }

TABLE#contactsList TR.vcard TD.displayName
{
  background-image: url('abcard.png');
}

TABLE#contactsList TR.vlist TD.displayName
{
  background-image: url('ablist.png');
}

DIV#contactView
{ 
  position: absolute;
  background: #fff;
  padding: .5em;
  top: 18em;
  left: 0px;
  right: 0px;
  bottom: 0px;
  overflow: auto;
  margin-top: 5px;
  border-top: 1px solid #aaa;
  border-left: 1px solid #aaa;
  line-height: 1em;
}

DIV#contactView A
{ color: #00f;
  text-decoration: none; }

DIV#contactView H3.contactCardTitle
{ margin: 0px;
  padding: .2em 0px;
  font-size: large;
  font-weight: bold;
  width: 300px;
  text-decoration: underline; }

DIV.contactColumn
{ width: 300px;
  margin-left: 1em;
  padding: .5em;
  float: left; }

DIV.contactColumn DIV
{ margin-bottom: 1em; }

DIV.contactColumn H4
{ margin: .2em 0px;
  margin-left: -1em;
  font-size: 10pt;
  font-weight: bold;
  background: #9ABCD8;
  color: #fff;
  width: 100%;
  padding: .1em .2em; }

SPAN.photoFrame
{ cursor: pointer;
  float: left;
  background-color: #fff;
  border: 1px solid #999;
  padding: 8px;
  margin: 8px;
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.2);
  -moz-transform: rotate(-2deg);
  -webkit-transform: rotate(-2deg);
  -ms-transform: rotate(-2deg);
  -moz-transition: all 0.2s ease-in-out;
  -webkit-transition: all 0.2s ease-in-out; }

SPAN.photoFrame IMG.contactPhoto
{ max-width: 120px;
  max-height: 120px;} 

SPAN.photoFrame:hover {
  -moz-transform: scale(3.0, 3.0) rotate(0deg) translate(33%, 33%);
  -webkit-transform: scale(3.0, 3.0) rotate(0deg) translate(33%, 33%);
  -ms-transform: rotate(0deg) scale(3.0, 3.0); }

SPAN.photoFrame:hover IMG.contactPhoto
{ 
  }

/* drag handles */
DIV#dragHandle
{ cursor: e-resize;
  border: 0px;
  top: 81px;
  left: 15em;
  width: 5px;
  bottom: 0px; }

DIV#rightDragHandle
{
  cursor: n-resize;
  top: 18em;
  left: 0px;
  right: 0px;
  height: 5px;
}

DIV.contactSelector
{
  position: absolute;
  top: 0px;
  bottom: 0px;
  right: 0px;
  left: 0px;
}

BODY.popup DIV#rightPanel
{ top: 4em; }

BODY.popup DIV#dragHandle
{ top: 7em; }

BODY.popup DIV#contactsListContent
{ height: 7em;
  top: 34px; }

BODY.popup DIV#contactFoldersList
{ top: 50px; }

BODY.popup DIV#rightDragHandle
{ top: 10.2em; }

BODY.popup DIV#contactView
{ top: 10.2em; }

BODY.popup DIV#filterPanel
{ position: relative;
  top: 7px;
}

DIV.contactSelection
{
  z-index: 10;
  background: inherit;
  position: absolute;
  bottom: 0em;
  padding: 1em;
  left: 0px;
  right: 0px;
  height: 90px;
  text-align: right;
  background: #E6E7E6;
  border-top: 1px solid #fff;
  border-left: 0px;
  border-right: 0px;
  border-bottom: 0px;
}

DIV.contactSelection > DIV.calendar
{ text-align: center; }

DIV.contactSelection INPUT.button
{ font-size: 8pt;
  margin-top: .25em;
  padding: 0px; }

DIV.contactSelection SPAN#selectionLabel
{ float: left; }

DIV#dragDropVisual
{
  background-image: url(abcard.png);
  background-repeat: no-repeat;
  background-position: 4px 2px;
  width: 5px;
  height: 20px;
  padding-left: 24px;
  padding-top: 5px;
}

DIV.copy
{
  background-image: url(add-contact.gif) !important; 
  background-position: 1px -2px !important;
}

@media print
{
  div#linkBanner, 
  div#contactFoldersList,
  div#dragHandle,
  div#rightDragHandle,
  div.menu,
  div#filterPanel,
  div#contactsListContent
  {
    display: none;
  }

  div#contactView,
  div#rightPanel
  {
    color: black;
    top: 0px;
    left: 0px;
    margin: 0px;
    border: none;
    display: block;
    visibility: visible;
    width: 100%;
    height: 100%;
  }

  div.contactColumn h4 {
    background: none;
  }
}
