.responsive-menu {
  position: relative;
}

.main-menu, .sub-menu {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0;
}
.main-menu li, .sub-menu li {
  font-size: 1rem;
  text-transform: uppercase;
}

.main-menu > li {
  display: inline-block;
  position: relative;
  vertical-align: middle;
}
.main-menu > li a {
  display: block;
}
.main-menu > li.active .sub-menu {
  opacity: 1;
  pointer-events: auto;
  margin-top: 0;
  z-index: 20;
}
@media only screen and (min-width: 1221px) {
  .main-menu > li:hover .sub-menu {
    opacity: 1;
    pointer-events: auto;
    margin-top: 0;
    z-index: 20;
  }
}
.main-menu .expand {
  display: none;
}
@media only screen and (max-width: 1220px) {
  .main-menu {
    opacity: 0;
    pointer-events: none;
    margin-top: 20px;
    transition: 200ms all;
    position: absolute;
    top: 100%;
    left: 0;
    right: auto;
    min-width: 200px;
    width: 80%;
    left: 10%;
  }
  .main-menu li {
    display: block;
    margin-left: 20px;
    margin-bottom: 20px;
  }
  .main-menu .expand {
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.5rem 1rem;
    z-index: 15;
    transform-origin: 50%;
    transition: 200ms all;
  }
  .main-menu .expand.active {
    transform: rotate(45deg);
  }
}
@media only screen and (max-width: 1220px) {
  .main-menu.active {
    opacity: 1;
    pointer-events: auto;
    margin-top: 0;
    z-index: 20;
  }
}

.sub-menu {
  opacity: 0;
  pointer-events: none;
  margin-top: 20px;
  transition: 200ms all;
  position: absolute;
  top: 100%;
  left: 0;
  right: auto;
  min-width: 200px;
}
@media only screen and (max-width: 1220px) {
  .sub-menu {
    display: block;
    z-index: 20;
    width: 100%;
  }
}
.sub-menu li a {
  display: block;
}

.toggle-menu {
  display: none;
}
@media only screen and (max-width: 1220px) {
  .toggle-menu {
    display: inline-block;
  }
}

body {
  font-size: 20px;
  background: #3c3f41;
  color: #aeb0b2;
  font-family: sans-serif;
}

header {
  background: #333333;
  font-size: 0;
}

nav {
  display: inline-block;
  vertical-align: middle;
  position: relative;
  background: #333333;
  font-size: 0rem;
  box-sizing: border-box;
  width: 85%;
}
@media only screen and (min-width: 1221px) {
  nav {
    text-align: right;
  }
}

.toggle-menu {
  color: #ffffff;
  padding-right: 1rem;
  float: right;
}
.toggle-menu span {
  display: inline-block;
  vertical-align: middle;
  padding-left: 0.3rem;
}
.toggle-menu svg {
  /*width: 60px;*/
  /*height: 60px;*/
  display: inline-block;
  vertical-align: middle;
}

.logo {
  display: inline-block;
  vertical-align: middle;
  color: #ffffff;
  font-size: 2rem;
  padding: 0.8rem 1rem;
  box-sizing: border-box;
  width: 15%;
}
.text {
    display: inline-block;
    width: 70px;
}
#header .user {
    float:right;
    padding-top:4px;
}
.main-menu, .sub-menu {
  background: #333333;
}
.main-menu li a, .sub-menu li a {
  padding: 1rem 1rem;
  color: #ffffff;
  text-decoration: none;
}
/* Выбранный раздел меню */
.main-menu > li.selected > a {
  background: transparent;
  color: #3f81ab;
  font-weight: 700;

  text-shadow:
    0 0 2px #3f81ab,
    0 0 4px #3f81ab;
}
/* Наведение на остальные пункты */
.main-menu > li:not(.selected) > a:hover {
  background: transparent;
  color: #545a63;
  font-weight: 700;

  text-shadow:
    0 0 2px #545a63,
    0 0 4px #545a63;
}

.main-menu .expand, .sub-menu .expand {
  color: #ffffff;
  font-size: 1.5rem;
}

@media only screen and (max-width: 1220px) {
  .sub-menu {
    background: #777777;
  }
}

.svg {
    height: 26px;
    width: 26px;
    fill: #aeb0b2
}

.svg_su {
    height: 26px;
    width: 26px;
    fill: #a5d07c
}

.svg_err {
    height: 26px;
    width: 26px;
    fill: #fc7678
}

.svg_menu {
    height: 26px;
    width: 26px;
    fill: #aeb0b2
}

