/* 
    Document   : frontend
    Created on : 2013-11-15, 13:46:21
    Author     : Grzegorz
    Description:
        Purpose of the stylesheet follows.
*/

.wphd-main img {
    border: 0;
    border-radius: 0px;
    box-shadow: 0 0px 0px rgba(0, 0, 0, 0);
}

.wphd-form .wphd-label {
    display: block;
    margin: 0;
    width: 28%;
    float: left;
    vertical-align: middle;
}

.wphd-form .wphd-field {
    width: 70%;
    float: right;
    vertical-align: middle;
}

.wphd-form .wphd-field input[type=text],
.wphd-form .wphd-field select {
    margin: 0;
    padding: 6px;
    vertical-align: middle;
    width: 95%;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

.wphd-form .wphd-field-line {
    clear: both;
    overflow: hidden;
    margin: 0.5em 0 0.5em 0;
    padding: 0.5em 0 0.5em 0;
    line-height: 2em;
    border: 0;
    zoom: 1;
}

.wphd-form .wphd-required {
    color: #9E1E1E;
}

.wphd-form .wphd-error {
    margin: 0.5em 0 0.5em 0;
    border: 1px solid #DE5400;
    border-left:0;
    border-right: 0;
    background-color: 	#FFE87C;
}

.wphd-form ul.wphd-errors li {
    color: #D54E21;
    margin: 0 0 0 20px;
    list-style-type: circle;
}

.wphd-form .wphd-fieldset-submit {
    margin: 1.5em 0 0 0;
}

.wphd-form .wphd-fieldset-submit input[type=submit] {
    font-size: 1.1em;
}

.wphd-main .wp-editor-container {
    border: 1px solid #e5e5e5;
}

a.wphd-button {
    background: #F2F2F2; 
    display: inline-block; 
    padding: 7px 13px 8px; 
    color: #444444 !important; 
    text-decoration: none;
    -moz-border-radius: 2px; 
    -webkit-border-radius: 2px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
    
    font-weight: bold;
    font-size: 13px;
    line-height: 1; 
    font-family: Arial;
    background-image: -moz-linear-gradient(50% 0%, #F5F5F5, #F1F1F1);
}

a.wphd-button:visited,
a.wphd-button:hover  {
    color: #444444 !important; 
    text-decoration: none;
}

.wphd-flash-error {
    padding: 5px 15px;
    margin: 20px 0px 10px 0px;
    background-color:#FFE87C;
    border:1px solid #DE5400;
    line-height: 2em;
    font-weight:bold;
}

.wphd-flash-info {
    padding: 5px 15px;
    margin: 20px 0px 10px 0px;
    border: 1px solid #E6DB55;
    background-color: #FFFBCC;
    line-height: 2em;
}


.wphd-form div .wphd-upload-actions {
    padding-left: 0px;
    margin-left: 0px;
    
    padding-top: 0px;
    margin-top: 0px;
}

.wphd-form div .wphd-upload-list {
    margin: 0;
    padding: 0;
}

.wphd-form div .wphd-upload-item {
    line-height: 16px;
    border: 1px solid #DEDEDE;
    border-radius: 3px 3px 3px 3px;
    box-shadow: 0 1px 0 #FFFFFF inset, 0 0 20px rgba(0, 0, 0, 0.01) inset, 0 1px 1px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin:4px 0 4px 0;
    
}

.wphd-upload-item img.wphd-file-type {
    float:left; 
    margin-top:0px;
    display:none;
}

.wphd-upload-item .wphd-item-actions {
    float:right;
    margin: 0;
    padding: 0;
}

.wphd-upload-item img {
    vertical-align: middle;
    cursor: pointer;
    box-shadow: 0;
    border-radius: 0;
    border: 0;
}

.wphd-upload-item b.wphd-file-name {
    font-weight: bold;
    padding-right: 5px;
}

.wphd-upload-item span.wphd-file-info {
    color: #666;
}

.wphd-field .wp-editor-wrap {
    margin: 0;
    padding: 0;
}

.wphd-main .wp-editor-wrap .wp-editor-container,
.wphd-field .wp-editor-wrap .wp-editor-container {
    margin: 0;
    padding: 0;
    background-color: white;
}

/*$pad: 20px;*/

.wphd-grid {

  margin: 0.25em 0 0.25em 0;
  

}

[class*='wphd-col-'] {
	float: left;
}

.wphd-col-7-8 {
    width: 87.5%;
}
.wphd-col-6-8 {
    width: 75%;
}
.wphd-col-4-5 {
    width: 80%;
}
.wphd-col-2-3 {
	width: 66.66%;
}
.wphd-col-1-1 {
    width: 100%;
}
.wphd-col-1-3 {
	width: 33.33%;
}
.wphd-col-1-2 {
	width: 50%;
}
.wphd-col-1-4 {
	width: 25%;
}
.wphd-col-1-5 {
	width: 20%;
}
.wphd-col-1-8 {
	width: 12.5%;
}
.wphd-col-empty {
    text-align: center;
    padding: 1em;
    font-size: 1.3em;
}

.wphd-col-right {
    text-align: right;
}

.wphd-module {
  padding: 0.5em;
}

.wphd-grid-head {
    border-bottom: 3px solid silver;
    overflow: hidden;
    clear: both;
    margin: 0.5em 0 0 0;
}

.wphd-grid-row {
    border-bottom: 1px solid whitesmoke;
    overflow:hidden;
    clear:both;
}

/* Opt-in outside padding */
.grid-pad {
  padding: 0.5em 0 0.5em 0.5em;

}

.wphd-grid-head .wphd-module {
   font-size: 0.8em;
   font-weight: bold;
   text-transform: uppercase
   
}

.wphd-bulb {
    -webkit-border-radius: 3px 3px 3px 3px;
    -moz-border-radius: 3px 3px 3px 3px;
    border-radius: 3px 3px 3px 3px;
    color: #fff;
    display: inline-block;
    font-size: 0.8em;
    font-weight: bold;
    line-height: 1.3em;
    margin: 0 2px 2px 0;
    padding: 1px 2px;
    text-shadow: 0 1px 0 rgba(0,0,0,0.2);
    background-color: #ffb119;
}

.wphd-bulb-plain {
    text-shadow: none;
    font-weight: normal;
    font-size: 1em;
}

.wphd-bulb-expired {
    background-color: #ffb119
}

.wphd-bulb-expiring {
    background-color: #ab8bd7
}

.wphd-bulb-active {
    background-color: #86c202;;
}

.wphd-main .wphd-thread-message-author {
    font-size: 1.2em;
    color:#666; 
    padding: 0 0 1em 0
}

.wphd-thread-message-body-text {
  
}

.wphd-thread-message-body-html p {
    margin: 0 0 1em 0;
    padding: 0;
}

.wphd-main .wphd-thread-message-attachments {
    padding: 0 0 0 0.5em; 
    background-color: #fcfcfc; 
    border: 1px solid whitesmoke
}

.wphd-main .wphd-thread-message-attachments small {
    text-transform: uppercase;
}

.wphd-main .wphd-thread-message-attachments ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

.wphd-main .wphd-thread-message-attachments ul > li {
    list-style-type: none;
    margin: 0;
    padding: 0;
    font-size: 0.9em;
}

.wphd-grid-filled {
     border: 1px solid whitesmoke; 
     border-bottom: 0px;
     background-color: #fcfcfc; 
     clear:both;
     overflow:hidden;
     margin: 1em 0 1em 0;
}




.wphd-ticket-avatar {
    text-align: center;
}

.wphd-ticket-avatar .avatar {
    border-radius: 50%;
}


.wphd-ticket-avatar .wphd-bulb {
    width:100%;
    padding: 0;
    text-align: center;
    text-transform: uppercase;
  
    line-height:1.6em;
}

.wphd-reply-placeholder input {
    cursor: pointer;
}

#wphd-paginate-links {
    margin: 20px 0;
    text-align: right;
}

#wphd-paginate-links a {
    border:1px solid;
    padding:1px 4px;
    text-decoration: none;
}

