/**
 * This file is part of the TYPO3 CMS project.
 *
 * It is free software; you can redistribute it and/or modify it under
 * the terms of the GNU General Public License, either version 2
 * of the License, or any later version.
 *
 * For the full copyright and license information, please read the
 * LICENSE.txt file that was distributed with this source code.
 *
 * The TYPO3 project - inspiring people to share!
 */


/*
 *
 * Global CSS styles for frontend and backend view
 *
 */


/* -- import boostrap basics also to frontend -------------------------------------------- */

@import "bootstrap.min.css";
@import "bootstrap-datetimepicker.min.css";

/* -- redesigning tabs to sticky nav ----------------------------------------------------- */

#content .tx-dpf-tab-container {
    position: absolute;
    top: -53px;
    z-index: 3000;
}

#content .tx-dpf-tab-container.sticky {
    position: fixed;
    right: 0;
    left: 0;
    z-index: 3000;
}

#content .tx-dpf-tabs {
    position: relative;
    background: #eee;
    background: rgba(255, 255, 255, 0.9);
    width: 580px;
    border-radius: 0 15px;
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.25);
    padding: 12px;
}

#content .tx-dpf-tab-container.sticky .tx-dpf-tabs {
    top: 63px;
    left: 101px;
    margin: 0 auto;
}

#content .tx-dpf-tabs li {
    border: 0 none;
    padding: 0;
}

#content .tx-dpf-tabs li a {
    padding: 5px 8px;
    border: 0 none;
    border-radius: 4px;
}

#content .tx-dpf-tabs li a.current {
    background: #eee;
    border: 0 none;
}

#content form .tab-content {
    padding-top: 1px;
}

/* -- basic setup ------------------------------------------------------------------------ */

.tx-dpf {
    position: relative;
}

.tx-dpf h2 {
    display: none;
}

.tx-dpf .css-panes {
    border-bottom: 1px solid #e5e5e5;
    min-height: 200px;
}

.tx-dpf-tabs a.current, .tx-dpf-tabs a.current:focus {
    color: #555;
    cursor: default;
    background-color: #fff;
    border: 1px solid #ddd;
    border-bottom-color: transparent;
    font-weight: 700;
}


.form-group .ui-autocomplete-loading {
    background: white url("../images/ui-anim_basic_16x16.gif") right center no-repeat;
}

.gnd-autocomplete {
    background-color: white;
}

.gnd-autocomplete:hover {
    background-color: #ebebeb;
}

.gnd-type {
    font-size: 11px;
}

/* -- form setup ------------------------------------------------------------------------- */

.tx-dpf .form-container {
    position: relative;
}

.tx-dpf fieldset {
    margin: 50px 0;
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 5px;
}

.tx-dpf fieldset legend {
    font-size: 14px;
    font-weight: 700;
    color: #666;
    margin-bottom: 20px;
}

.tx-dpf fieldset .group-info-text {
    margin: 0 0 10px 0;
}

.tx-dpf .form-group {
    position: relative;
    display: table;
    background: #eee;
}

.tx-dpf .fe-form-group {
    position: relative;
    display: inline-block;
}

.tx-dpf .form-group label, .tx-dpf .form-group .form-control {
    display: table-cell;
}

.tx-dpf .form-group label {
    width: 1%;
    background: #eee;
    border: 1px solid #ccc;
    border-right-width: 0;
    border-radius: 4px 0 0 4px;
    padding: 0 10px;
    color: #666;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1;
}

.tx-dpf .form-group .form-control.has-select {
    border-color: #eee #eee #eee #ccc;
    box-shadow: none;
}

.tx-dpf .form-group .form-control select {
    width: 100%;
    height: 100%;
    padding: 0 6px;
    border: none;
}

.tx-dpf .form-container .form-group:first-child .form-control.has-button,
.tx-dpf .form-container .form-group:first-child .form-control.has-button select {
   width: calc(100% - 32px);
}

.tx-dpf .form-group .form-control.has-button,
.tx-dpf .form-group .form-control.has-button select {
   width: calc(100% - 62px);
}

.tx-dpf .form-group .form-control {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0;
    border-radius: 0 4px 4px 0;
}
.tx-dpf .form-group .input-field {
    padding: 0 6px;
}

.tx-dpf .form-group button.rem_field, .tx-dpf .form-container button.add_field, .tx-dpf .form-container button.fill_out_service_urn {
    position: absolute;
    bottom: 4px;
    right: 33px;
    width: 26px;
    height: 26px;
    padding: 0;
    z-index: 10;
    color: #666;
}

.tx-dpf .form-container button.fill_out_service_urn {
    right: 4px;
}

.tx-dpf .form-container button.add_field {
    right: 4px;
}

.hasDatepicker button.add_field {
    right: 44px !important;
}