/* forms */
form {
    overflow:auto;
}
form p {
    width:100%;
    overflow:auto;
}
label {
    float:left;
    clear:both;
    color:#aeb0b2;
    margin-bottom:4px;
}
input, textarea {
    clear: both;
    float: initial;
    margin: 0 0 10px;
    color:#aeb0b2;
    background: #2b2b2b;
    border: 0;
    padding: 6px 10px;
    font-size: 20px;
}
select {
  clear: both;
  float: initial;
  margin: 0 0 10px;
  color: #aeb0b2;
  background: #2b2b2b;
  border: 1px solid #545a63;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 20px;
}
/* в одну строку */
form.filters { display:flex; align-items:center; gap:12px; flex-wrap:nowrap; white-space:nowrap; overflow-x:auto;
}
input[type=submit], a.button {
    font-weight:bold;
    background:transparent;
    /*color:#3f81ab;*/
    padding: 10px 20px;
    font-size: 20px;
    text-transform: uppercase;
    /*border: 0;*/
}
.my-button .marking {
    padding: 12px 40px;
    font-size: 0px;
    /*margin-left: 5px;*/
    /*margin-top: -5px;*/
    background: url("../../static/svg/barcode-scanner-svgrepo-com (3).svg") no-repeat;
}
.my-button .box_on {
    padding: 12px 12px;
    font-size: 0px;
    background: url("../../static/svg/box-svgrepo-com (2).svg") no-repeat;
}
.my-button .box_off {
    /*border: 1px solid #000;*/
    padding: 12px 12px;
    font-size: 0px;
    background: url("../../static/svg/box-svgrepo-com (2) - Copy.svg") no-repeat;
}
.my-button .pallet_on {
    /*border: 1px solid #000;*/
    padding: 12px 12px;
    font-size: 0px;
    background: url("../../static/svg/pallet-svgrepo-com.svg") no-repeat;
}
.my-button .pallet_off {
    padding: 12px 12px;
    font-size: 0px;
    background: url("../../static/svg/pallet-svgrepo-com - Copy.svg") no-repeat;
}
.my-button .upd {
    padding: 12px 12px;
    font-size: 0px;
    background: url("../../static/svg/status-refresh-svgrepo-com.svg") no-repeat;
}
.my-button .login {
    border-radius: 5px;
    border: 1px solid #000;
    background: #2b2b2b;
    color: #aeb0b2;
    padding: 20px 10px;
    font-size: 20px;
}
.my-button .inwork {
    padding: 0px 9px;
    background: url(../../static/img/inprod_70.png) no-repeat;
}
.my-button .theme {
    padding: 10px 90px;
    /*background: url(../../static/img/night_mob.png) no-repeat;*/
    background: url("../../static/svg/light_mode_2bgtcpifd8u6.svg") no-repeat;
}

/*.my-button .theme:hover {*/
/*    background: url(../../static/img/night_to_mob.png) no-repeat;*/
/*}*/

.my-button .telegram {
    padding: 7px 50px;
    background: url(../../static/img/telegram_mob.png) no-repeat;
    position: relative;
    left: -40px;
    top: -6px;
    color: #3f81ab;
}

.my-button .telegram_reset {
    padding: 7px 90px;
    background: url(../../static/img/telegram_mob.png) no-repeat;
    position: relative;
    left: 0px;
    top: 0px;
    color: #3f81ab;
}
.my-button .pdf {
    padding: 7px 35px;
    background: url("../../static/svg/pdf-file-free-3-svgrepo-com.svg") no-repeat;
    position: relative;
    left: 0px;
    top: 0px;
    /*color: #3f81ab;*/
}
.my-button .open {
    padding: 22px 20px;
    background: url("../../static/svg/search-round-svgrepo-com (1).svg") no-repeat;
    position: relative;
    left: 0px;
    top: 0px;
    font-size: 0;
}
.my-button .create {
    padding: 7px 35px;
    background: url("../../static/svg/plus-svgrepo-com.svg") no-repeat;
    position: relative;
    left: 0px;
    top: 0px;
    /*color: #3f81ab;*/
}
.my-button .svgg {
    padding: 7px 90px;
    position: relative;
    left: 0px;
    top: 0px;
    color: #3f81ab;
}

.my-button .stop {
    padding: 7px 35px;
    background: url("../../static/svg/stop-svgrepo-com (1).svg") no-repeat;
    position: relative;
    left: 0px;
    top: 0px;
    color: #aeb0b2;
}

.my-button .telegram_pincode {
    padding: 7px 90px;
    background: url(../../static/img/save_mob.png) no-repeat;
    position: relative;
    left: 0px;
    top: 0px;
    color: #3f81ab;
}

.telegram-form, .telegram {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0.5em;

    position: relative;
    left: -10px;
}

.errorlist {
    color:orange;
    float:left;
    clear:both;
    padding-left:0px;
    /*margin: 40px;*/
}
.error {
    color: #fc7678;
    /*float:left;*/
    /*clear:both;*/
    /*padding-left:0px;*/
    /*margin: 40px;*/
}
.login-form {
    float:left;
    margin: 40px;
}

#content {
    padding:10px 30px;
}

.img_goods {
    display: inline-block;
    width: 300px;
    vertical-align: bottom;
}


table {
    border-spacing: 0
}
th, td {
    padding: 10px;
    border-bottom: 3px solid #2b2b2b;
    font-size: 17px;
    color: whitesmoke;
}
.tableicon {
    border-bottom: 0;
}