#wphd-paginate-links span {
    border:1px solid;
    padding:1px 4px;
    font-weight: bold;
}

#wphd-paginate-links a.next, #wphd-paginate_links a.prev {
    border: 0;
}

#wphd-paginate-links .dots {
    border: 1px solid transparent;
}

#wp-message-wrap {
    
}

.wphd-cf-edit-value-wrap {
    display:none;
}

/** EXPERIMENTAL */

.wphd-flash-error {
    padding: 5px 15px;
    margin: 20px 0px 10px 0px;
    background-color: #f04124;
    border: 1px solid #DE5400;
    line-height: 2em;
    font-style: italic;
    color: white;
    font-weight: normal;
}

.wphd-flash-error a {
    color: appworkspace !important;
    text-decoration: underline;
}

.wphd-form .wphd-error {
    border: 1px solid transparent;
}

img.wphd-image-middle,
.wphd-image-middle > img {
    vertical-align: middle;
}

.wphd-col-height-medium {
    min-height: 55px;
}

.wphd-col-height-medium .wphd-line-major {
    line-height: 25px;
    padding: 5px 0 5px 0;
}

.wphd-col-height-medium .wphd-line-minor {
    min-height:20px; 
    line-height:20px
}

.wphd-layout-threads {
    
}

.wphd-layout-threads .wphd-grid-row {
    padding: 0.75em 0;
    position: relative;
}

