/*
 * BEGIN PrimeFaces CSS Fixes
 */

/*
 * PF 4.0 neturejo nustatyto table-layout, todel lenteliu stulpeliu plociai buvo kintami (susitraukdavo kiek reikia).
 * Nuo PF 5.0 atsirado table-layout: fixed; kuris "sugadina" stulpeliu plocius - visi stulpeliai vienodo plocio.
 */
.ui-datatable table {
    table-layout: auto !important;
}

.ui-widget {
    font-family: Tahoma, sans-serif;
    font-size: 75%;
}
.ui-widget .ui-widget {
    font-family: Tahoma, sans-serif;
    font-size: 100%;
    border-color: #AFE1BB;
}

/*
 * END PrimeFaces CSS Fixes
 */

/*#################################################################*/

/*Global styles*/
img {
    border-width: 0;
}

.externalPane {
    border: none;
    overflow: visible;
    padding: 0 0 5px;
}

body {
    margin: 5px;
    font-family: Tahoma, sans-serif;
}

.toggler-west-open {
    background: url("/javax.faces.resource/img/toggle_left_24.png.html") no-repeat center right;
}
.toggler-west-closed {
    background: url("/javax.faces.resource/img/toggle_right_24.png.html") no-repeat center left;
}
.toggler-east-open {
    background: url("/javax.faces.resource/img/toggle_right_24.png.html") no-repeat center left;
}
.toggler-east-closed {
    background: url("/javax.faces.resource/img/toggle_left_24.png.html") no-repeat center right;
}
.toggler-north-open {
    background: url("/javax.faces.resource/img/toggle_up_24.png.html") no-repeat center left;
}
.toggler-north-closed {
    background: url("/javax.faces.resource/img/toggle_down_24.png.html") no-repeat center right;
}
.toggler-south-open {
    background: url("/javax.faces.resource/img/toggle_down_24.png.html") no-repeat center left;
}
.toggler-south-closed {
    background: url("/javax.faces.resource/img/toggle_up_24.png.html") no-repeat center right;
}
.ui-layout-resizer-west-closed {
    border: 1px solid #AFE1BB;
    border-radius: 3px;
}
.ui-layout-resizer-west-closed-hover {
    background-image: none;
}
.ui-layout-resizer-east-closed {
    border: 1px solid #AFE1BB;
    border-radius: 3px;
}
.ui-layout-resizer-east-closed-hover {
    background-image: none;
}
.ui-layout-resizer-north-closed {
    border: 1px solid #AFE1BB;
    border-radius: 3px;
}
.ui-layout-resizer-north-closed-hover {
    background-image: none;
}
.ui-layout-resizer-south-closed {
    border: 1px solid #AFE1BB;
    border-radius: 3px;
}
.ui-layout-resizer-south-closed-hover {
    background-image: none;
}
.ui-layout-pane .pe-layout-pane-header img {
    cursor: pointer;
}

.ui-widget-header {
    background-color: #CAE7D1;
    border-color: #AFE1BB;
}

.ui-toolbar.ui-widget-header {
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
    border-color: #AFE1BB;
}

.ui-widget .ui-button {
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
}

.ui-button.ui-state-hover{
    background-color: #CAE7D1;
}

.ui-widget-content {
    border-color: #AFE1BB;
}

.ui-menuitem.ui-state-hover{
    background-color: #CAE7D1;
}

.ui-panel-titlebar {
    font-family: Times, serif;
    font-weight: normal;
    font-variant: small-caps;
    font-size: 18px;
}

.ui-state-highlight .ui-icon {
    background-image: url("/javax.faces.resource/images/ui-icons_333333_256x240.png.html?ln=primefaces-bootstrap");
}

.ui-fieldset-legend.ui-state-default {
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
    border-color: #AFE1BB;
}

.ui-accordion .ui-accordion-header.ui-state-default{
    border-color: #AFE1BB;
}

.ui-accordion .ui-accordion-header.ui-state-default a{
    padding: .5em .5em .5em 2.2em;
    color: #333333;
}