/*tr:nth-child(even) {*/
/*    background-color: #2b2b2b;*/
/*}*/
th {
    background-color: #2b2b2b;
    /*color: whitesmoke;*/
    color: #aeb0b2;
}
tr:hover {
    background-color: rgb(0, 95, 184);
}
.tableicon tr:hover {
    background-color: transparent;
}

/* --- Remove borders around manager checkboxes (dark) --- */
.managers-filter{
  border: 0 !important;
  background: transparent !important;
}

.managers-filter .check{
  border: 0 !important;
  background: transparent !important;
  padding: 0 8px;         /* чуть-чуть отступов, без рамки */
}

/* опционально: лёгкий hover без рамки */
.managers-filter .check:hover{
  background: rgba(255,255,255,.06);
}

/* убираем фокус-рамку у label при таб-навигации */
.managers-filter .check:focus-within{
  outline: none !important;
  box-shadow: none !important;
}

/* Авторизация — восстановление пароля */
.login-card .auth-links {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 14px;
}

.login-card .auth-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #a9d6f3;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.15s ease;
}

.login-card .auth-link img {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-card .auth-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ==========================================================
   QRsite — восстановление пароля
   ========================================================== */

.site-auth-screen {
    display: flex;
    justify-content: center;
    padding: 24px 12px;
}

.site-auth-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 420px;
    padding: 28px;
    border: 1px solid var(--site-auth-border);
    border-radius: 12px;
    background: var(--site-auth-bg);
    color: var(--site-auth-fg);
    font-size: 14px;
}

.site-auth-card *,
.site-auth-card *::before,
.site-auth-card *::after {
    box-sizing: border-box;
}

.site-auth-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: #3f81ab;
    font-size: 24px;
    font-weight: 700;
}

.site-auth-brand img {
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}

.site-auth-card h1 {
    margin: 0 0 20px;
    font-size: 21px;
    color: var(--site-auth-fg);
    text-align: center;
}

.site-auth-hint {
    margin: 0 0 20px;
    color: var(--site-auth-muted);
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
}

.site-auth-card form {
    overflow: visible;
}

.site-auth-field {
    margin-bottom: 17px;
}

.site-auth-field label {
    display: block;
    float: none;
    clear: none;
    margin-bottom: 7px;
    color: var(--site-auth-fg);
    font-size: 14px;
}

.site-auth-input {
    display: flex;
    align-items: center;
    height: 44px;
    padding: 0 12px;
    border: 1px solid var(--site-auth-border);
    border-radius: 7px;
    background: var(--site-auth-input-bg);
}

.site-auth-input:focus-within {
    border-color: #3f81ab;
}

.site-auth-input > img {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-right: 11px;
    color: #3f81ab;
}

.site-auth-input input {
    width: 100%;
    min-width: 0;
    float: none;
    clear: none;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--site-auth-fg);
    font-size: 14px;
}

.site-auth-input input::placeholder {
    color: var(--site-auth-muted);
}

.site-auth-submit {
    width: 100%;
    padding: 12px 16px;
    border: 0;
    border-radius: 7px;
    background: #3f81ab;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.site-auth-submit:hover {
    background: #4d95c2;
}

.site-auth-pin-note {
    margin: -5px 0 18px;
    color: var(--site-auth-muted);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.site-auth-error {
    padding: 12px;
    margin-bottom: 18px;
    border: 1px solid #fc7678;
    border-radius: 7px;
    color: #fc7678;
    font-size: 13px;
    line-height: 1.5;
}

.site-auth-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--site-auth-success);
    text-align: center;
    line-height: 1.6;
}

.site-auth-success img {
    flex-shrink: 0;
}

.site-auth-footer {
    margin-top: 20px;
    text-align: center;
}

.site-auth-footer a {
    color: #3f81ab;
    font-size: 13px;
    text-decoration: none;
}

.site-auth-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 480px) {
    .site-auth-screen {
        padding: 16px 0;
    }

    .site-auth-card {
        padding: 20px;
    }
}

/* Восстановление пароля — тёмная тема */
.site-auth-card {
    --site-auth-bg: #2b2b2b;
    --site-auth-fg: #e3e5e8;
    --site-auth-muted: #a6a9ad;
    --site-auth-input-bg: #242629;
    --site-auth-border: #545a63;
    --site-auth-success: #a5d07c;
}

/* Проверка нового пароля */

.site-auth-submit:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.site-auth-validation.is-valid {
    color: var(--site-auth-success);
}

.site-auth-validation.is-invalid {
    color: #fc7678;
}

/* Показать / скрыть пароль */

.site-auth-password-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 36px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
}

.site-auth-input .site-auth-password-toggle img {
    display: block;
    width: 20px;
    height: 20px;
    margin: 0;
}

.site-auth-password-toggle:hover img {
    opacity: 0.75;
}

.site-auth-password-toggle:focus-visible {
    outline: 2px solid #3f81ab;
    outline-offset: 2px;
    border-radius: 4px;
}