body.dragging, body.dragging * {
  cursor: move !important;
}
.dragged {
  position: absolute;
  opacity: 0.5;
  z-index: 2000;
}

.table thead > tr > th { 
    border-bottom: none; 
}

.pagination { 
    margin: 5px 0 35px; 
}

.content-margin {
    margin-top: 15px; 
}
.forgot-password-transparent-overlay {
    display: none;
    width: 100%;
    height: 100%;
    position: fixed;
    background-color: #fff;
    opacity: 0.6;
    left: 0;
    top: 0;
    z-index: 1;
}
/* === Login page (login.ctp) === */
#loginFormWrapper {
    width:250px;
    left:50%;
    top:20%;
    margin: 0 0 0 -125px;
    position:absolute;
}

#loginFormWrapper .flash {
    margin-top: 20px;
}

#loginSubmitButton {
    width: 250px;
    padding: 5px 0;
    margin-top: 20px;
    margin-bottom: 20px; 
}

#loginFormWrapper .help-block {
    margin-bottom: 5px;
}

/* Registration agreement */
#terms-container {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
}

.panel-title i {
    cursor: pointer;
}

#terms-background {
    display: none;
    height: 100%;
    width: 100%;
    position: fixed;
    background: #000;
    z-index: 1;
    opacity: 0.4;
}
/* Registration agreement end */
/* === Login page end === */

/* === Admin layout === */
/* Top margin to shift content down */

.table-inline-row {
    padding: 5px;
    height: 35px;
}
.custom-margin { 
    margin-top: 70px; 
}

#journal-chapters .floating-popover {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 32px;
}

.horizontal-separator {
    width: 100%;
    height: 2px;
    border-bottom: 1px solid #ccc;
    margin-bottom: 15px;
}

/* Margin after tinyMCE input */
.col-sm-12 .mce-tinymce { 
    margin: 10px 0 10px; 
}

/* Proper format for menu list (MenuHelper) */
.menu-list, .menu-list li {
    overflow:auto;
    clear:both;
}

/* Proper format for menu list (MenuHelper) */
.menu-list li {
    font-size: 14px;
    padding: 5px 0 0 0;
}

/* MenuHelper - margin for cross-arrow */
.handle { 
    margin-right: 10px; 
}

.btn-file {
    position: relative;
    overflow: hidden;
}

.label-checkboc-group {
    padding-top: 7px;
    margin: 0;
}

.btn-file input[type=file] {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 100%;
    min-height: 100%;
    font-size: 100px;
    text-align: right;
    filter: alpha(opacity=0);
    opacity: 0;
    background: red;
    cursor: inherit;
    display: block;
}

.custom-accordion {
    padding: 12px 8px;
    margin-bottom: 0;
}

.custom-panel-title {
    font-size: 15px;
}

/* Formu legend */
.custom-legend {
    font-size: 16px;
}

.sub-legend {
    font-size: 16px;
    border-bottom: none;
}
/* Form legend end */

/* Link "Pievienot rekvizītus" and delete button */
.custom-btn:link, .custom-btn:visited {
    display: inline-block;
    margin-bottom: 30px;
    font-weight: 500;
    text-decoration: none;
}

.custom-btn:hover, .custom-btn:active {
    text-decoration: none;
}

.btn-trash:link, .btn-trash:visited {
    color: #d43f3a;
}
/* Link "Pievienot rekvizītus" and delete button end */

/* Main navigation */
.custom-navbar-brand {
    padding: 3px 10px 6px 15px;
    opacity: 0.7;
    width: 240px;
    display: block;
}

.custom-navbar-brand:hover { 
    opacity: 1.0; 
}

.logo { 
    height: 100%; 
}
/* Main navigation end */

/* Sidebar */
.custom-list-group-item {
    padding: 5px 10px;
}

@media(min-width:768px) {
    .nav-sidebar {
        width: 270px;
        position: fixed;
        z-index: 1000;
        overflow-y: auto;
        bottom: 0;
        top: 70px;
    }

    .content-container {
        padding-left: 300px;
    }
}

