button.warn {
    background: linear-gradient(to bottom, #D93636, #BF3030);
}
button.small {
    font-size: 11px;
    font-weight: bold;
    padding: 0 2px;
    line-height: 20px;
    height: 21px;
    vertical-align: middle;
}

a.cbutton {
    display: inline-block;
    padding: 4px 8px;
    -moz-box-sizing: border-box;
    border-radius: 5px 5px 5px 5px;
    color: #fff;
    border: 0;
    font-weight: bold;
    background: linear-gradient(to bottom, #33A6CC, #309BBF);
    cursor: pointer;
}
a.cbutton.warn {
    background: linear-gradient(to bottom, #D93636, #BF3030);
}
a.cbutton.high1 {
    background: linear-gradient(to bottom, #12C9AD, #10BC9D);
}
a.cbutton:hover {
    background: linear-gradient(to bottom, #555555, #444444);
}
.cbutton.placeholder {
    display: inline-block;
    border-radius: 5px 5px 5px 5px;
    padding: 4px 8px;
    font-weight: bold;
    color: #e2e2e2;
    background: #b6b6b6;
}
.grp-row.grp-cells.submit-right .grp-cell { float: right; }

#result_list a.cbutton { margin: 0 5px 0 0; }
#result_list grp-table:last-child { margin: 0; }
a.cbutton.high1 {
    top: 1px;
    position: relative;
}
table td, table th {
    padding: 5px 30px 5px 10px;
}

table tbody tr.grp-row td:last-child, table tbody tr.grp-row th:last-child {
    vertical-align: middle;
}

.service-description * { white-space: normal; font-size: 90%; }
.service-description p { margin: 0 0 5px !important; }
.service-description p:last-child { margin: 0 !important; }
.service-description ul, .service-description li { list-style: disc; }
.service-description ul { margin-left: 30px; }
.saveinfo { width: auto; margin: auto; }

header#grp-header #grp-navigation {
    background: linear-gradient(to bottom, #444, #333);
}

#grp-user-tools>li, header#grp-header #grp-navigation ul#grp-user-tools>li {
    border-left: 1px solid #404040;
    border-right: 1px solid #303030;
}

header#grp-header #grp-navigation ul#grp-user-tools {
    border-left: 1px solid #303030;
}

#grp-header { font-size: 11px; }

#grp-header li.search {
    width: 310px;
}
#grp-header li.search span {
    display: block;
    float: left;
    margin-right: 20px;
}
#grp-header li.search input {
    float: left;
    width: 185px;
    height: 25px;
}

#grp-header #grp-admin-title .logo {
    display: block;
    float: left;
    width: 58px;
    height: 20px;
    margin-right: 5px;
    margin-left: 0;
    background: url(../img/boris-logo-30x115-white.png);
}

li.ui-state-hover, li.ui-tabs-active {
    color: #444 !important;
    border: 1px solid #c7c7c7 !important;
    background: #e0e0e0 !important;
}
li.ui-state-hover>a {
    color: #444 !important;
}
.grp-column {
    float: left;
}

fieldset.grp-module .grp-row label {
    white-space: normal;
}

ul.ui-tabs-nav li.ui-state-focus a { outline: 0;   }

/* GRAPPELLI OVERRIDES */
body { padding: 66px 20px 0; margin-bottom: 80px; }
#grp-content { padding: 0; }
h1, .h1 { padding: 26px 0 10px; }
small { font-size: smaller; }

#grp-content-container, fieldset.grp-module .grp-cell { float:left; }
ul.grp-messagelist { top: 5px; }

#grp-header { height: 40px; line-height: 24px; top: 0; left: 0; }

header#grp-header #grp-navigation ul { z-index: 1010; }
header#grp-header #grp-navigation ul#grp-user-tools { height: 40px; }
header#grp-header #grp-navigation ul#grp-user-tools a { height: 19px; }
header#grp-header #grp-navigation ul#grp-user-tools li.search { padding: 8px 10px; }
header#grp-header #grp-navigation h1#grp-admin-title {
    line-height: inherit;
    font-size: 11px;
    color: #eee;
    padding: 8px 0;
}

li.user-options-container.open ul.user-options {
    background: #333;
}

header#grp-header #grp-navigation ul li.grp-collapse.grp-open>ul {
    border-top: 1px solid #292929;
}

header#grp-header #grp-navigation ul li.grp-collapse.grp-open>ul li {
    background: #333;
    border-top: 1px solid #404040;
    border-bottom: 1px solid #292929;
    -webkit-border-bottom-left-radius: 5px;
    -webkit-border-bottom-right-radius: 5px;
}

header#grp-header #grp-navigation .grp-collapse .grp-open .grp-collapse-handler a {
    color: #eee !important;
}

#grp-content { top: 0; }
@media screen and (max-width: 1395px) {
    #grp-content {
        top: 30px;
    }
}

