/*

    CONTROLS
    This file styles the controls for the web application
    
*/


/* CORE OVERRIDES */


select {
    border-radius: 5px;
    padding: 5px;
    cursor: pointer;
    outline: none;
}


ul.item-list {
    padding: 0;
}
ul.item-list li {
    list-style: none;
    padding: 5px 0;
}


/** GENERAL OVERRIDES **/

.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default {
    -moz-text-shadow: none;
    -webkit-text-shadow: none;
    -ms-text-shadow: none;
    text-shadow: none;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

.table-padding-small table td {
    padding: 5px;
}

.ui-widget-overlay {
    background: #000;
    opacity: 0.7;
}


/** BUTTONS **/

.ui-button .ui-button-text {
    padding: 0;
}

div.ui-button {
    *width: 140px; /* IE7- Hack*/
}

.button, 
.ui-button, 
.ui-widget-content .ui-button {
    text-decoration: none;
    /*padding: 6px 18px 8px;*/
    font-size: 13px !important;
    font-weight: normal;
    display: inline-block;
    cursor: pointer;
    border: none;
    outline: none;
    color: #FFFFFF;
    background: #010101; /* Old browsers */
    background: -moz-linear-gradient(top, #434343 0%, #010101 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#434343), color-stop(100%,#010101)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #434343 0%,#010101 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #434343 0%,#010101 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #434343 0%,#010101 100%); /* IE10+ */
    background: linear-gradient(to bottom, #434343 0%,#010101 100%); /* W3C */
    -moz-border-radius:16px;
    -ms-border-radius:16px;
    -o-border-radius:16px;
    -webkit-border-radius:16px;
    border-radius:16px;
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
}

.button:active,
.ui-button:active,
.ui-widget-content .ui-button:active {
    outline: none;
}

.button:hover, 
.ui-button.ui-state-hover,
.ui-widget-content .ui-button.ui-state-hover {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    -ms-box-shadow: none;
    box-shadow: none;
    background: #434343; /* Old browsers */
    background: -moz-linear-gradient(top, #010101 0%, #434343 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#010101), color-stop(100%,#434343)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #010101 0%,#434343 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #010101 0%,#434343 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #010101 0%,#434343 100%); /* IE10+ */
    background: linear-gradient(to bottom, #010101 0%,#434343 100%); /* W3C */
}

.button.light, 
.ui-button.light
.ui-widget-content .ui-button.light {
    color: #222222;
    background: #ECECEC; /* Old browsers */
    background: -moz-linear-gradient(top, #ECECEC 0%, #A9A9A9 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ECECEC), color-stop(100%,#A9A9A9)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #ECECEC 0%,#A9A9A9 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #ECECEC 0%,#A9A9A9 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #ECECEC 0%,#A9A9A9 100%); /* IE10+ */
    background: linear-gradient(to bottom, #ECECEC 0%,#A9A9A9 100%); /* W3C */
}

.button.light:hover, 
.ui-button.light.ui-state-hover,
.ui-widget-content .ui-button.light.ui-state-hover {
    background: #A9A9A9; /* Old browsers */
    background: -moz-linear-gradient(top, #A9A9A9 0%, #ECECEC 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#A9A9A9), color-stop(100%,#ECECEC)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #A9A9A9 0%,#ECECEC 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #A9A9A9 0%,#ECECEC 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #A9A9A9 0%,#ECECEC 100%); /* IE10+ */
    background: linear-gradient(to bottom, #A9A9A9 0%,#ECECEC 100%); /* W3C */
}

.button.active, 
.ui-button.ui-state-active,
.ui-widget-content .ui-button.ui-state-active {
    -moz-box-shadow: none;
    -webkit-box-shadow: none;
    box-shadow: none;
    background: #72B9CF; /* Old browsers */
    background: -moz-linear-gradient(top, #72B9CF 0%, #4C93A9 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#72B9CF), color-stop(100%,#4C93A9)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #72B9CF 0%,#4C93A9 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #72B9CF 0%,#4C93A9 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #72B9CF 0%,#4C93A9 100%); /* IE10+ */
    background: linear-gradient(to bottom, #72B9CF 0%,#4C93A9 100%); /* W3C */
}

.button.active:hover, 
.ui-button.ui-state-active.ui-state-hover,
.ui-widget-content .ui-button.ui-state-active.ui-state-hover {
    background: #4C93A9; /* Old browsers */
    background: -moz-linear-gradient(top, #4C93A9 0%, #72B9CF 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4C93A9), color-stop(100%,#72B9CF)); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(top, #4C93A9 0%,#72B9CF 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(top, #4C93A9 0%,#72B9CF 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(top, #4C93A9 0%,#72B9CF 100%); /* IE10+ */
    background: linear-gradient(to bottom, #4C93A9 0%,#72B9CF 100%); /* W3C */
}

.button.small, 
.ui-button.small,
.ui-widget-content .ui-button.small {
    -moz-border-radius:14px;
    -ms-border-radius:14px;
    -o-border-radius:14px;
    -webkit-border-radius:14px;
    border-radius:14px;
    padding: 6px 14px 5px;
    font-size: 12px !important;
}

.button.medium, 
.ui-button.medium,
.ui-widget-content .ui-button.medium {
    -moz-border-radius:16px;
    -ms-border-radius:16px;
    -o-border-radius:16px;
    -webkit-border-radius:16px;
    border-radius:16px;
    padding: 6px 18px 8px;
    font-size: 13px !important;
}

.button.big, 
.ui-button.big,
.ui-widget-content .ui-button.big {
    -moz-border-radius:24px;
    -ms-border-radius:24px;
    -o-border-radius:24px;
    -webkit-border-radius:24px;
    border-radius:24px;
    padding: 11px 24px;
    font-size: 17px !important;
}

.button-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.button-list li {
    float: left;
    margin-right: 5px;
    margin-bottom: 5px;
}


/** DATA TABLE **/

.ui-datatable .ui-state-default {
    background: none;
}

.ui-datatable .ui-paginator.ui-widget-header {
    background: none;
    padding: 5px 0;
    margin: 0;
    text-align: inherit;
    border: none;
    float: right;
}

.ui-datatable .ui-datatable-tablewrapper {
    clear: both;
}

.ui-datatable.overlaypanel-table tbody tr {
    cursor: pointer;
}

.ui-datatable.overlaypanel-table tbody tr:hover,
.ui-datatable.overlaypanel-table tbody tr.ui-state-hover {
    background: none;
    text-shadow: none;
    background-color: #C5E2E8;
    color: #4f4f4f;
}

.ui-datatable.overlaypanel-table tbody tr.ui-state-highlight {
    background: none;
    text-shadow: none;
    background-color: #C5E2E8;
    color: #4f4f4f;
}

.ui-datatable thead th, .ui-datatable tbody td, .ui-datatable tfoot td {
    border-width: 0;
    padding: 6px 10px;
}

.ui-datatable tbody.ui-widget-content, .ui-datatable tr.ui-widget-content {
    border: none;
}

.ui-datatable thead th.ui-state-default, .ui-datatable tfoot td.ui-state-default {
    text-align: left;
    color: #FFF;
    background-color: #000;
}

.ui-datatable.grey thead th.ui-state-default, .ui-datatable.grey tfoot td.ui-state-default {
    background-color: #5e5e5e;
}

.ui-datatable .ui-datatable-odd {
    background-color: #E6E6E6;
}

.ui-datatable .ui-paginator-page.ui-state-active, .ui-datatable .ui-paginator-page.ui-state-hover {
    background-color: #72B9CF;
    border-color: #4C93A9;
    color: #FFF;
}


/* Icon table */
.ui-datatable.icon-table table tr td {
    background-color: #ffffff;
    border-bottom: 1px #5e5e5e solid;
}


/** OVERLAY PANEL **/

.ui-overlaypanel {
    display: none;
    border: none;
    -moz-border-radius:24px;
    -ms-border-radius:24px;
    -o-border-radius:24px;
    -webkit-border-radius:24px;
    border-radius:24px;
    padding: 0;
}

.ui-overlaypanel h1, 
.ui-overlaypanel h2,
.ui-overlaypanel h3,
.ui-overlaypanel h4 {
    margin-top: 0px;
}

.ui-skydds-margin {
    margin-left: 40px !important;
    z-index: 1;
}

.ui-overlaypanel .ui-overlaypanel-content {
    padding: 0;
}

.ui-overlaypanel .inner-content {
    padding: 20px 25px;
}

.ui-overlaypanel .inner-content.top-padding {
    padding: 40px 25px 20px;
}

.ui-overlaypanel .arrow-up {
    position: absolute;
    top: -10px;
    left: 40px;
}

.ui-overlaypanel .ui-bottom-toolbar {
    background-color: #DDDDDD;
    padding: 15px 25px;
    border-bottom-left-radius: 24px;
    border-bottom-right-radius: 24px;
}

.ui-overlaypanel.ui-shadow {
    -moz-box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.5);
    box-shadow: 0px 0px 35px rgba(0, 0, 0, 0.5);
}

.ui-overlaypanel .ui-overlaypanel-close {
    top: 13px;
    right: 16px;
}

.ui-overlaypanel .ui-overlaypanel-close.ui-state-default {
    background: none;
    border: none;
}

.ui-overlaypanel .ui-overlaypanel-close .ui-icon {
    background: url('/img/primefaces/images/cross.png') top left no-repeat;
    width: 17px;
    height: 17px;
}


/** SELECT ONE RADIO **/

.ui-selectoneradio label {
    margin-top: 0;
    padding-left: 5px;
    padding-right: 15px;
}


/** SELECT MANY CHECKBOX **/

.ui-selectmanycheckbox label {
    margin-top: -1px;
    padding-left: 5px;
    padding-right: 15px;
}



/** TEXT and TEXTAREA **/

.ui-inputfield.ui-inputtext,
.ui-inputfield.ui-inputtextarea,
.ui-select {
    width: 234px;
    padding: 6px 12px;
    margin-top: 5px;
    margin-bottom: 10px;
    border: 1px #A8A8A8 solid;
    -moz-border-radius:16px;
    -ms-border-radius:16px;
    -o-border-radius:16px;
    -webkit-border-radius:16px;
    border-radius:16px;
    outline: none;
    -moz-box-shadow: inset 0 2px 10px 0 #CCCCCC;
    -webkit-box-shadow: inset 0 2px 10px 0 #CCCCCC;
    box-shadow: inset 0 2px 10px 0 #CCCCCC;
    color: #333333;
}


.ui-inputfield.ui-inputtext.short,
.ui-inputfield.ui-inputtextarea.short {
    width: 124px;
}

.ui-inputfield.ui-inputtextarea {
    width: 238px;
    padding: 8px 10px;
    line-height: 18px;
}


/** DIALOG **/

.ui-dialog.ui-corner-all.ui-widget-content.ui-shadow {
    -moz-border-radius:0;
    -ms-border-radius:0;
    -o-border-radius:0;
    -webkit-border-radius:0;
    border-radius:0;
    border: 0;
    -moz-box-shadow: 0px 0px 40px rgba(0,0,0,0.7);
    -webkit-box-shadow: 0px 0px 40px rgba(0,0,0,0.7);
    -ms-box-shadow: 0px 0px 40px rgba(0,0,0,0.7);
    box-shadow: 0px 0px 40px rgba(0,0,0,0.7);
}

.ui-dialog .ui-dialog-titlebar.ui-widget-header {
    padding: 10px 20px;
    -moz-text-shadow:none;
    -ms-text-shadow:none;
    -o-text-shadow:none;
    -webkit-text-shadow:none;
    text-shadow: none;
    color: #FFFFFF;
    background: #010101;
    background: -moz-linear-gradient(top, #434343 0%, #010101 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#434343), color-stop(100%,#010101));
    background: -webkit-linear-gradient(top, #434343 0%,#010101 100%);
    background: -o-linear-gradient(top, #434343 0%,#010101 100%);
    background: -ms-linear-gradient(top, #434343 0%,#010101 100%);
    background: linear-gradient(to bottom, #434343 0%,#010101 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#434343', endColorstr='#010101',GradientType=0 );
}

.ui-dialog .ui-dialog-titlebar.ui-widget-header .ui-dialog-title {
    font-size: 14px;
}

.ui-dialog .ui-dialog-content {
    padding: 15px 20px;
}

.ui-dialog .ui-dialog-titlebar.ui-widget-header .ui-dialog-titlebar-icon.ui-dialog-titlebar-close {
    position: relative;
    padding: 0;
    top: 3px;
    right: -5px;
}

.ui-dialog .ui-dialog-titlebar.ui-widget-header .ui-dialog-titlebar-icon.ui-dialog-titlebar-close .ui-icon {
    background: url('/img/primefaces/images/cross.png') top left no-repeat;
    width: 17px;
    height: 17px;
}

/* BREADCRUMB */

.ui-breadcrumb {
    background: none;
    border: none;
    padding-left: 0;
    padding-right: 0;
}


/* NEWS LIST */

ul.news-list {
    border-top: 1px solid #ccc;
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

ul.news-list .news-item {
    padding-top: 1em;
    border-bottom: 1px solid #ccc;
}

ul.news-list .news-item h3 {
    margin: 0;
    text-transform: uppercase;
}

ul.news-list .news-item h3 a {
    text-decoration: none;
    cursor: pointer;
}

ul.news-list .news-item .news-date {
    font-weight: bold;
    margin: 0;
    font-size: 11px;
}
