/* ==========================================
   Entity List Styling
========================================== */

.entitylist.entity-grid .view-grid,
.entitylist.entity-grid .view-grid th,
.entitylist.entity-grid .view-grid td {
    font-family: 'Times New Roman', Times, serif !important;
}

/* Hide Action Menu Column */
.entitylist .view-grid th[aria-label="action menu"],
.entitylist .view-grid td[aria-label="action menu"],
.entity-grid .view-grid th[aria-label="action menu"],
.entity-grid .view-grid td[aria-label="action menu"] {
    display: none !important;
}

/* Hide Action Dropdown */
.entitylist .dropdown.action,
.entity-grid .dropdown.action {
    display: none !important;
}

/* Prevent Text Overflow in Lists */
.entitylist table td,
.entity-grid table td {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.entitylist table,
.entity-grid table {
    table-layout: fixed;
    width: 100%;
}

/* ==========================================
   Search Page
========================================== */

.list-group-item .list-group-item-heading,
.result-title {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.4;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.list-group-item {
    padding: 12px 15px;
}

/* ==========================================
   Form Container
========================================== */

.crmEntityFormView,
.view-grid .table-responsive .has-pagination {
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 28px;
    background-color: #ffffff;
}

.jquery-bootstrap-pagination,
.idea-attachments {
    padding: 28px;
}

/* Remove Portal Readonly Dash */
.text-muted {
    display: none !important;
}

/* ==========================================
   READONLY FIELDS
   (Idea, Description, Benefit, Vote Counts)
========================================== */

input.form-control[readonly],
input.form-control.readonly,
textarea.form-control[readonly],
textarea.form-control.readonly,
.form-control-cell .form-control.readonly,
td.lookup.form-control-cell .form-control {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Scrollable readonly multiline text */
textarea.form-control[readonly],
textarea.form-control.readonly {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;

    overflow-y: auto !important;
    resize: none !important;
}

/* ==========================================
   EDITABLE FIELDS ONLY
   (Vote, Comments)
========================================== */

input.form-control:not([readonly]):not(.readonly),
select.form-control:not([readonly]):not(.readonly),
textarea.form-control:not([readonly]):not(.readonly) {
    background: #fff !important;
    border: 1px solid #ced4da !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Comments box */
textarea.form-control:not(.readonly) {
    min-height: 250px;
    resize: vertical;
}

/* Vote dropdown */
select.form-control {
    height: 40px;
}

/* ==========================================
   Buttons
========================================== */

#btnCancel:hover {
    background: #e61e28;
    border: none;
}