:root {
    --entity-list-header-height: 22px;
    --entity-list-search-height: 35px;
    --entity-list-padding: 10px;
}

.entity-list-widget {
    display: grid;
    grid-template-rows: 40px 1fr;
    min-height: 0;
}

.entity-list-view {
    display: grid;
    grid-template-rows: 20px 27px 1fr;
    min-height: 0;
    color: var(--whispr-white);
}

.entity-list-container {
    color: var(--whispr-white);
}

.entity-list {
    box-sizing: border-box;
    min-height: 0;
}

.entity-list-view .search-container {
}

.entity-list-view .search-container input {
    width: calc(100% - 2em - 2px);
}

.entity-list-view .search-container i {
    color: var(--whispr-dark-grey);
}

.entity-list-headers {
    overflow-y: scroll;
    overflow-x: hidden;
    box-sizing: border-box;
}

.entity-list-header {
    font-size: 14px;
    display: inline-block;
    text-align: left;
    background: var(--whispr-dark-blue);
    border-right: 1px solid var(--whispr-dark-grey);
    box-sizing: border-box;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 5px;
    white-space: nowrap;
}

.entity-list-item {
    color: var(--whispr-light-grey);
    font-size: 12px;
    line-height: 20px;
    cursor: pointer;
    box-sizing: border-box;
}

.entity-list-item .searchable-text span {
    white-space: nowrap;
}

.entity-list-item:hover {
    background: var(--whispr-darker-grey);
}

.entity-list-item.selected {
    color: var(--whispr-white) !important;
    background: var(--whispr-dark-grey);
    /* transition: all 0.2s; */
}

.entity-list-item.selected:hover {
    background: #0e437c;
    /* transition: all 0.2s; */
}

.entity-list-item.deleted {
    background: var(--whispr-dark-red) !important;
}

.entity-list-item.completed {
    background: var(--whispr-green) !important;
}

.entity-list-item-cell {
    display: inline-block;
    box-sizing: border-box;
    overflow: hidden;
    padding-left: 5px;
    vertical-align: middle;
}

.entity-selector-popup {
    position: relative;
    display: grid;
    grid-template-rows: 40px auto 30px;
    border: 1px solid;
    border-radius: 5px;
    background: var(--whispr-darker-grey);
    width: 50vw;
    height: 33vh;
    min-height: 0;
    overflow: auto;
}

.entity-editor {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    color: var(--whispr-white);
    box-sizing: border-box;
    overflow: scroll;
}

.entity-tags {
    box-sizing: border-box;
    border-bottom: 1px dashed var(--whispr-light-grey);
    padding: 10px;
}

.property-label.dirty {
    text-decoration: underline;
    font-weight: bold;
    color: var(--whispr-corporate-blue);
}

.tag-option-container {
    display: flex;
}

.tag-option-button {
    padding: 10px;
    border: 1px solid #404040;
    background: #606060;
    color: var(--whispr-light-grey);
    cursor: pointer;
}

.tag-option-selected {
    color: var(--whispr-white);
    background: var(--whispr-dark-red);
}

.tag-option-button:hover {
    color: var(--whispr-dark-grey);
    background-color: var(--whispr-white);
}

.entity-section-container {
    display: flex;
    gap: 0px;
    flex-wrap: wrap;
}

.entity-section {
    border: 1px solid var(--whispr-dark-grey);
    background: var(--whispr-white);
    color: var(--whispr-black);
    font-size: 12px;
    margin: 12px;
    resize: both;
    overflow: hidden;
    min-width: 240px;
}

.entity-section .property-table {
    width: 100%;
    display: block;
    flex-direction: column;
}

.entity-section .property-table .property-container {
    display: block;
    margin-bottom: 10px;
}

.entity-section .property-table .property-label {
    color: var(--whispr-black);
    display: block;
    font-size: 12px;
    font-weight: bold;
}

.entity-section .property-table .property-value {
    display: block;
}

.entity-section.border-less {
    border: 0;
    resize: none;
    margin: 0px;
}

.entity-section input,
.entity-section select,
.entity-section textarea,
.entity-section .property-table input[type="text"],
.entity-section .property-table input[type="email"],
.entity-section .property-table input[type="url"],
.entity-section .property-table input[type="datetime-local"],
.entity-section .property-table input[type="password"],
.entity-section .property-table input[type="number"],
.entity-section .property-table input[type="date"] {
    background: #efefef;
    border: 0;
    color: var(--whispr-black);
    box-shadow: none;
    font-size: 12px;
    padding: 5px;
    text-shadow: none;
}


.entity-section .entity-section-header {
    font-size: 14px;
    font-weight: bold;
    padding: 10px;
    background: var(--whispr-light-grey);
    color: var(--whispr-black);
    text-align: center;
    position: relative;
    text-transform: uppercase;
}

.entity-section .entity-section-header .button {
    box-sizing: border-box;
    top: 0px;
    left: 0px;
    position: absolute;
    background: var(--whispr-green);
    border: 0;
}

.entity-section .entity-section-body {
    box-sizing: border-box;
    padding: 10px;
    overflow-y: auto;
    overflow-x: hidden;
    height: 100%;
}

.entity-selector {
    background: #808080;
    padding: 5px;
    box-sizing: border-box;
}

.entity-section .entity-selector {
    background: #efefef;
    padding: 5px;
    box-sizing: border-box;
}

.entity-editor a:link {
    color: blue;
}

.entity-editor a:visited {
    color: blue;
}

.create-entity-form.message-box .message-box-body {
    background-color: var(--whispr-white);
}

.create-entity-form.message-box .entity-section {
    margin: 0;
}
