html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  height:100%;
}

* {
  box-sizing: border-box;

  -ms-touch-action: manipulation;
  touch-action: manipulation;
}

*:focus {
  outline: none;
}

:after, :before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

body {
/*  font: 26px 'Lucida Sans Unicode', 'Trebuchet MS', Arial, Helvetica;    */
  font: 26px Arial;
  -webkit-font-smoothing: antialiased;
  font-smoothing: antialiased;
  padding: 0;
  margin: 0;
  width: 100%;
  height:100%;
  color: #404040;

  -webkit-transform-origin: 0 0;
  -moz-transform-origin: 0 0;
  -o-transform-origin: 0 0;
  -ms-transform-origin: 0 0;
  overflow-x: hidden;
  /*  display:table;*/
  background-color: #d9dee2;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e6f4f9), to(#2f77df7a));
  background-image: -webkit-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: -moz-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: -ms-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: -o-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: linear-gradient(top, #e6f4f9, #2f77df7a);    
  background-repeat: no-repeat;
  background-attachment: fixed;
}


.main {
  width: 100%;
  /* height:100%; */
/*  padding-top:120px;
  padding-bottom:160px;
*/
  margin: 0 auto 0 auto;
  z-index: 10 !important;
/*  overflow: auto;*/

  /* background-color: #d9dee2;
  background-image: -webkit-gradient(linear, left top, left bottom, from(#e6f4f9), to(#2f77df7a));
  background-image: -webkit-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: -moz-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: -ms-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: -o-linear-gradient(top, #e6f4f9, #2f77df7a);
  background-image: linear-gradient(top, #e6f4f9, #2f77df7a);     */
}

#main_inner {
  z-index: 500 !important;
  /* height:100%;
  overflow: hidden; */
}

fieldset
{
    border: 0;
    padding: 0;
    margin: 0;
}
/*
ul {
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
*/
* {
  outline: none !important;
  -webkit-tap-highlight-color: transparent;
}

th, td { padding: 0; }

table { border-collapse: collapse; border-spacing: 0; border: none; } 

img {
  max-width: none;
  border: 0;
  border-style: none;
  padding: 0;
  margin: 0;
  vertical-align: middle;
  background: transparent; 
}

:-moz-any-link:focus {
  outline: none !important;
}

.hidden { display: none; }

.visible { display: block; }

.mask {
    display: none;
    background: #000;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    opacity: 0.6;
    cursor: pointer;
    z-index: 990 !important;
}

.message-popup {
    display: none;
    position: absolute;
    top: 420px;
    left: 2%;
    width: 96%;
    z-index: 9999 !important;
    background: white;
    border-bottom: 1px solid;
}

button {
  outline: none;
  touch-action: manipulation;
/*
  -webkit-appearance: none;
  -moz-appearance: none;
*/
}

button:hover {
  cursor: pointer; 
}

hr {
  margin: 7px 0 7px 0;
  border-top: 1px solid black;
}

.bg-danger, .bg-success {
	padding: 0 5px;
}

a {
  color: green;
  text-decoration: none;
  outline: 0;
}

a:hover {
  color: green;
  text-decoration: underline;
}

a:visited {
  color: green;
  text-decoration: none;
}

a:active, a:focus {
  color: green;
  outline: none;
}

.shadow_block {
  -moz-box-shadow: 0 0 11px 5px rgba(0,0,0,0.1); 
  -webkit-box-shadow: 0 0 11px 5px rgba(0,0,0,0.1);
  box-shadow: 0 0 11px 5px rgba(0,0,0,0.1);
}
 
.alert-box {
	border-radius:20px;
	font-size:42px;
	font-weight: bold;
	padding:10px 20px 10px 60px;
	margin:20px;
	text-align:center;
}
.alert-box span {
	font-weight:bold;
	text-transform:uppercase;
	display: none;
	visibility: hidden;
}
.error {
	background:#ffecec url('../images/error.png') no-repeat 20px 50%;
	border:1px solid #f5aca6;
}
.success {
	background:#e9ffd9 url('../images/success.png') no-repeat 20px 50%;
	border:1px solid #a6ca8a;
}
.warning {
	background:#fff8c4 url('../images/warning.png') no-repeat 20px 50%;
	border:1px solid #f2c779;
}
.notice {
	background:#e3f7fc url('../images/notice.png') no-repeat 20px 50%;
	border:1px solid #8ed9f6;
}

#fixed_header {
  -webkit-backface-visibility: hidden;
  position: -webkit-sticky;
  position: sticky;
  background:#EBEBEB;
  top: 0;
  z-index:200 !important;
}

input:-webkit-autofill
{ 
  -webkit-background-clip: text;
}

input::-webkit-input-placeholder, input::-moz-placeholder, input:-moz-placeholder, 
input:-ms-input-placeholder, input::-ms-input-placeholder, input::placeholder
{ 
  color: black;
  opacity: 1;
}

#actions
{
    margin: 40px 0 0 0;
}

#actions a
{
    color: #3151A2;    
    float: right;
    line-height: 80px;
    margin-left: 10px;
}