.hasDatepicker button.rem_field {
    right: 73px !important;
}

.tx-dpf .form-container button:active {
    bottom: 3px;
    top: auto;
}

.tx-dpf button.add_group, .tx-dpf button.add_file_group {
    position: absolute;
    margin: -60px 0 0 15px;
    right: 15px;
}

.tx-dpf button.rem_group {
    color: #c00;
    line-height: 1;
    width: 24px;
    height: 24px;
    padding: 3px 4px;
    margin-bottom: 6px;
}

.tx-dpf input[type="file"] {
    border: 0 none;
    margin-bottom: 15px;
    height: 36px;
    display: inline-block;
}

.tx-dpf textarea {
    resize: vertical;
    min-height: 220px;
}

.tx-dpf .countwrapper {
  border: solid #ccc;
  border-width: 0px 1px 1px 0px;
  text-align: right;
  padding: 5px 8px;
  margin-top: -7px;
}

.tx-dpf .countwrapper .count {
  color: green;
}

.tx-dpf .countwrapper .count.limit {
  color: darkorange;
  font-weight: bold;
}

.tx-dpf .countwrapper .count.limitbreak {
  color: red;
  font-weight: bold;
}

.tx-dpf .fs_file_group .form-control-static {
    margin-bottom: 15px;
}

.tx-dpf .fs_file_group .form-control-static .file_link {
    margin-right: 10px;
}

.prev-next-buttons {
    padding-bottom: 100px;
}

.prev-next-buttons .btn {
    float: right;
    margin-left: 10px;
}

.form-submit {
    padding-top: 20px;
}

.form-submit .btn-lg {
    margin: -9px 0 0 5px;
    padding: 8px 12px;
    font-size: 12px;
    float: right;
}

#form_delete {
    float: left;
}

#form_cancel {
    float: right;
}

.tx-dpf button .glyphicon {
    top: 0;
    left: 1px;
}

.tx-dpf button .glyphicon-remove {
    top: 1.5px;
    left: 0;
}

.tx-dpf ol li {
    list-style: none;
}

.btn-edit-discard {
    margin-left: 10px;
}

.tx-dpf .dropdown-options .dropdown-menu {
    height: auto;
    max-height: 200px;
    overflow-x: hidden;
}

.tx-dpf .dropdown-options .dropdown-options-toggle {
    margin-bottom: 0;
    display: table;
}

ul[id^='ui-id-'].ui-autocomplete  {
    max-height: 200px;
    overflow-y: auto;
    /* prevent horizontal scrollbar */
    overflow-x: hidden;
}

ul[id^='ui-id-'] {
    background-color: #ffffff;
    color: #555555;
    border-radius: 0 0 4px 4px;
    border: 1px;
    border-color: #aaaaaa;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(170, 170, 170, 0.6);
    box-shadow: inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(170,170,170,0.6);
}

ul[id^='ui-id-'] .ui-menu-item .ui-menu-item-wrapper.ui-state-active {
    background-color: #5A95F6;
    color: #ffffff;
}

/* -- error handling -------------------------------------------------------------------- */

select.invalid-error, textarea.invalid-error, input.invalid-error, select.mandatory-error, textarea.mandatory-error, input.mandatory-error {
    border: 1px solid #c00!important;
}

li a.invalid-error, li a.mandatory-error {
    color: #c00!important;
}

li a.invalid-error:after, li a.mandatory-error:after {
    content: "\e104";
    font-family: 'Glyphicons Halflings';
    margin-left: 3px;
    line-height: 1;
}

.qucosa-search-form input[type="text"] {
    width: 450px !important;
}

dd.author {
    float: left;
}

dd.date {
    float: right;
}

.f3-widget-paginator {
    display: inline-block;
    width: 100%;
}

.f3-widget-paginator li {
    float: left;
}

.f3-widget-paginator li.next {
    float: right;
}

.f3-widget-paginator li.previous {
    padding-right: 10px;
}

ul.error-files-backbutton {
    margin: 10px 0 10px 0 !important;
}

ul.error-files-backbutton li {
    list-style: disc;
    margin-left: 13px;
}


.typo3-messages {
    padding: 0;
}

.typo3-messages li {
    list-style: none;
}

.tx-dpf form .alert-danger {
    position: relative;
    top: 60px;
}

    /* -- extended search form--------------------------------------------------- */

.tx-dpf div.searchExtForm div.container {
  width: 100%;
}

@media only screen and (min-width: 23em) {
  .tx-dpf div.searchExtForm div.container .col-md-6 {
    padding: 0px;
  }
}
@media only screen and (min-width: 60em) {
  .tx-dpf div.searchExtForm div.container .col-md-6:nth-child(2) {
    padding: 0px 0px 0px 3px;
  }
}
/* EOF */
