body {
  background: #fff;
  color: #000;
  font: normal normal 16px/18px "Calibri", sans-serif;
  margin: 0;
  padding: 0;
}
a {
  color: #0000cc;
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}
a:active {
  color: #ff0000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  border: 1px solid #000;
  font: inherit;
  margin: 1em 0;
  padding: 2px 0;
  text-align: center;
}
noscript {
  border: 1px dashed #ff0000;
  color: #ff0000;
  display: block;
  margin: 1em 0;
  padding: 10px;
}
fieldset {
  border: 1px solid #000;
  margin: 1em 0;
}
input, textarea, button {
  font: inherit;
}
input[type="submit"],
input[type="button"],
button,
.button {
  background: #fff;
  border: 1px solid #000;
  color: red;
  display: inline-block;
  margin: 0;
  padding: 2px 15px;
  min-width: 15.38%;
  text-align: center;
  text-decoration: none;
}
input[type="submit"]:disabled,
input[type="button"]:disabled,
button:disabled,
input[type="submit"].disabled,
input[type="button"].disabled,
button.disabled,
.button.disabled
{
  color: #6d6d6d;
}
input[type="text"],
input[type="password"],
textarea {
  color: #0070c0;
}
.width-10 {
  width: 10%;
}
.width-20 {
  width: 20%;
}
/* Разделитель */
div.separator {
  border-top: 1px dashed #000;
  margin: .5em 0;
}
/* Отступы */
.margin {
  margin: 1em 0;
}
.margin-top {
  margin-top: 1em;
}
.margin-bottom {
  margin-bottom: 1em;
}
/* Панель со ссылкми */
.links {
  margin: 1em 0;
}
.links .button ~ .button {
    margin-left: 1em;
}
/* Выравнивание элементов */
.align-left {
  text-align: left;
}
.align-center {
  text-align: center;
}
.align-right {
  text-align: right;
}
.float-left {
  float: left;
}
.float-right {
  float: right;
}
.clearfix:after {
  content: ".";
  display: block;
  height: 0;
  clear: both;
  visibility: hidden;
}
.userbar {
  border-bottom: solid 1px #000;
  padding: 6px 4px 4px;
}
.userbar a {
  float: right;
  margin-left: 10px;
}
.content {
  margin: 1em 6.7%;
}
/* Текстовые поля */
.textfield,
.textarea {
  border: solid 1px #000;
  padding: 2px;
  position: relative;
}
.textfield .progress {
  float: right;
  text-align: right;
  width: 80px;
}
.textfield .holder {
  margin-right: 80px;
}
.textfield .progress,
.textfield .holder {
  position: relative;
  z-index: 50;
}
.textfield .progressbar {
  background: #eee;
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
  z-index: 45;
}
.textfield input {
  background: transparent;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}