#changelist .grp-changelist-results grp-table grp-td, #changelist .grp-changelist-results grp-table grp-th { padding: 5px 30px 5px 10px; }

.grp-object-tools li a {
    background: linear-gradient(to bottom, #444, #000);
}

.grp-object-tools li a, .grp-object-tools li a:hover {
    border: 0px solid white !important;
}


.grp-add-item { display: block !important; }
.grp-add-item a.grp-add-handler {
    display: block !important;
}
.grp-module.grp-add-item a.grp-add-handler {
    top: 2px;
    position: relative;
}

.grp-row input[type=checkbox], .grp-th ul.checkboxlist input[type=checkbox], .grp-td ul.checkboxlist input[type=checkbox] {
    top: 3px;
}

.grp-tabular .grp-table .grp-th, .grp-tabular .grp-table .grp-td { white-space: inherit; }

#records-table .grp-module .grp-tr:not(#records-table-header) > div {
    padding-left: 5px;
    padding-right: 5px;
}

#records-table-header div:nth-child(1) {
    width: 1%;
}

#records-table-header div:nth-child(2) {
    width: 6%;
}
#records-table-header div:nth-child(3) {
    width: 4%;
}
#records-table-header div:nth-child(4) {
    width: 84%;
}
#records-table-header div:nth-child(5) {
    width: 2%;
}
.grp-tools { top: 0; }
div.grp-dynamic-form>a.grp-add-handler+ul.grp-tools { top: -24px !important; }

header#grp-header #grp-navigation ul#grp-user-tools>li a#remove_id_globalsearch_client { padding: 2px; }

/* TAB fix */
.ui-tabs-nav { border: 0 !important; }
.ui-tabs-panel.ui-widget-content { border: 0 !important; }
.ui-tabs-panel fieldset.grp-module { border-radius: 0 5px 5px 5px; }

select, .selector select[multiple=multiple] {
    overflow: scroll;
}

#notes_wrap .date {
    width: 150px;
}
#notes_wrap textarea {
    width: 100%;
}
#notes_wrap .actions {
    width: 140px;
}
#notes_wrap .iso-date {
    display: none;
}

.duration-label{
    padding-left: 10px;
    padding-right: 5px;
}

.duration {
    width: 50px;
    text-align: center;
}

#ui-datepicker-div{
    left: unset;
    right: 20px;
    width: 40vw !important;
    min-width: 200px;
}

@media screen and (max-width: 1395px) {
    .grp-fixed-footer {
        padding-bottom: 0;
        margin-top: -5px;
        margin-bottom: -12px;
    }
}

.note_text > div{
    margin: 0.5rem 0;
}

.note_text p{
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
}

.news-message-box {
    display: flex;

    border-radius: 5px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: auto;

    margin-bottom: 10px;
}
.news-message-box-item-wrapper {
    background: #eeeeee;
    border-radius: 5px;
    margin-bottom: 6px;
    width: 100%;
}
.news-message-box-item {
    display: flex;
    flex-direction: column;
    padding: 10px;
    width: auto;
}
.news-message-box-item-title {
    font-weight: bold;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 18px;
}
.news-message-box-item-content {
    width: auto;
}

.news-message-box-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.note {
    width: 100%
}

.select2 button.select2-selection__choice__remove {
    margin: 0;
    width: auto;
    height: auto;
}
.select2 button.select2-selection__clear {
    color: black;
}
.select2-selection {
    white-space: normal !important;
}

.dashboard #grp-container #grp-content #grp-content-container {
    width: 100%
}

.field-get_note ol{
    list-style: decimal;
    padding-left: 20px;
}

.field-note_short ol {
    list-style: decimal;
    padding-left: 20px;
}

.field-get_note ul{
    list-style: unset !important;
    padding-left: 20px;
}

.field-note_short ul {
    list-style: unset !important;
    padding-left: 20px;
}

.note_text ol {
    list-style: decimal;
    padding-left: 20px;
}

.note_text ul {
    list-style: unset !important;
    padding-left: 20px;
}

.news-message-box-item-content ul {
    list-style: unset !important;
    padding-left: 20px;
}

.news-message-box-item-content ol {
    list-style: decimal;
    padding-left: 20px;
}

#encounter_form > div > fieldset > div.form-row.grp-row.grp-cells-7.grp-cells.performed_by.anamnesis_link.effectivity_link.person_type.primary_drug.application_method.sex > div.field-box.grp-cell.l-2c-fluid.l-d-4.effectivity_link > div.c-1,
#encounter_form > div > fieldset > div.form-row.grp-row.grp-cells-7.grp-cells.performed_by.anamnesis_link.effectivity_link.person_type.primary_drug.application_method.sex > div.field-box.grp-cell.l-2c-fluid.l-d-4.anamnesis_link > div.c-1
{
    display: None;
}
