/**
 * Custom styles for the PHD Ticket listing View.
 */

/* Ticket Detail */
.ticket-detail-table button#edit-remedy,
.ticket-detail-table button#view-remedy,
.ticket-detail-table button#view-revisions,
.ticket-detail-table button#edit-status,
.ticket-detail-table button#edit-response {
    width: auto;
}

.ticket-detail-table a#edit-app {
    color: #9fcf6e;
    float: right;
}

.ticket-detail-table a#edit-app:hover {
    color: #7fa558;
    cursor: pointer;
    text-decoration: none;
}

.btn-spacer {
    margin-left: 10px;
}

.ticket-detail-table .field--name-field-comments {
    overflow-wrap: break-word;
    max-width: 1040px;
}

.ticket-detail-table .field--name-field-user-attachments,
.ticket-detail-table .field--name-field-notes,
.ticket-detail-table .field--name-field-rep-attachments,
.ticket-detail-table .field--name-field-assignee,
.ticket-detail-table .field--name-field-response-attachment {
    margin-top: 15px;
}

.ticket-detail-table .field--name-field-rep-attachments table {
    margin-bottom: 0;
}

.ticket-detail-table #edit-form-block .field--name-field-rep-attachments table {
    margin-bottom: 15px;
}

.ticket-detail-table .field--type-file .field--item {
    font-size: 16px;
}

.ticket-detail-table .field--name-field-response li {
    font-size: 20px;
}

.ticket-detail-table .field--name-field-response .js-comment {
    font-size: 14px;
}

.ticket-detail-table .field--name-field-response ol li:last-child .table {
    margin-bottom: 0;
}

.ticket-detail-table>.table {
    margin-bottom: 0;
}

#node-ticket-edit-form .select-wrapper,
#node-ticket-application-form .select-wrapper {
    display: block;
}

/* Generate Reply */
.path-comment article.ticket {
    display: none;
}

/* Edit */
.page-node-type-ticket #edit-form-block {
    overflow: hidden;
}

.page-node-type-ticket form.node-form .field--name-langcode,
.page-node-type-ticket form.node-form .field--name-title,
.page-node-type-ticket .form-type-vertical-tabs {
    display: none;
}

.page-node-type-ticket .field--name-field-status select,
.page-node-type-ticket .field--name-field-assignee select {
    width: auto;
}

.page-node-type-ticket .form-item-field-assignee .select-wrapper:after,
.page-node-type-ticket.has-glyphicons .form-item-field-assignee .select-wrapper:after {
    content: none;
}

.modal-title {
    float: left;
    font-weight: bold;
    font-weight: 16px;
}

.page-node-type-ticket #node-ticket-application-form #edit-field-application-wrapper .control-label {
    display: inline-block;
}

#node-ticket-application-form option[value="_none"] {
    display: none;
}

#node-ticket-application-form .field--name-field-company,
.has-company #node-ticket-application-form .field--name-field-company[required] {
    display: none;
}

#node-ticket-application-form .field--name-field-company[required] {
    display: block;
}

#node-ticket-application-form .select-wrapper {
    height: auto;
}

#block-custom-ticket-fields .form-group {
    margin-bottom: 0;
}

#block-custom-ticket-fields .custom-field-row {
    margin-top: 15px;
}

/* Revisions Page */
table#edit-node-revisions-table .radio input {
    margin-left: 5px;
}

table.diff thead a {
    color: #ffffff;
}

.diff-controls {
    display: none;
}

.diff-responsive-table-wrapper {
    margin-top: 15px;
}

.diff-revisions thead th:last-child, .diff-revisions tbody td:last-child {
    display: none;
}

.revision-notice {
    font-weight: bold;
}

.revision-notice a {
    color: #337ab7;
}

.revision-notice a:focus, .revision-notice a:hover {
    color: #23527c;
}

.revision-notice.page-bottom {
    margin-top: 20px;
}

/* Ticket Delete */
#node-ticket-delete-form #edit-actions {
    margin-top: 15px;
}

