/* message box */
body.dimmed > .dimmer {
    z-index: 200;
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: var(--dimmer-background-color);
    opacity: 0.5;
    top: 0;
}
body.dimmed > .dimmer #clickable {
    pointer-events: none;
    margin: 0;
}

.ovk-diag {
    width: 100%;
    background-color: var(--page-background-color);
    margin: 0;
    border: 0;
    border-radius: var(--page-border-radius);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
.ovk-modern-msg .ovk-diag {
	margin: 0;
	top: 50%;
	position: fixed;
	left: 50%;
	transform: translateX(-50%) translateY(-50%);
}
.ovk-diag-cont {
    background: none;
    width: 450px;
}
.ovk-diag-head,.ovk-modern-msg .ovk-diag-head {
    border-radius: var(--page-border-radius) var(--page-border-radius) 0 0;
    background-color: var(--accent-color--tertiary);
    font-weight: 400;
    font-size: 14px;
    color: var(--accent-text-color);
    height: 54px;
    line-height: 54px;
    padding: 0 0 0 25px;
    border: 0;
}
.ovk-diag-head a {
    color: var(--accent-text-color);
}
.ovk-diag-head .divider::before {
    color: var(--accent-text-color);
}
.ovk-diag-body {
    padding: 20px 25px !important;
    line-height: 19px;
}

.ovk-diag-body .form_field {
    width: 100%;
    min-height: unset;
}
.ovk-diag-body .form_label {
    width: 100px;
}

.ovk-diag-body .ui_search.ui_search_new {
  margin: 0;
}

.messagebox-content-header,
.mb_tabs {
    background: var(--page-header-background-color);
    margin: -20px -25px 0;
    padding: 15px 25px;
}

.mb_tab:hover {
    background: var(--button-background-color--hover);
}
.mb_tab#active {
    background-color: var(--accent-color);
    color: var(--accent-text-color);
}
.mb_tab#active a {
    color: var(--accent-text-color);
}
.mb_tabs {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}
.mb_tab {
    margin-right: 5px;
}
.entity_vertical_list {
    height: auto;
    overflow-y: unset;
}
.entity_vertical_list.scroll_container {
	padding: 0;
}
.entity_vertical_list .entity_vertical_list_item {
    align-items: center;
}
.entity_vertical_list .entity_vertical_list_item .avatar {
	line-height: 0;
}
.entity_vertical_list.mini .entity_vertical_list_item img {
    border-radius: 50%;
}
.entity_vertical_list .entity_vertical_list_item .first_column {
    gap: 10px;
    align-items: center;
}
.entity_vertical_list .entity_vertical_list_item .info {
    width: fit-content;
    max-width: 280px;
    flex: 1;
}
#_feed_settings_container #__content {
    padding: 15px;
    height: fit-content;
}

.ovk-diag-head-close,.stickers_modal_close_cross {
    float: right;
    padding: 21px 25px 21px 12px;
    background: url(../cross.png) no-repeat 12px
    21px;
    width: 12px;
    height: 12px;
    opacity: 0.75;
    margin: 0;
    cursor: pointer;
}

.ovk-diag-head-close:hover {
    opacity: 1;
}

.ovk-diag-action {
    background-color: var(--page-header-background-color);
    border-top: solid 1px var(--border-color);
    border-radius: 0 0 var(--page-border-radius) var(--page-border-radius);
    padding: 14px 23px 14px 25px;
}
.ovk-diag-action:empty {
    display: none!important;
}
.ovk-diag-cont.ovk-diag-top-shadow .ovk-diag-body {
    box-shadow: inset 0 3px 4px -2px var(--shadow-outline-color);
}
.ovk-diag-cont.ovk-diag-bottom-shadow .ovk-diag-action {
    position: relative;
    z-index: 1;
    box-shadow: 0 -2px 4px var(--shadow-outline-color);
}

.ovk-diag table td[width="120"] {
    line-height: 17px;
}

.ovk-diag table {
	width: 100%;
	border-spacing: 10px;
}
.ovk-diag table input[type="checkbox"], .ovk-diag table input[type="radio"] {
    margin: 0;
}

.ovk-diag-head .ui_tabs {
  margin-left: -25px;
  display: inline-flex;
  line-height: 1.154;
  border: 0;
}
.ovk-diag-head .ui_tabs_header {
  background: none;
  border: 0;
}

/* Document viewer modal */
.ovk-modal-video-window .photo-page-wrapper-photo img.main_doc_block {
  min-height: 300px;
  max-height: calc(100vh - 260px);
  overflow: hidden;
}

.ovk-modal-video-window .main_doc_block {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

/* Stock viewer template compatibility */
.ovk-photo-view-overlay {
  display: none;
}

.itemAuthor {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 20px 10px 15px;
  background: var(--page-header-background-color);
  border-bottom: 1px solid var(--border-color);
}

.itemAuthorAva {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.itemAuthor2 {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.itemAuthorName a {
  font-weight: 500;
}

.itemPostTime {
  color: var(--text-color--secondary);
}

.ovk-vid-details {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

.post_viewer_page #itemContent .page_block {
  margin: 0;
}

.post_viewer_page #itemContentComments {
  border-top: 1px solid var(--border-color);
}

.post_popup_modal .pr {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 200px;
}

.ovk-msg-sheet #repost_signs {
  display: none !important;
}