.ui-accordion .ui-accordion-header.ui-state-default a:hover{
    color: #333333;
}

.ui-accordion .ui-accordion-header .ui-icon{
    display: block;
}

.ui-state-highlight, .ui-widget-content.ui-state-highlight, .ui-wizard-step-title.ui-state-highlight{
    background-image: linear-gradient(to bottom, #CAE7D1, #AFE1BB);
    background-color: #CAE7D1;
    color: #333333;
}

.ui-state-highlight a, .ui-widget-content .ui-state-highlight a{
    color: #333333;
}

.ui-wizard {
    margin-top: 10px;
}

.ui-wizard-step-title {
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
    border-color: #AFE1BB;
}

.ui-separator.ui-state-default {
    border-color: #AFE1BB;
}

.ui-galleria-frame{
    border: 1px solid #AFE1BB;
}

.ui-galleria-filmstrip-wrapper{
    height: 42px !important;
}

.ui-widget-overlay.ui-blockui {
    opacity: .50;
}

.ui-menu.ui-menu-dynamic {
    width: auto;
    white-space: nowrap;
}

.ui-menuitem-text{
    margin-right: 0.4em;
}
/*END Global styles*/
.toolbarLogo {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    margin-right: 4px;
}

.menuToolbar .ui-button{
    font-size: 120%;
}

.menuToolbar .ui-button{
    margin-left: 2px;
    margin-right: 2px;
}

.eastHeader {
    text-align: center;
    background-color: transparent;
}

.eastContent .ui-datalist{
    margin-bottom: 3px;
}

.eastContent .ui-datalist-header{
    background-color: #FFFFFF;
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
}

.eastContent .ui-paginator{
    background-color: #FFFFFF;
}

.westHeader {
    text-align: center;
    background-color: transparent;
}
.westSouthHeader {
    text-align: center;
    background-color: transparent;
}
.northHeader {
    text-align: center;
    background-color: transparent;
}

.centerHeader {
    text-align: center;
    background-color: transparent;
}

.outerCenterHeader{
    padding: 0;
    border: 0;
    margin: 0;
}

.layoutMessages>div{
    margin: 5px 0 0 0;
}

.taRegList, .taActList {
    font-family: Tahoma, sans-serif;
    font-size: 14px;
}
.taRegList .ui-datalist-item, .taActList .ui-datalist-item {
    padding-bottom: 10px;
}

.printToolbarButton {
    background: url("") no-repeat center left;
}

.newLegalActsTabView {
    border: none;
}

.newLegalActsTabView .ui-tabs-panel{
    padding: 0;
}

.newLegalActsParams .ui-panel-content{
    padding: 0;
}

.newLegalActsTabView.ui-tabs .ui-tabs-nav.ui-widget-header{
    border-bottom: 0;
}

.newLegalActsTabView .ui-tabs-nav.ui-widget-header li {
    border-color: #AFE1BB;
}

.newLegalActsTabView .ui-tabs-nav.ui-widget-header li.ui-state-hover {
    border-color: #AFE1BB;
    background-color: #CAE7D1;
    color: #333333;
}

/*To prevent hoover override*/
.newLegalActsTabView .ui-tabs-nav.ui-widget-header li.ui-state-active {
    background-color: #FFFFFF;
    border-style: solid;
    border-width: 1px;
    color: #333333;
    cursor: default;
}

.newLegalActsTabView.ui-tabs .ui-tabs-nav.ui-widget-header li.ui-state-active{
    border-color: #AFE1BB #AFE1BB transparent #AFE1BB;
}

.newLegalActsTabView.ui-tabs .ui-tabs-nav.ui-widget-header li.ui-state-active a{
    font-weight: bold;
}

.newLegalActsTabView .ui-tabs-nav.ui-widget-header li a{
    color: #333333;
}

.newLegalActsTabView.ui-tabs.ui-tabs-top {
    border-bottom: 0;
}

.newLegalActsParamsGrid {
    margin-left: auto;
    margin-right: auto;
}

.newLegalActsParamsGrid tr, .newLegalActsParamsGrid .ui-panelgrid-cell {
    border-width: 0;
    padding: 5px;
}

.newLegalActsParamsGrid .ui-panelgrid-cell{
    border-width: 0;
}

.newLegalActsParamsDateGrid{
    border: 1px solid #AFE1BB;
    border-radius: 5px;
    padding: 3px;
}

.newLegalActsParamsDateGrid .ui-radiobutton{
    margin: 0;
}

.newLegalActsParamsDateGrid .ui-selectoneradio label{
    margin-top: 0;
    margin-left: 2px;
}

.newLegalActsParamsDateGrid .newLegalActsParamsDateFields {
    padding-left: 15px;
}

.topToolbar {
    margin-top: 5px;
}

.mainContent {
    margin-top: 5px;
}

.searchMode.ui-widget{
    padding-left: 15px;
    font-size: 75%;
    font-variant: normal;
}

.searchMode .ui-radiobutton{
    margin: 0;
}

.searchMode label{
    margin-top: 0;
    margin-left: 2px;
}

.searchParameters {
    margin-top: 5px;
}

.controls {
    margin-top: 5px;
    margin-bottom: 5px;
}

.searchControls {
    margin-top: 5px;
}

.searchControls .ui-button {
    background-image: linear-gradient(to bottom, #ffffff, #77C088);
    font-weight: bold;
}

.searchControls .ui-button.ui-state-hover{
    background-color: #77C088;
}

.searchControls div.ui-button{
    margin-left: 2px;
}

.searchControlsTop {
    margin-bottom: 5px;
}

.searchControlsTop .ui-button {
    background-image: linear-gradient(to bottom, #ffffff, #77C088);
    font-weight: bold;
}

.searchControlsTop .ui-button.ui-state-hover{
    background-color: #77C088;
}

.searchControlsTop div.ui-button{
    margin-left: 2px;
}

.searchGrid tr, .searchGrid td {
    border: none !important;
}
.searchGrid>tbody.withBorders {
    border: 1px solid #AFE1BB;
}

.searchGrid>tbody>tr>td:first-child {
    text-align: left;
    vertical-align: top;
    padding-top: 8px;
}

.searchGrid>tbody>tr>td:first-child>img {
    float: right;
    margin-left: 4px;
}

.searchGrid .ui-datalist-content {
    border: none;
}

.searchGrid .ui-datalist-data {
    margin-top: 0;
    margin-bottom: 0;
}

.structureTree{
    width: 100%;
    border: none;
}

.legalActHeaderTable{
    margin-left: auto;
    margin-right: auto;
}

.legalActHeaderTable tr{
    border: none;
}

.legalActHeaderTable td{
    border: 1px solid #AFE1BB;
}

.chronologyList .ui-datalist-content{
    border: none;
}

.chronologyList ol{
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

.chronologyList li{
    margin-top: 5px;
}

.linkedDocumentList .ui-datalist-content{
    border: none;
}

.linkedDocumentList ol{
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

.linkedDocumentList li{
    margin-top: 5px;
}

.actualEditionLink {
    margin-left: 10px;
    color: blue !important;
}

.attachmentList .ui-datalist-content{
    border: none;
}

.attachmentList ol{
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

.attachmentList li{
    margin-top: 5px;
}

.dialogSelectedItemList{
    width: 440px;
    height: 600px;
    border: 1px #AFE1BB solid;
    border-radius: 4px;
    overflow: auto;
}

.eurovocList .ui-datalist-data {
    overflow:auto;
}

.titleDiv {
    border: 1px #AFE1BB solid;
    border-radius: 4px;
    margin-top: 20px;
    width: 100%;
}

.titleDiv table {
    margin-left: 10px;
    vertical-align: middle;
    font-size: 30px;
    font-family: Times, serif;
    color: #013C0E;
}

.titleDiv table img {
    margin-right: 10px;
}

.indexPanel{
    margin-top: 20px;
}

@media only screen and (min-width: 1300px) {
    .pageWrapper {
        width: 1290px;
        margin: 0 auto;
    }
}

@media only screen and (max-width: 1000px) {
    .pageWrapper {
        width: 990px;
        margin: 0 auto;
    }
}

.resultsTable {
}

.resultsTable thead .ui-state-default {
    cursor: auto !important;
}

.resultsTable thead>tr>th.ui-state-default {
    border-color: #AFE1BB;
}

.contentPanel {
    margin-top: 5px;
}

.linkList .ui-datalist-content{
    border: none;
}

.linkList ul{
    margin-top: 5px;
    margin-bottom: 5px;
    padding-left: 20px;
}

.linkList li{
    margin-top: 5px;
}

.ui-dialog .ui-dialog-title {
    margin-top: 0;
    margin-bottom: 0;
}

.ui-dialog.ui-widget-content .ui-dialog-titlebar {
    padding-top: 0;
}

.classifierTree {
    overflow: scroll;
}

.classifierTree ul.ui-tree-container {
    overflow: visible;
}

.languageBar {
    margin-top: 5px;
    margin-right: 3px;
}

.ui-fieldset-legend.ui-state-default {
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
    border-color: #AFE1BB;
}

.ui-layout-pane-west {
    border-color: #AFE1BB !important;
}

.searchParameters.ui-accordion{
    border: 1px #AFE1BB solid;
    border-radius: 4px;
}

.searchParameters .ui-accordion-header.ui-state-default{
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
    font-family: Times, serif;
    font-weight: normal;
    font-variant: small-caps;
    font-size: 18px;
    border: none;
    margin: 0;
}

.searchParameters .ui-accordion-header.ui-state-default a{
    text-decoration: none;
}

.packetConfirmationForm{
    margin-top: 10px;
}

.packetConfirmationForm input[type="submit"]{
    background-image: linear-gradient(to bottom, #ffffff, #CAE7D1);
    font-family: Tahoma, sans-serif;
    font-size: 100%;
    color: #333333;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
    border: 1px solid #AFE1BB;
    border-radius: 4px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
    display: inline-block;
    position: relative;
    padding: 5px 10px;
    margin-right: .1em;
    text-decoration: none !important;
    cursor: pointer;
    text-align: center;
    overflow: visible;
}

.footerDiv {
    margin-top: 5px;
    width: 100%;
    font-size: 10px;
    color: #013C0E;
    vertical-align: text-top;
}

.footerDiv img {
    height: 40px;
    float: right;
}

.noContentPanel {
    border: 0;
    font-size: 24px;
    text-align: center;
}

.noContentPanel .fileIconGroup {
    margin-top: 5px;
}

.errorDiv {
    border: 1px #eed3d7 solid;
    border-radius: 4px;
    width: 100%;
    height: 100px;
    font-size: 30px;
    font-family: Times, serif;
    color: #b94a48;
    background-color: #f2dede;
    line-height: 100px;
    text-align: center;
}
.errorDiv span{
    display: inline-block;
    vertical-align: middle;
    line-height: normal;
}

.dateColumn {
    white-space: nowrap;
}

.docPanel {
    overflow-y: hidden; /* sometimes a second scrollbar shows up */
}

/** primefaces layout without explicit height **/

.resizable-layout > .ui-layout-unit > .ui-layout-unit-content[style] {
    height: auto !important;
}
.resizable-layout {
    overflow: visible !important;
}

/** noborer **/

.noborder.ui-datalist > .ui-widget-content {
    border-width: 0;
}
.noborder.resizable-layout > .ui-layout-unit {
    border-width: 0;
}

/** vertical titles for legal act **/

.custom-layout-resizer {
    overflow: hidden;
}
/*.custom-layout-resize.ui-layout-resizer-closed {*/
    /*cursor: pointer;*/
/*}*/

.custom-layout-resizer-title {
    position: absolute;
    top: 30px;
    left: 0;

    font-size: 12px;
    color: #333333;
    font-weight: 900;

    white-space: nowrap;
    height: 23px;
    line-height: 23px;
    width: 500px;
}
.ui-layout-resizer-open .custom-layout-resizer-title {
    display: none;
}

.ie6 .custom-layout-resizer-title-bt, .ie7 .custom-layout-resizer-title-bt, .ie8 .custom-layout-resizer-title-bt,
.ie6 .custom-layout-resizer-title-tb, .ie7 .custom-layout-resizer-title-tb, .ie8 .custom-layout-resizer-title-tb
{
    margin-top: 0;
    margin-left: 0;
    background-color: #FFFFFF;  /* for ie6 */
}

.ie6 .custom-layout-resizer-title-bt, .ie7 .custom-layout-resizer-title-bt, .ie8 .custom-layout-resizer-title-bt {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=3);
}
.custom-layout-resizer-title-bt {
    -moz-transform    : rotate(270deg);
    -webkit-transform : rotate(270deg);
    -ms-transform     : rotate(270deg);
    -o-transform      : rotate(270deg);
    transform         : rotate(270deg);

    text-align: right;

    margin-top  :  238px;  /* ((width(500) / 2) - (height(23) / 2)) */
    margin-left : -238px;  /* -1 * margin-top */
}

.ie6 .custom-layout-resizer-title-tb, .ie7 .custom-layout-resizer-title-tb, .ie8 .custom-layout-resizer-title-tb {
    -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";
    filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=1);
}
.custom-layout-resizer-title-tb {
    -moz-transform    : rotate(90deg);
    -webkit-transform : rotate(90deg);
    -ms-transform     : rotate(90deg);
    -o-transform      : rotate(90deg);
    transform         : rotate(90deg);

    text-align: left;

    margin-top  :  238px; /* ((width(500) / 2) - (height(23) / 2)) */
    margin-left : -238px; /* -1 * margin-top */
}

.custom-layout-resizer-title-lr {
    text-align: center;
    left: 30px;
    width: auto;
    right: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    top: 0;
}

.inlineRadio td{
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
}

.invisibleTable thead {
    display: none;
}

.invisibleTable tbody, .invisibleTable tbody tr, .invisibleTable tbody td{
    border-width: 0;
}

.invisibleTable .ui-datatable-odd{
    background-color: #ffffff;
}

.resultsLayout .ui-layout-resizer-west-hover{
    background: url("/javax.faces.resource/layout/resizable-e.gif.html?ln=primefaces-extensions") repeat-y center;
}

.modifiers {
    /*margin-left: 5px;*/
    /*margin-top: 3px;*/
}

.ui-wizard-step-titles .ui-state-default {
    cursor: auto !important;
}

.navigatorPanel .ui-panel-content {
    padding-left: 0;
    padding-right: 0;
}

.hide-headers-and-borders {
    border-collapse: collapse;
    border-style: hidden;
}

.hide-headers-and-borders thead tr {
    display: none;
}

.hide-headers-and-borders tbody tr td {
    border-style: hidden;
}

.hide-headers-and-borders .ui-datatable-even, .hide-headers-and-borders .ui-datatable-odd {
    background-color: inherit;
}

/* Teises akto perziuroje teises akto pakeitimu accordion atsiranda scrollbar */
.eastContent .ui-accordion .ui-accordion-content {
    overflow: hidden;
}

/* Instituciju/Eurovoc medziuose leisti pavadinimams wrap'intis */
.ui-tree .ui-tree-container .ui-treenode-label {
    white-space: normal;
}

/* IE input žymės placeholder atributo reikšmę nuspalvina taip pat, kaip ir patį input. Taisome: */
input.ui-inputfield:-ms-input-placeholder {
    color: gray;
}

.legalActIFrameWrapper {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
}

.text-highlight {
	color: red;
}

a.link-blue {
	color: blue;
}