/* Sidebar end */

/* Pictures controller */
/* index.ctp */
@media(max-width:768px) {
    .pictures-index .col-xs-4 {
        text-align: center;
    }

    .pictures-index select {
        width: auto;
    }

    .pictures-index .form-group {
        display: inline-block;
    }

    .custom-image-wrapper .image-button-wrapper {
        left: 50%;
        transform: translate(-50%);
    }
}

@media(max-width:560px) {
    .pictures-index .col-xxs-6 {
        width: 50%;
        text-align: center;
    }
}

.pictures-index .custom-image-wrapper p {
    max-height: 20px;
    overflow: hidden;
}

.pictures-index .custom-image-wrapper {
    position: relative;
}

.custom-image-wrapper .image-button-wrapper {
    position: absolute;
    top: 100px;
    width: 125px;
    padding-left: 5px;
    padding-right: 5px;
    display: none;
    bottom: 40px;
}
.custom-image-wrapper .image-button-wrapper-sponsors {
    position: absolute;
    width: 125px;
    padding-left: 5px;
    padding-right: 5px;
    display: none;
    bottom: 40px;
}

.custom-image-wrapper:hover img {
    opacity: 0.7;
}

.custom-image-wrapper:hover .image-button-wrapper {
    display: block;
}
.custom-image-wrapper:hover .image-button-wrapper-sponsors {
    display: block;
}

.pictures-index .row-fluid {
    margin-top: 20px;
}
/* index.ctp end */
/* Pictures controller end */

/* Sellables controller */
/* add_pack.ctp */
.last-checkbox, .last-fieldset {
    margin-bottom: 17px;
}

.pack-assortment .floating-popover {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 32px;
}

.panel-form .form-group {
    margin-left: 0;
}

.subscription-price-grid th, .subscription-price-sample-grid th {
    text-align: center;
}

.pack-loyalty tr th {
    text-align: center;
}

.pack-loyalty th:not(:first-child) {
    vertical-align: middle;
}

.subscription-price-grid, .subscription-price-sample-grid {
    margin-top: 50px;
    overflow: auto;
}

.subscription-price-grid table td, .subscription-price-sample-grid td {
    min-width: 64px;
}

.group-checkbox-last > .checkbox {
    padding-top: 17px;
    min-height: 0;
}

.group-checkbox-last > .help-block {
    margin-top: 0;
}

.alert-warning + .has-error {
    display: none;
}
/* add_pack.ctp end */

/* edit_assortment.ctp */
.assortment-submit-button {
    display: inline-block;
    position: relative;
}

.assortment-submit-button .floating-popover {
    width: 82px;
    height: 34px;
    top: 0;
    left: 0;
    position: absolute;
    display: none;
}

.panel-body .allow-section-select {
    border-top-right-radius: 0px !important;
    border-bottom-right-radius: 0px !important;
    -webkit-appearance: none;
}
/* edit_assortment.ctp end */

/* IformHelper.php */
.iform-category-list {
    list-style-type: none;
}

.iform-category-list > li {
    color: #428bca;
    overflow:auto;
    clear:both;
    font-size: 14px;
    padding-bottom: 4px;
    margin-top: 5px;
    border-bottom: 1px dashed #ddd;
}

.iform-category-list > li > .glyphicon-chevron-down {
    position: relative;
    top: 2px;
    cursor: pointer;
    color: #428bca;
}

.rotate-arrow-90 {
    transform: rotate(-90deg);
    transition: .3s;
}

.rotate-arrow-reset {
    transform: rotate(0deg);
    transition: .3s;
}

.glyphicon-chevron-down + .iform-category-link {
    margin-left: 5px;
}
/* IformHelper.php end */

/* ManualHelper.php */
#manual-category-list {
    list-style-type: none;
}
ul#manual-category-list > li > ul {
    /*display: none;*/
}