#back
{
    display: block;
    text-align: center;
    position: relative;
    top: 60px;
    color: #999;
}

.new_document, .return_document, .documents_list, .menu, #table_list, .list_row, #choose_rn, #date_left, #date_right, #date_left_new, #date_right_new, #date_left_return, #date_right_return, img.ui-datepicker-trigger, #activate_submit, .change_address, .edit_position, .edit_position_new, .edit_position_return, .delete_order, .add_position, .add_position_new, .add_position_return, #cancel_registration, #cred {
 -webkit-touch-callout: none; /* iOS Safari */
    -webkit-user-select: none; /* Safari */
     -khtml-user-select: none; /* Konqueror HTML */
       -moz-user-select: none; /* Old versions of Firefox */
        -ms-user-select: none; /* Internet Explorer/Edge */
            user-select: none; /* Non-prefixed version, currently
                                  supported by Chrome, Edge, Opera and Firefox */
}

.new_document:hover, .return_document:hover, .documents_list:hover, .menu:hover, .close:hover, #choose_rn:hover, #date_left:hover, #date_right:hover, #date_left_new:hover, #date_right_new:hover, #date_left_return:hover, #date_right_return:hover, img.ui-datepicker-trigger:hover, #activate_submit:hover, .change_address:hover, .edit_position:hover, .edit_position_new:hover, .edit_position_return:hover, .delete_order:hover, .add_position:hover, .add_position_new:hover, .add_position_return:hover {
  cursor:pointer;
}

img.ui-datepicker-trigger {
  margin-bottom:10px;
  width:64px;
  height:64px;
}

.close {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none;
  background: none;
}

input[type="radio"] {
/*
  -ms-transform: scale(3); 
  -moz-transform: scale(3);
  -webkit-transform: scale(3);
  -o-transform: scale(3);
  transform: scale(3);

  appearance: auto;
  transform-origin: center;
  height: 100%;
*/
  border: 0px;
  width: 100%;
  height: 3em;
}

input[type="number"]
{
    padding: 15px 15px 15px 40px;
    margin: 0;
    width: 100%;
    border: 1px solid #ccc;
    -moz-border-radius: 10px;
    -webkit-border-radius: 10px;
    border-radius: 10px;
    -moz-box-shadow: 0 2px 2px #ccc inset, 0 2px 0 #fff;
    -webkit-box-shadow: 0 2px 2px #ccc inset, 0 2px 0 #fff;
    box-shadow: 0 2px 2px #ccc inset, 0 2px 0 #fff;
    font-size: 46px;
    color: #007121;
}

input[type="number"]:focus
{
    background-color: #fff;
    border-color: #e8c291;
    outline: none;
    -moz-box-shadow: 0 0 0 1px #e8c291 inset;
    -webkit-box-shadow: 0 0 0 1px #e8c291 inset;
    box-shadow: 0 0 0 1px #e8c291 inset;
}

.order {
  width: 100%;
  border: 1px solid grey;
  -moz-border-radius: 14px;
  -webkit-border-radius: 14px;
  border-radius: 14px;
  margin-top: 10px;
  overflow:hidden;
}

.ui-accordion .ui-accordion-header {
  padding: 0;
  margin: 20px 0 0 0;
  border: none;
  background: none;
  font-weight: normal;
  color: #404040;
}

.ui-widget {
  font-size: 1em;
}

.ui-icon-triangle-1-e, .ui-icon-triangle-1-s {
  display:none;
  height:0;
}

.ui-accordion-header-active {
 color: #404040;
}

.ui-accordion-header .row_back {
 background:aliceblue;
}

.ui-accordion-header-active .row_back {
 background: #c6e4ff
}

.ui-accordion .ui-accordion-content {
  padding:0;
}

#cancel_registration, #cred {
  color: green;
  text-decoration: none;
}

#cancel_registration:hover, #cred:hover {
  text-decoration: underline;
  cursor:pointer;
}

.hidden {
    -webkit-transition: all 0.5s ease;
    -moz-transition: all 0.5s ease;
    -o-transition: all 0.5s ease;
    transition: all 0.5s ease;
}

.select2-results>.select2-results__options {
  max-height:800px;
}


.table {
    width: 100%;
}

.table th,
.table td {
    padding: 10px;
}


@media only screen and (max-width: 600px) {
    /*медиа-запрос для малых экранов */
    #agro_table {
        font-size: 16px; /* Уменьшение размера шрифта */
    }
    #agro_table th, #agro_table td {
        padding: 6px; /* Уменьшение отступов */
    }
}

#agro_table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8; 
}
#agro_table th, #agro_table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}
#agro_table th {
    background-color: #4CAF50;
    color: white;
}
.stock-parent {
    background-color: #c2f0c2;
}

/* .data-table .stock,
.data-table td:nth-child(2),
.data-table td:nth-child(3) {
    display: none;
}

.data-table.hidden .stock,
.data-table.hidden td:nth-child(2),
.data-table.hidden td:nth-child(3) {
    display: table-cell;
} */


