html,body {padding:0; margin:0; font-family: Arial; font-size:13px}
*{box-sizing: border-box;}
.main {display:flex; min-height:100vh;}
nav {width:250px; background-color:#016197; color:white; background-position: center center; background-size: cover; padding:10px; position:fixed; height:100vh; z-index:9; overflow-x: hidden}
.rightside{width:100%; margin-left:250px; position:relative; max-width: calc(100% - 250px);}
content{width:100%; padding:10px; display:block; overflow: auto; max-width:100%; background:#f5f5f5; min-height:calc(100vh - 40px); }
header,  .gridheadcontainer,  .cardheadcontainer  {width:100%; padding:10px; background:#777; min-height:50px; color:white; display:flex; justify-content: space-between; align-items: center; overflow:hidden}
header .title { overflow: hidden; }
header .title .titlemodulename {font-size:1.7em;}
.gridheadcontainer.red {background:#ff0000;}
input {border:1px solid #999}
button, button:active, button:focus,input, input:active, input:focus {outline: none !important;}

.auth {margin:200px auto; text-align:center; width:200px}

nav {overflow-y: auto;}
nav > div { }
nav a {color:#eee; text-decoration:none; display:block; padding: 5px }

nav a.selected {font-weight:bold;color:#fff !important;}
nav .razdel {width:100%; padding:0 ;display:block; color:white; ; background-color: inherit;}
nav .razdellabel, nav .back{cursor:pointer; padding:5px}
nav .razdellist {padding-left:20px;  overflow:hidden; position:absolute; top:65px; left:300px; width:100%;transition:all 0.5s; background:inherit; min-height:300px; z-index:10;}
nav .razdellist.open {left:0}
nav .menufilter {padding-left:20px}
nav .menufilter a { color:#bbb;}
nav .back, nav .razdellabel:hover, nav a:hover {background-color:#104E8B;}

.mobilesandwich {display:none; color:white; position:fixed; background-color:#77aaff; width:100%; padding:10px; z-index: 10; background-image:url(/img/menu.svg); background-size:30px 30px; background-repeat:no-repeat; background-position: right 20px center}
nav .name {border-bottom:1px solid #ddd; color:#ddd; font-style:italic; font-size:0.7em; }

header * {white-space:nowrap;}

@media (max-width:1300px) {
	header .buttons .import, header .buttons .reportlabel    {display:none}
}
@media (max-width:1150px) {
	header .buttons .massbutton, header .buttons .reportlabel    {display:none}
}

@media (min-width:1000px) {
	header {position:fixed; right:0; left:250px; width:auto; z-index:19; height:60px}
	content {padding-top:70px;}
}
@media (max-width:1000px) {
	content {padding:10px 0;}
	header {flex-direction: column; left:0; }
	header button {margin:5px; }
	.ui-button {padding: 3px 5px; }
	nav {display:none; height: 100vh; max-height:100vh; top:0; padding-top:50px}
	nav .razdellist {top:50px}
	nav a ,nav .razdellabel, nav .back{padding:10px;}
	nav.open {display:block;}
	/*nav > * {border-bottom: 1px solid white;}*/
	.main{padding-top:35px;}
	.rightside{ margin-left:0; max-width:none }
	.mobilesandwich {display:block;}
	header .buttons .massbutton, header .buttons .excel, header .buttons .emails, header .buttons .phones, header .buttons .import    {display:none}
}



table {border-spacing:0}
td, th {padding:5px; margin:0; border-bottom:1px solid #bbb;}

.reportPhonesEmails .line {display:flex; border-bottom:1px solid black}
.reportPhonesEmails .name {flex:1;}
.reportPhonesEmails .tel,.reportPhonesEmails .emails {flex:3;overflow:auto; max-height:150px; white-space: nowrap; }

.perpage {width:80px}
@media (max-width:450px){ 
  .perpage{display:none;} 
}

.ui-button{font-size:13px;}
button.small {padding:0; font-size:inherit; height:16px; line-height:13px; margin-right:5px}
/*.htmlGrid {width:100%;}
.htmlGrid th {text-align:left; padding:10px;}
.htmlGrid tr{cursor:pointer;}
.htmlGrid tr.line td {border-top: 1px solid #777; padding:15px 10px 5px 10px; }
.htmlGrid tr:nth-child(4n){background-color: #fff; }
.htmlGrid tr:nth-child(4n+1){background-color: #fff; }
.htmlGrid tr:nth-child(odd) td {padding-bottom:10px;}
.htmlGrid tr.hover {background-color: #e0f0ff}

.htmlGrid .secondarigrid {display:inline-flex; margin:5px; border-radius: 100px ; padding:1px; font-size:0.7em;}
.htmlGrid .secondarigrid .label{color:#777; margin-right:10px;}
*/
.htmlGrid {width:100%;}
.htmlGrid .th {text-align:left;  font-style: italic}
.htmlGrid .tr{cursor:pointer; display:flex; flex-wrap: wrap; border-top: 1px solid #ddd; padding:2px 10px ; justify-content: flex-start; align-items: center }
.htmlGrid .tr .td { flex:1; overflow:hidden; padding:3px 10px; height:20px; }
.htmlGrid .tr .td:first-child {flex:2; }
.htmlGrid .tr:nth-child(odd){background-color: #fff; }
.htmlGrid .tr:hover {background-color: #e0f0ff}
.htmlGrid .tr.selected {background-color: #a0d0ff}
.htmlGrid .tr .td .label{ display:none; }
.htmlGrid .th.sortASC,.htmlGrid .th.sortDESC {font-weight: bold}
.htmlGrid .th.sortASC:after {content:" ▲";}
.htmlGrid .th.sortDESC:after {content:" ▼";}

@media(min-width:700px) {
	.htmlGrid .tr .td * {white-space: nowrap; overflow: hidden}
}
@media(max-width:700px) {
	.htmlGrid .th {display:none}
	.htmlGrid .tr .td {flex:none; margin:5px; padding:1px; width:100px; height:auto; max-height:100px}
  .htmlGrid .tr .td.gridfield_name{font-weight:bold; font-size:1.3rem; }
	.htmlGrid .tr .td:first-child {flex:none; display:none;}
	.htmlGrid .tr .td .label {color:#777; margin-right:10px; display:block;font-size:0.7rem;}
}
.hint {display:none}
@media(min-width:700px) {
	.hint {position: absolute; z-index:500; width:200px; opacity:0;transition: opacity .1s ease 0s; background-color:#ffffff; box-shadow: 5px 5px 10px 5px #00000055}
	.hint.show {display:block; opacity:1; }
	.hint .td {flex:none; margin:5px; padding:1px; }
	
	.hint .td .label {color:#777; margin-right:10px; display:block; font-size:0.7rem;}
}
.htmlGrid .buttonizator button{ display:none}

.htmlGrid .break {flex: none; width:100%;}
.htmlGrid .tr.accessdenied {opacity:0.6; border-right:3px solid red;border-left:3px solid red}
.htmlGrid .secondarigrid {display:inline-flex; margin:5px; border-radius: 100px ; padding:1px; }
.htmlGrid .secondarigrid .label{color:#777; margin-right:10px;}

.htmlGrid .gridfield_name 
{width:100% !important;}

.htmlGrid .gridfield_calcwarranty,
.htmlGrid .gridfield_notes ,
.htmlGrid .gridfield_address, 
.htmlGrid .gridfield_parentid
{width:60% !important;}

.pagination {margin-top:10px; display: flex; gap:40px}

.calendar {width:100%;}
.calendar .tr{display:flex; flex-wrap: wrap; padding:5px 10px ; justify-content: flex-start; }
.calendar .tr .td { flex:1; overflow:hidden; padding:5px; border:1px solid #777; background:white;}
.calendar .tr .td > div {background: #eee; padding:3px; margin:3px 0 ; cursor:pointer; font-size:0.7em;}
.calendar .tr .td > div:hover {background-color: #e0f0ff}
.calendar .tr .td.gray {background:none; border:1px solid transparent;}
.calendar .tr .td.now {background:#ffdddd;}
.calendar .tr .td.past {background:#ffffff;}
.calendar .tr .td.future {background:#ffffff;}
.calendar .monthname {font-size:2em; margin: 10px 0 0 20px;}
.calendar .tr .td .parent {color:#555;}
.calendar .tr .td .contact {color:#555;}
@media (max-width: 700px) {
	.calendar .tr {flex-direction: column}
}

.shadow {position:fixed; top:0; bottom:0; left:0; right:0; background:#0007; z-index:1000; display:none; justify-content: center; align-items: center; color:white;}
.shadow.open {display:flex;}
.ui-widget-overlay {background:#0007; opacity:1;}

.search {display:none;background:#0002; padding:10px;}
.search .advanced {display:flex; flex-wrap: wrap; align-items: center; justify-content: flex-start;}
.search .advanced > * , .search input, .search textarea{width:300px;}
.search textarea{height:35px; font-family:inherit}
.search.open{display:block;}
.search .floatlabel {margin:3px;}
.search .full {width:100%; display:block}
.search .full input {width:100%;}
.searchelement {background: white; border:1px solid gray;  display: block;margin: 3px; padding:0.2em; }
.searchelement label{text-align:left; white-space: nowrap; cursor: text; user-select:none; padding:0 1em;  color:gray; overflow:hidden;}
.searchelement.selectfield {display:flex; min-height: 36px; align-items:center; justify-content: space-between;}
.searchelement.linkfield {display:flex; min-height: 36px; align-items:center; justify-content: flex-start;}
.search .buttons {margin: 10px 3px 0px 3px}
.simplesearch .floatlabel {display: inline-block;}


.mass {display:none; background:pink; padding:10px;}
.mass.open{display:block;}

.report {display:none; background:#bbeeff; padding:10px;}
.report.open{display:block;}

.floatlabel {  position: relative;  box-sizing: border-box; margin:0 auto; display: block;}
.floatlabel input, .floatlabel textarea {	padding:1em 1em 0.3em 1em;}
.floatlabel label {  text-align:left;position: absolute; box-sizing: border-box;  top: 0;  left: 0;   width:100%; overflow:hidden; white-space: nowrap; cursor: text; user-select:none; padding: 0.6em 0 0 1em;  transition: all 200ms;    color:gray;  transform-origin: top left; }
.floatlabel input:focus + label,.floatlabel input:valid + label,.floatlabel textarea:focus + label,.floatlabel textarea:valid + label{    transform: translate3d(0, -0.3em, 0) scale(0.75); }

/*.cardcontainer { padding-bottom:70px;}*/
.card {width:100%; display:flex; justify-content: space-between; flex-wrap: wrap; align-items: flex-start; }
.field {display:flex;  border-bottom: 1px solid #ddd; margin:0; align-items:center}
.field > * {width:100%;} 
.field .label {width:200px; color:#777;padding:5px;}
.field .label.required {border:1px solid red;}
.field .data { width:100%;  /*без хиддена разъезжаются таблицы GridField*/padding:5px;}
.field .buttonizator {display:flex; align-items:center}

.card .column div.hidden {display: none;}
@media (min-width:700px) {
	.card .column.full {width:100%; }
	.card .column.half {width:49%; border:1px solid #ccc; margin-bottom:20px;}
}
@media (max-width:700px) {
	.card .column.full ,	.card .column.half {width:100%; margin-bottom:20px;}
}

.field.header {background: #bbb; color:white; padding:5px; font-weight:bold;}

@media (max-width:700px) {
	.field {flex-direction: column; align-items: flex-start}
}


.field.textfield  input ,
.field.textareafield  textarea ,
.field.cityfield  input,
.field.addressfield  input
{font-size:inherit; font-weight: bold; width:100%; background:#ffffff; height:100%; font-family: inherit; font-size:inherit; padding:3px; }
.field.textfield  input:hover ,
.field.textareafield  textarea:hover ,
.field.cityfield  input:hover,
.field.addressfield  input:hover
{outline:1px solid #aaccff;}

.field.arrayfield .list {display:block;}
.field.arrayfield input {font-size:inherit; font-weight: bold; padding:3px ; width:100%}
.field.arrayfield span {position:absolute; z-index:10; transform:translateX(-20px) translateY(8px); cursor:pointer; }
.field.arrayfield .buttonizator {margin-bottom: 5px}

.field.linkfield span {cursor:pointer;}
.field.idfield {display:none;}

.datefield .value1, .datefield .value2 {width:130px; display: inline-block}

.grid {margin-top:20px;}
.gridcontainer {border:1px solid black;}


/*.htmlcard .buttons{padding: 10px 20px; background: #777;margin: 20px 0; width:100%;}*/
/*.cardcontainer .buttons{position:fixed; bottom:0; right:0; left:300px; background: #777}*/
.buttons {display:inline-flex;}
.buttons, .btnGenerate button {background-size: 20px; background-repeat: no-repeat; background-position: center center;}
.buttons .right {float:right;}
.buttons .red {background:pink; }
.buttons .green {background:#aaffaa; }
.buttons .toContactsCSV {background-image:url(/img/ICONS-toContactsCSV.svg);}
.buttons .excel {background-image:url(/img/ICONS-excel.svg);}
.buttons .emails {background-image:url(/img/ICONS-mail.svg);}
.buttons .phones {background-image:url(/img/ICONS-phone.svg);}
.buttons .import {background-image:url(/img/ICONS-export.svg);}
.buttons .advsearch {background-image:url(/img/ICONS-search.svg); padding-right:20px;background-repeat: no-repeat; background-position:center right; background-size:20px;}

.btnGenerate {display:inline-flex; }
.btnGenerate {float: left; }

.paginationbutton.selected {background:#aaccff;}

#mapka {min-height:calc(100vh - 200px);}

.napominalki {position:absolute; bottom:0; left:0; right:0; background:#093258}
.napominalki h2 {padding-left:10px}
.napominalki .clinic {font-weight:bold}
.napominalki > a {border-top: 1px solid white}


.jqx-kanban-item {margin-top:10px !important}
.jqx-kanban-item-text {font-weight:bold}
/**
 * You can compile this by https://www.sassmeister.com with
 *
 * - dart-sass v1.18.0
 */
.diff-wrapper.diff {
  background: repeating-linear-gradient(-45deg, whitesmoke, whitesmoke 0.5em, #e8e8e8 0.5em, #e8e8e8 1em);
  border-collapse: collapse;
  border-spacing: 0;
  border: 1px solid black;
  color: black;
  empty-cells: show;
  font-family: monospace;
  font-size: 13px;
  width: 100%;
  word-break: break-all;
}
.diff-wrapper.diff th {
  font-weight: 700;
}
.diff-wrapper.diff td {
  vertical-align: baseline;
}
.diff-wrapper.diff td,
.diff-wrapper.diff th {
  border-collapse: separate;
  border: none;
  padding: 1px 2px;
  background: #fff;
}
.diff-wrapper.diff td:empty:after,
.diff-wrapper.diff th:empty:after {
  content: " ";
  visibility: hidden;
}
.diff-wrapper.diff td a,
.diff-wrapper.diff th a {
  color: #000;
  cursor: inherit;
  pointer-events: none;
}
.diff-wrapper.diff thead th {
  background: #a6a6a6;
  border-bottom: 1px solid black;
  padding: 4px;
  text-align: left;
}
.diff-wrapper.diff tbody.skipped {
  border-top: 1px solid black;
}
.diff-wrapper.diff tbody.skipped td,
.diff-wrapper.diff tbody.skipped th {
  display: none;
}
.diff-wrapper.diff tbody th {
  background: #cccccc;
  border-right: 1px solid black;
  text-align: right;
  vertical-align: top;
  width: 4em;
}
.diff-wrapper.diff tbody th.sign {
  background: #fff;
  border-right: none;
  padding: 1px 0;
  text-align: center;
  width: 1em;
}
.diff-wrapper.diff tbody th.sign.del {
  background: #fbe1e1;
}
.diff-wrapper.diff tbody th.sign.ins {
  background: #e1fbe1;
}
.diff-wrapper.diff.diff-html {
  white-space: pre-wrap;
}
.diff-wrapper.diff.diff-html.diff-combined .change.change-rep .rep {
  white-space: normal;
}
.diff-wrapper.diff.diff-html .change.change-eq .old,
.diff-wrapper.diff.diff-html .change.change-eq .new {
  background: #fff;
}
.diff-wrapper.diff.diff-html .change .old {
  background: #fbe1e1;
}
.diff-wrapper.diff.diff-html .change .new {
  background: #e1fbe1;
}
.diff-wrapper.diff.diff-html .change .rep {
  background: #fef6d9;
}
.diff-wrapper.diff.diff-html .change .old.none,
.diff-wrapper.diff.diff-html .change .new.none,
.diff-wrapper.diff.diff-html .change .rep.none {
  background: transparent;
  cursor: not-allowed;
}
.diff-wrapper.diff.diff-html .change ins,
.diff-wrapper.diff.diff-html .change del {
  font-weight: bold;
  text-decoration: none;
}
.diff-wrapper.diff.diff-html .change ins {
  background: #94f094;
}
.diff-wrapper.diff.diff-html .change del {
  background: #f09494;
}

.mymessenger {height: 100%; background-image:url(/img/wabg.png);}

.messenger {display: flex; flex-wrap: wrap; gap: 1rem; padding: 0; height: 500px; overflow-y: scroll;}
.messenger div {width: 100%; padding: 0.5rem;}
.messenger span {width: 100%; padding: 0.5rem;}
.messenger .message-container {cursor: pointer;}
.messenger .message {max-width: 85%; width: fit-content; color: #111B21; font-size: 1.08rem; box-shadow: 0 1px .5px rgba(11, 20, 26, .13);}
.messenger .message.message-inbound {background-color: white; float: left; border-radius: 0 1rem 1rem 1rem;}
.messenger .message.message-outbound {background-color: #d9fdd3; float: right; border-radius: 1rem 0 1rem 1rem;}
.messenger .message .send-time {font-size: 0.9rem; text-align: right; color: #667781; padding-bottom: 0;}
.messenger .message-error {color: #ff4d4d; display: flex; align-items: center; position: relative;}
.messenger span {width: fit-content; display: flex; align-items: center;}
.messenger .message-error_notify {display: none; position: absolute; z-index: 100; width: 100%; background-color: #fff; border-radius: 1rem;}
.messenger .message-error:hover .message-error_notify {display: block;}


.messenger-inputs {display: flex; margin-top: 1rem;}
.messenger-inputs textarea {margin-right: 0.5rem;}
.messenger-inputs button {width: 50px; cursor: pointer;}
.messenger-inputs textarea {width: 100%;}
.messenger-inputs #messengerButton {margin-left: 0.5rem; width: fit-content; padding: 0; border: none; font: inherit; color: inherit; background-color: transparent; cursor: pointer; opacity: 0.7;}

.dashboard {display: flex; flex-wrap: wrap; gap: 1rem;}
.dashboard .messenger {min-width: 330px; max-width: 40%;}
.dashboard .messenger div {width: 100%; padding: 0.5rem;}
.dashboard .messenger .message {width: 100%; max-width: 100%; border-radius: 0px;}

.dashboard-dialog {display: flex;}
.dashboard-dialog .messenger-container {height: 91%;}
.dashboard-dialog .messenger {background-image:url(/img/wabg.png);}
.dashboard-dialog .contacts {min-width: 30%; margin-right: 1rem;}
.dashboard-dialog .contacts ul {padding: 0; display: flex; gap: 1rem; flex-direction: column; overflow-y: scroll; height: 95%;}
.dashboard-dialog .contacts ul li {list-style: none;}
.dashboard-dialog .contacts ul li button {width: 95%; text-align: left; padding: 0.5rem; cursor: pointer;}

.messenger-partner .messenger-inputs {display: none;}