#manual-category-list > li {
    display: block;
    margin: 5px;
    padding: 5px;
    margin-right: 0px;
    padding-right: 0px;
    color: #0088cc;
    background: white;
    cursor: pointer;
}

#manual-category-list > li > .glyphicon-chevron-down {
    position: relative;
    top: 2px;
    cursor: pointer;
    color: #428bca;
}
#manual-category-list > li > .manual-move-point {
    position: relative;
    cursor: pointer;
    height: 35px;
    vertical-align: middle;
    text-align: center;
}

.rotate-arrow-90 {
    transform: rotate(-90deg);
    transition: .3s;
}

.rotate-arrow-reset {
    transform: rotate(0deg);
    transition: .3s;
}

.glyphicon-chevron-down + .manual-category-link {
    margin-left: 5px;
}
ul.manual-category-list li.placeholder {
  position: relative;
  /** More li styles **/
}
ul.manual-category-list li.placeholder:before {
      content: "";
      position: absolute;
      width: 0;
      height: 0;
      border: 5px solid transparent;
      border-top-color: red;
      top: -6px;
      margin-left: -5px;
      border-bottom: none;
  /** Define arrowhead **/
}
/* ManualHelper.php end */

/* edit_iform.ctp */
.attached-file {
    display: inline-block;
    padding: 7px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

.attached-file > .glyphicon-file {
    margin-right: 3px;
}

.remove-file-icon {
    color: #777;
    margin-left: 18px;
    position: relative;
    top: 2px;
    cursor: pointer;
}

.remove-file-icon:hover {
    color: #333;
}
/* edit_iform.ctp end */

/* edit_iseminar.ctp */
.column-panel-padding-fix {
    padding-left: 0;
    padding-right: 30px;
}

.seminar-report-image-button {
    position: absolute;
    text-align: right;
    top: 5px;
    width: 118px;
    display: none;
}

.seminar-report-immage:hover img {
    opacity: 0.7;
}

.seminar-report-immage:hover .seminar-report-image-button {
    display: block;
}

/* edit_iseminar.ctp end */

/* Sellables controller end */

/* Authors controller */
/* index.ctp */
#author-list-image {
	width: 50px; 
	height: 50px;
}
/* index.ctp end */

/* add_edit.ctp */
.author-picture {
	position: relative; 
	width: 125px; 
	padding-bottom: 5px;
	display: inline-block;
}

.author-picture .author-picture-button {
    position: absolute; 
    bottom: 100px;
    left: 80px;
    width: 50px;
    display: none;
}

.author-picture:hover img {
    opacity: 0.7;
}

.author-picture:hover .author-picture-button {
    display: block;
}
/* add_edit.ctp end */
/* Author controller end */

/* Banner controller */
/* banner_list.ctp */
.banner-index {
    overflow: auto;
}

.banner-tbody td {
    min-width: 90px;
}
/* banner_list.ctp end */
/* Banner controller end */

/* Crm controller start */
.crm-tabs {
    margin-bottom: 15px;   
}

.nav-tabs>li.active>a, 
    .nav-tabs>li.active>a:hover, 
        .nav-tabs>li.active>a:focus {
            cursor: pointer;
            cursor: hand;
}

.remove-panel-padding {
    padding-left: 0;
    padding-right: 0;
}

.div-overflow {
    overflow: auto;
}

.participant-template {
    display: none;
}