.wphd-layout-threads a.wphd-row-link {
    position: absolute;
    width: 100%;
    height: 100%;
    display: block;
    top: 0;
    left: 0;
    opacity: 0;
}

.wphd-layout-threads .wphd-row-link-title {
    font-size: 1.25em;
    line-height: 1.3em;
    color: #2b92ca
}

.wphd-layout-threads .wphd-image-middle > img {
    opacity: 0.9;
}

.wphd-layout-threads .wphd-grid-row:hover {
    background-color: whitesmoke;
}

.wphd-layout-threads .wphd-grid-row:hover .wphd-image-middle > img {
    opacity: 1;
}

.wphd-user-ball {
    display: block;
    position: absolute;
    width: 20px;
    height: 20px;
    right: 0px;
    bottom: 2px;
    background-color: bisque;
    border: 2px solid burlywood;
    border-radius: 100%;
    
    color: white;
    line-height: 20px;
    font-weight: bold;
    font-family: arial;
    font-size: 14px;
    cursor: default;
}

.wphd-ball {
    float: right;
    position: relative;
    margin-top: 12px;
    height: 32px;
    width: 32px; 
    font-size:22px; 
    line-height:32px; 
    font-weight:normal;
    border-radius: 100%;
    
    color: white;
    cursor: default;
}

.wphd-ball-agent {
    background-color: #ab8bd7;
    border: 2px solid white;
}

.wphd-ball-client {
    background-color: #ffb119;
    border: 2px solid white;
}

.wphd-ball-public {
    background-color: #9dc94a;
}

.wphd-ball-private {
    background-color: #DE5400;;
}

.wphd-ball-email {
    background-color: #2b92ca;;
}

.wphd-reply-list {
    border-top: 1px solid whitesmoke;
}

.wphd-dashicons-public:before { 
  font-family: "dashicons"; content: "\f103"; color: white; margin-right: 1px
}

.wphd-dashicons-private:before { 
  font-family: "dashicons"; content: "\f160"; color: white; margin-right: 1px
}

.wphd-dashicons-email:before { 
  font-family: "dashicons"; content: "\f465"; color: white; margin-right: 1px
}

.wphd-tickets-search {
    border: 1px solid whitesmoke; 
    background-color: #fcfcfc; 
    clear:both;
    overflow:hidden
}

.wphd-tickets-search input[type=submit] {
    width:100%;
    line-height: 1.6em; 
    font-size:1.3em; 
    margin:0;
}

.wphd-tickets-search input[type=text] {
    width:100%; 
    box-sizing: border-box; 
    display:block; 
    margin:0; 
    line-height: 1.6em; 
    font-size:1.3em;
}

@media all and (min-width: 320px) and (max-width: 760px) {
    .wphd-tickets-search .wphd-col-1-5,
    .wphd-tickets-search .wphd-col-4-5 {
        width: 100%;
    }
    
    .wphd-form .wphd-label {
        width: 100%;
        font-weight: bold;
    }
    
    .wphd-form .wphd-field {
        width: 100%;
        float: left;
    }
    
    .wphd-form input[name=wphd_submit] {
        width: 95%;
    }
    
    .wphd-hide-on-mobile {
        display: none;
    }
    
    .wphd-col-height-medium {
        min-height: 50px;
    }
    
    .wphd-layout-threads .wphd-col-name-avatar {
        width: 25%;
    }
    
    .wphd-layout-threads .wphd-col-name-type {
        display: none;
    }
    
    .wphd-col-height-medium .wphd-line-major {
        padding: 5px 0 0 0 ;
    }
    
    .wphd-col-1-8 .wphd-ticket-avatar {
        line-height: 50px;
    }
    
    .wphd-main .wphd-thread-message-author {
        font-size: 1em;
        font-weight: bold;
    }
    
    .wphd-reply-item .wphd-col-name-avatar {
        display: none;
    }
    
    .wphd-reply-item .wphd-col-name-message  {
        width: 100%;
    }
}