.textarea textarea {
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}
/* Скрытая панель выбора даты */
.date-select {
  position: relative;
}
.date-select .cache {
  background: white;
  border: 1px solid black;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .25);
  display: none;
  left: 0;
  margin-top: 2px;
  padding: 1em;
  position: absolute;
  top: 100%;
  white-space: nowrap;
  z-index: 1000;
}
/* Страница входа в систему */
.login-page form {
  margin-left: 30.78%;
  width: 23.08%;
}
.login-page table {
  border-collapse: collapse;
  margin: 1em 0;
  width: 100%;
}
.login-page table,
.login-page table td {
  border: 1px solid black;
}
.login-page table td {
  padding: 2px;
}
.login-page table td:first-child {
  width: 33.33%;
}
.login-page table td input {
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  width: 100%;
}
.login-page input[type="submit"] {
  box-sizing: border-box;
  width: 100%;
}
/* Страница редактирования задолжености по клиенту */
.show-user-page .info .column-left {
  float: left;
  width: 23.08%;
}
.show-user-page .info .column-left .search {
  margin-bottom: 1em;
}
.show-user-page .info .column-left .search a {
  box-sizing: border-box;
  width: 100%;
}
.show-user-page .info .column-left .debt {
  border: 1px solid black;
  font-size: 62px;
  line-height: 100%;
  padding-bottom: 10px;
  text-align: center;
}
.show-user-page .info .column-right {
  margin-left: 38.45%;
}
.show-user-page .info .column-right .client-name {
  margin: 0;
  width: 37.5%;
}
.show-user-page .info .column-right .email-and-note {
  border: 1px solid black;
  margin-left: 50%;
}
.show-user-page .info .column-right .email-and-note table {
  border-bottom: 1px solid black;
  border-collapse: collapse;
  border-left: none;
  border-top: none;
  border-right: none;
  width: 100%;
}
.show-user-page .info .column-right .email-and-note .note,
.show-user-page .info .column-right .email-and-note table td {
  padding: 2px;
}
.show-user-page .info .column-right .email-and-note table .title {
  border-right: 1px solid black;
  width: 25%;
}
/* Форма отправки истории клиенту на почту */
.show-user-page .info .column-right .send-history {
  margin-left: 12.5%;
  margin-right: 25%;
}
.show-user-page .info .column-right .send-history input {
  box-sizing: border-box;
  width: 100%;
}
.show-user-page .info .column-right .send-history input[type="submit"] {
  margin-top: 1em;
}
.show-user-page .info .column-right .send-history .float-left {
  width: 40%;
}
.show-user-page .info .column-right .send-history .column-right {
  margin-left: 60%;
}
/* таблица с элементами управления формой */
.form-control {
  border: none;
  border-spacing: 0;
  width: 100%;
}
.form-control .cell {
  border: 1px solid black;
}
.form-control .narrow {
  width: 7.69%;
}
.form-control .wide {
  width: 15.38%;
}
.form-control input {
  box-sizing: border-box;
  width: 100%;
}
/* Таблиция с историей */
.history-table {
  border: none;
  border-spacing: 0;
  width: 100%;
}
.history-table .cell {
  border: 1px solid black;
}
.history-table .narrow {
  width: 3.57%;
}
.history-table .wide {
  width: 7.14%;
}
.history-table .button {
  border: none;
  padding: 0;
  width: 100%;
}
/* Перекрытие экрана для диалоговых окон */
.screencover {
  background: rgba(0, 0, 0, .5);
  bottom: 0;
  display: none;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
}
/* Диалоговое окно с вопросом о печати */
.dialog-window {
  background: white;
  left: 50%;
  margin-left: -200px;
  margin-top: -50px;
  padding: 1em;
  position: fixed;
  text-align: right;
  top: 50%;
  width: 400px;
}
.dialog-window h2 {
  margin-top: 0;
}
.dialog-window input ~ input {
  margin-left: 1em;
}
/* Страница добавления/редактирования клиента */
.add-user-page .fields {
  padding-right: 53.84%;
}
.add-user-page .fields .textfield {
  float: left;
  width: 33.33%;
}
.add-user-page .fields .textfield ~ .textfield {
  margin-left: 16.67%;
}
.add-user-page .actions input {
  margin-left: 1em;
}
.add-user-page #sims .client {
  
}
.add-user-page #sims .client .id {
  float: left;
  width: 120px;
}
.add-user-page #sims .client .debt {
  float: right;
  text-align: right;
  width: 200px;
}
.add-user-page #sims .client .other {
  margin-left: 120px;
  margin-right: 200px;
}
.add-user-page #sims .client .actions {
  text-align: right;
}
/* Поиск */
.info .search {
  position: relative;
}
.userbar .search {
    width: 380px;
    position: absolute;
    right: 160px;
}
.info .search .results, .userbar .search .results {
  background: #fff;
  border: 1px solid black;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, .25);
  display: none;
  left: 0;
  margin-top: 3px;
  min-width: 100%;
  position: absolute;
  top: 100%;
  width: auto;
  z-index: 800;
}
.info .search .results .result, .userbar .search .results .result {
  color: black;
  display: block;
  padding: 2px;
  text-decoration: none;
  white-space: nowrap;
  width: 98%;
}
.info .search .results .result:hover, .userbar .search .results .result:hover  {
  background: rgba(0, 255, 255, .5);
}
.info .search .results .result .i, .userbar .search .results .result .i {
  float: left;
  width: 50px;
}
.info .search .results .result .d, .userbar .search .results .result .d {
  float: right;
  text-align: right;
  width: 70px;
}
.info .search .results .result .n, .userbar .search .results .result .n {
  margin: 0 70px 0 50px;
}
/* Страница статистики по клиентам */
.statistic-page table {
  border: none;
  border-spacing: 0;
  width: 100%;
}
.statistic-page .cell {
  border: 1px solid black;
}
.statistic-page .narrow {
  width: 7.69%;
}
.statistic-page .pagination .button {
  min-width: 16px;
  padding: 2px;
  width: auto;
}
/* Стиль страницы настроек */
.settings-page .password-form {
  display: block;
  margin: auto;
  width: 400px;
}
.settings-page label {
  display: block;
  margin-bottom: 3px;
}
.settings-page .err {
  color: red;
}
.settings-page .msg {
  color: green;
}
/* Страница удаления элемента истории */
.delete-history-item-page table {
  border: none;
  border-spacing: 0;
  width: 100%;
}
.delete-history-item-page .cell {
  border: 1px solid black;
}
.delete-history-item-page .narrow {
  width: 6.25%;
}
.delete-history-item-page .wide {
  width: 12.5%;
}
/* Диалоговое окно редактирования элемента */
.edit-dialog {
    margin-top: -250px;
}
.edit-dialog table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}
.edit-dialog table tr td:first-child {
    padding-right: 10px;
}
/* Страница статистики */
.statistic-page .detailed-stats th {
  text-align: left;
}
/* */
.edit-history-item-page table {
    border: none;
    border-collapse: collapse;
    width: 100%;
}
.edit-history-item-page table col {
    width: 25%;
}
.edit-history-item-page table td {
    padding: 5px;
}
.edit-history-item-page table input[type="text"],
.edit-history-item-page table input[type="password"],
.edit-history-item-page table input[type="submit"],
.edit-history-item-page table .button {
    border: 1px solid black;
    display: block;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    padding: 1px;
    width: 100%;
}
/* */
.history-controls {
    border: none;
    border-spacing: 0;
    width: 100%;
}
.history-controls th,
.history-controls td {
    padding: 0;
}
.history-controls .narrow {
    width: 5.26%;
}
.history-controls .wide {
    width: 10.53%;
}