.remove-participant {
   color: red;
}
.dl-horizontal dt {
    text-align: left;
    font-weight: 400;
    width: 148px;
}
.e-environment dt {
    min-width: 170px;
}
.dl-horizontal dd {
    margin-left: 152px;
}
.custom-h1-crm {
    margin: 10px 0;
    font-size: 30px
}
.custom-h2-crm {
    margin: 10px 0;
    font-size: 25px;
}
.custom-h3-crm {
    margin: 10px 0;
    font-size: 20px;
}
.custom-hr-crm {
    width: 100%; 
    color: black; 
    height: 1px; 
    background-color:#999;
    margin: 5px 0;
}
.crm-button-block-vertical-margin {
    margin: 5px 0;
}
.crm-client-profile-inline {
    display: inline-block;
}
.crm-profile-communication-table {
    table-layout: fixed; 
    width: 100%;
}
.crm-profile-communication-table td {
    word-wrap: break-word;
}
.crm-profile-hidden-communication {
    display: none;
}
.crm-profile-hidden-old-subscriptions {
    display: none;
}
.crm-profile-hidden-subscriptions {
    display: none;
}
.crm-profile-cycle-item {
    display: none;
}
.crm-bill-registry-alert {
  display: none;
  top: 68px;
  right: 14px;
  z-index: 5;
  position: fixed;
  padding: 5px;
  width: 300px;
  text-align: center;
  line-height: 50px;
}

/* unprocessed_clients.ctp */
.unprocessed-clients > tbody > tr > td {
    vertical-align: middle;
}

.active-reminder  {
    background: #d9534f;
}

.table-hover tbody .active-reminder:hover td {
    background: #d43f3a;
}

.close-reminder:link, .close-reminder:visited{
    color: #fff;
    font-size: 18px;
}

.close-reminder:hover, .close-reminder:active {
    color: #fff;
}

.remove-label-bold label {
    font-weight: 400;
    display: block;
}
/* unprocessed_clients.ctp End */
/* Crm controller end */


/* === Admin layout end === */

/* Temporary style for purchase_pack.ctp */
.purchase-product-form {
    max-width: 900px;
}

.select-margin {
    margin-bottom: 15px !important;
}

.purchase-form-price-container {
    font-size: 22px;
    margin: 15px 0;
    color: #d44950;
}

.view-contract {
    padding-top: 7px;
    margin-bottom: 17px;
}

.checkbox-contract {
    text-align: right;
}

@media (max-width: 768px) {
    .checkbox-contract {
        text-align: left;
    }

    .view-contract {
        text-align: left;
    }
}

.templates {
    display: none;
}

.ajax-overlay {
    background-color: #000;
    opacity: 0.7;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 9999;
}

.ajax-loader {
    background: url('../img/ajax-loader.gif') no-repeat #fff;
    background-position: center;
    position: fixed;
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    z-index: 10000;
    margin-left: -50px;
    margin-top: -100px;
    border-radius: 5px;
}

.participant-item {
    border-bottom: 1px solid #ccc;
    margin: 15px 0;
}

.participant-remove {
    margin-bottom: 10px;
}

/* Temporary style for purchase_pack.ctp end */

/*
   Temporary style Plupload
--------------------------- */

.plupload_wrapper * {
    box-sizing: content-box;
}

.plupload_button {
    cursor: pointer;
    outline: none;
}

.plupload_wrapper {
    font: normal 11px Verdana,sans-serif;
    width: 100%;
    min-width: 520px;
    line-height: 12px;
}

.plupload_container {
    _height: 300px;
    min-height: 300px;
    position: relative;
}

.plupload_filelist_footer {border-width: 1px 0 0 0}
.plupload_file {border-width: 0 0 1px 0}
.plupload_container .plupload_header {border-width: 0 0 1px 0; position: relative;}

.plupload_delete .ui-icon, 
.plupload_done .ui-icon,
.plupload_failed .ui-icon {
    cursor:pointer; 
}

.plupload_header_content {
    height: 56px;
    padding: 0 160px 0 15px;
    position: relative;
}

.plupload_logo {
    width: 40px;
    height: 40px;
    background: url('../img/plupload.png') no-repeat 0 0;
    position: absolute;
    top: 8px;
    left: 8px;
}

.plupload_header_content_bw .plupload_logo {
    background-position: -40px 0;
}

.plupload_header_title {
    font: normal 18px sans-serif;
    line-height: 19px;
    padding: 6px 0 3px;
    text-align: left;
}

.plupload_header_text {
    font: normal 12px sans-serif;
    text-align: left;
}

.plupload_view_switch {
    position: absolute;
    right: 16px;
    bottom: 8px;
    margin: 0;
    display: none;
}

.plupload_view_switch .ui-button {
    margin-right: -0.31em;
}

.plupload_content {
    position: absolute;
    top: 86px;
    bottom: 44px;
    left: 0;
    right: 0;
    overflow-y: auto;
    width: 100%;
}

.plupload_filelist {
    border-collapse: collapse;
    border-left: none;
    border-right: none;
    margin: 0;
    padding: 0;
    width: 100%;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-select: none;
}

.plupload_filelist_content {
    padding: 0;
    margin: 0;
}

.plupload_cell {padding: 8px 6px;}

.plupload_file {
    list-style: none;
    display: block;
    position: relative;
    overflow: hidden;
    line-height: 12px;
}

.plupload_file_thumb {
    position: relative;
    background-image: none;
    background-color: #eee;
}

.plupload_file_loading .plupload_file_thumb {
    background: #eee url(../img/loading.gif) center no-repeat;
}

.plupload_file_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.plupload_filelist_header {
    border-top: none;
}

.plupload_filelist_footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.plupload_buttons { 
    position: relative;
}

/* list view */
.plupload_view_list .plupload_file {
    border-left: none;
    border-right: none;
    border-top: none;
    height: 29px;
    width: 100% !important;
    /* fix IE6 vertical white-space bug */
    _float: left;
    _clear: left;
}

.plupload_view_list div.plupload_file_size, 
.plupload_view_list div.plupload_file_status,
.plupload_view_list div.plupload_file_action {
    padding: 8px 6px;
    position: absolute;
    top: 0;
    right: 0;
}

.plupload_view_list div.plupload_file_name {
    margin-right: 156px;
    padding: 8px 6px;
    _width: 75%;
}

.plupload_view_list div.plupload_file_size {
    right: 28px;
}

.plupload_view_list div.plupload_file_status {
    right: 82px;
}

.plupload_view_list .plupload_file_rename {
    margin-left: -2px;
}

.plupload_view_list .plupload_file_size, 
.plupload_view_list .plupload_file_status,
.plupload_filelist_footer .plupload_file_size, 
.plupload_filelist_footer .plupload_file_status {
    text-align: right; 
    width: 52px;
}

.plupload_view_list .plupload_file_thumb {
    position: absolute;
    top: -999px;
}

.plupload_view_list .plupload_file_progress {
    display: none;
}


/* thumbs view */
.plupload_view_thumbs .plupload_content {
    top: 57px;
}

.plupload_view_thumbs .plupload_filelist_header {
    display: none;
}

.plupload_view_thumbs .plupload_file {
    padding: 6px;
    margin: 10px;
    border: 1px solid #fff;
    float: left;
}

.plupload_view_thumbs .plupload_file_thumb,
.plupload_view_thumbs .plupload_file_dummy {
    text-align: center;
    overflow: hidden;
}

.plupload_view_thumbs .plupload_file_dummy {
    font-size: 21px;
    font-weight: bold;
    text-transform: lowercase;
    overflow: hidden;
    border: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.plupload_view_thumbs div.plupload_file_action {
    position: absolute;
    top: 0;
    right: 0;
}

.plupload_view_thumbs div.plupload_file_name {
    padding: 0;
    font-weight: bold;
}

.plupload_view_thumbs .plupload_file_rename {
    padding: 1px 0;
    width: 100% !important;
}

.plupload_view_thumbs div.plupload_file_size {
    font-size: 0.8em;
    font-weight: normal;
}

.plupload_view_thumbs div.plupload_file_status {
    position: relative; 
    height: 3px;
    overflow: hidden;
    text-indent: -999px;
    margin-bottom: 3px;
}

.plupload_view_thumbs div.plupload_file_progress {
    border: none;
    height: 100%;
}

.plupload .ui-sortable-helper,
.plupload .ui-sortable .plupload_file {
    cursor:move;    
}

.plupload_file_action {width: 16px;}
.plupload_file_name {
    overflow: hidden;
    padding-left: 10px;
}

.plupload_file_rename {
    border: none;
    font: normal 11px Verdana, sans-serif;
    padding: 1px 2px;
    line-height: 11px;
    height: 11px;
}

.plupload_progress {width: 60px;}
.plupload_progress_container {padding: 1px;}


/* Floats */

.plupload_right {float: right;}
.plupload_left {float: left;}
.plupload_clear,.plupload_clearer {clear: both;}
.plupload_clearer, .plupload_progress_bar {
    display: block;
    font-size: 0;
    line-height: 0;
}
.plupload_clearer {height: 0;}

/* Misc */
.plupload_hidden {display: none !important;}

.plupload_droptext {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    text-align: center;
    vertical-align: middle;
    border: 0;
    line-height: 160px;
    display: none;
}

.plupload_dropbox .plupload_droptext {
    display: block;
}

.plupload_buttons, .plupload_upload_status {float: left}

.plupload_message {
    position: absolute;
    top: -1px;
    left: -1px; 
    height: 100%;
    width: 100%;
}

.plupload_message p {
    padding:0.7em;
    margin:0;
}

.plupload_message strong {
    font-weight: bold;  
}

plupload_message i {
    font-style: italic; 
}

.plupload_message p span.ui-icon {
    float: left;
    margin-right: 0.3em;    
}

.plupload_header_content .ui-state-error,
.plupload_header_content .ui-state-highlight {
    border:none;    
}

.plupload_message_close {
    position:absolute;
    top:5px;
    right:5px;
    cursor:pointer; 
}

.plupload .ui-sortable-placeholder {
    height:35px;
}
.multiple_file_uploader_ui {
    padding: 17px;
}
/*
   END Temporary style Plupload
--------------------------- */

/* Keywords add_edit_article*/
.keyword-add {
    cursor: pointer;
    padding-right: 10px;
}

.keyword-add:hover {
    text-decoration: underline;
}

.article-checkbox-input, .get-news-checkbox-input, .active-checkbox-input > div {
    margin-left: 30px;
    margin-top: -10px;
    margin-bottom: 0;
}

.fixed-buttons-div {
    width: 100%; 
}

.fixed-buttons-box {
    width: 300px;
    margin: auto;
}

.fixed-buttons-wrapper {
    position: fixed;
    bottom: 30px;
    background: rgba(221, 221, 221, 0.7);
    border-radius: 4px;
    width: 400px;
    padding: 10px;
    z-index: 999;
}
.crm-client-profile-cycle-title {
    cursor: pointer;
    text-decoration: underline;
}
.crm-client-profile-old-cycle-title {
    cursor: pointer;
    text-decoration: underline;
}
.discount-dates {
	display: none;
}

#keywords .modal-body {
    max-height: 500px;
    overflow-x: hidden;
}

#keywords .modal-body table {
    width: 100%;
}

#keywords .modal-body table td label {
    font-weight: normal;
}

#keywords .modal-body table td {
    text-align: left;
}

#keywords .modal-body .letter-table {
    margin-bottom: 10px;
}

#keywords .modal-body .letter-table .letter {
    width: 30px;
    text-align: center;
    cursor: pointer;
}

#keywords .modal-body .letter-table .letter.active, 
#keywords .modal-body .letter-table .letter:hover {
    text-decoration: underline;
}

.checkbox input[type=checkbox],
.radio input[type=radio] {
    margin-top: 2px;
}

iframe {
    border: 0;
}

.btn-group .checkbox {
    min-height: auto;
    padding: 0;
}
.btn-group .checkbox label {
    padding: 0;
}

.multiselect-container>li>a {
    padding: 5px;
}
.dropdown-menu>li>a {
    margin-left: 20px;
}

#product-wrap .btn-group {
    display: block;
}
