html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
 u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}



ol, ul {
	list-style: none;
}

blockquote, q {
	quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}


body {padding: 0; margin: 0; font-family: 'Montserrat', arial;  font-size: 12px; background: #625e5e; color: #111;}
div {overflow: auto;}




input, textarea, select {
	border: 1px solid #bababa;
	padding: 7px 10px;
	margin: 1px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 5px;
	font-family: 'Montserrat', arial;
	background: #f9fafc;
}

.error-box {
  background: #ff5400;
  color: #fff;
  padding: 8px 12px;
  margin: 10px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  animation: shake 0.3s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}



input[type=button], input[type=submit]:hover{
	cursor: pointer;

}


input[type=button]:hover, input[type=submit]:hover{
	border-color: #3D4A46;
}

.hover tr:hover { 
	background-image: url('images/bgtrans.png');
	background-size: cover; 
}

.hovertr:hover { 
	background: #878A8D;
	color: #fff;
}

.num {font-family: verdana;}

.blur:hover {filter: blur(1px);}

.table tr:hover {background: #f6ebeb !important; color: #333 !important;}
.table tr:nth-child(even) {background: #f8f8f8;}

table {border-collapse: collapse;}
a {text-decoration: none; color: #0073aa;}
a:hover {text-decoration: underline;}
.shadow {box-shadow:0px 0px 3px 1px #8d8d8d;}
.radius {-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;}
.radius5 {-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}


[onclick] {cursor: pointer;}


.date {width: 85px; text-align: center;}
.sum {width: 60px; text-align: right;}
.time {width: 65px; text-align: center;}


.table tr:hover {background: #f6ebeb !important; color: #333 !important;}
.table tr:nth-child(even) {background: #f8f8f8;}

a {text-decoration: none; color: blue;}
a:hover {text-decoration: none;}
.shadow {box-shadow:1px 1px 2px black, 0 0 7px #090304}
.radius {-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;}
.radius5 {-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}


/* === FULLSCREEN BACKGROUND FOR LOGIN === */
body.login {
  background: #5a5555;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
}

/* === LOGIN BOX === */
.loginbox {
  background: #1a1414;
  padding: 35px 40px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  color: #eee;
  text-align: left;
  min-width: 300px;
  animation: fadeIn .5s ease;
}

.loginbox h1 {
  margin-top: 0;
  margin-bottom: 25px;
  font-size: 24px;
  font-weight: 500;
  color: #ffb100;
  text-align: center;
}

/* input groups */
.loginbox .input-group {
  margin-bottom: 16px;
}

.loginbox label {
  display: inline-block;
  width: 80px;
  color: #ccc;
  font-size: 15px;
  vertical-align: middle;
}

.loginbox input[type="text"],
.loginbox input[type="password"] {
  width: calc(100% - 90px);
  padding: 8px 10px;
  background: #f5f8ff;
  border: none;
  border-radius: 4px;
  font-size: 15px;
  color: #333;
  box-sizing: border-box;
  outline: none;
  transition: 0.2s;
}

.loginbox input[type="text"]:focus,
.loginbox input[type="password"]:focus {
  box-shadow: 0 0 0 2px #ffb100;
}

/* button */
.loginbox .actions {
  text-align: right;
}

.loginbox input[type="submit"] {
  background: #ffb100;
  border: none;
  color: #111;
  padding: 8px 20px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
}

.loginbox input[type="submit"]:hover {
  background: #ffcc33;
}

/* animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* responsive */
@media (max-width: 480px) {
  .loginbox {
    width: 90%;
    padding: 25px;
  }
  .loginbox label {
    display: block;
    width: 100%;
    margin-bottom: 4px;
  }
  .loginbox input[type="text"],
  .loginbox input[type="password"] {
    width: 100%;
  }
  .loginbox .actions { text-align: center; }
}

/*        /////////////////////             */



.centerblock {
	margin-left: 220px;
	
}


.loginbox {
	border: 1px solid #001506;
	background: #140b0c;
	color: #fff;
	display: table;
	margin: auto;
	margin-top: 20px !important; 
	padding: 20px 30px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;	
	margin-bottom: 30px;
}






.dir, .file {cursor: pointer; padding-bottom: 4px 0; border-bottom: 1px solid #ccc;}
.file:hover {background: #D3F4D8;}
.dir:hover {background: #EFF4D3;}


#page_loading {
    position: fixed;
    top: 50; left: 40%;
    background: rgba(0,0,0,0.5);
    display: none;
	padding: 30px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
}

/* SVG-анимация (или GIF, если хочешь оставить старый) */
#page_loading img {
    width: 75px;
    height: 34px;
    opacity: 0.9;
    animation: spin 1.8s linear infinite;
}

#page_loading div {
    color: #fff;
    font-size: 16px;
    margin-top: 12px;
    letter-spacing: 1px;
    font-weight: 600;
    text-shadow: 0 0 5px rgba(0,0,0,0.4);
}

#page_body{min-height: calc(100vh - 42px); margin-left: 60px; padding-left: 5px;}

.box {
	min-width: 300px;
	margin: 10px auto; 
	background: #fff; 
	padding: 3px;
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;	
	box-shadow:0px 0px 3px 1px #8d8d8d;
}

.box h1 {
	display: block;
	padding: 5px; 
	font-size: 14px; 
	border-bottom: 1px solid #ccc; 
	margin: 3px;	
	margin: 3px -3px;
	
}

.box h2 {
	display: block;
	padding: 5px; 
	font-size: 12px; 
	border-bottom: 1px solid #ccc; 
	margin: 3px;	
}

.box h1 span  {
	float: right;
	font-size: 9px;
	padding: 0;
	margin: 0;
}

.box h1 span input[type=button] {
	font-size: 12px;
	margin-top: -5px
}

.box h3 {
	padding: 7px; 
	background: #ECECEC;	
	text-align: right;
}


.boxnp {
	min-width: 300px;
	max-width: calc(100% - 70px);
    margin: 10px auto;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 24px rgba(0,0,0,.08);
    padding: 14px 14px 18px;
	animation: fadein .6s ease;

}
.boxnp h1 {
    font: 600 20px/1.2 system-ui, Arial, sans-serif;
    margin: 0 0 10px;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.boxnp h1 select {
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 16px;
    background: #f9fafc;
}

.boxnp h1 input, .boxnp h1 button{
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 16px;
    background: #f9fafc;
}

.boxnp h2 {
	
	display: block;
	padding: 5px; 
	font-size: 12px; 
	border-bottom: 1px solid #ccc; 
	margin: 5px 0 0 0;
}

.boxnp h3 {
	padding: 7px; 
	background: #ECECEC;	
	text-align: right;
}

.boxnp h1 span input[type=button] {
	font-size: 12px;
	margin-top: -2px
}	


.boxnp h1 span  {
	float: right;
	font-size: 9px;
	padding: 0;
	margin: 0;
}

.cloud {
	-webkit-border-radius: 3px;
	-moz-border-radius: 3px;
	border-radius: 3px;
	border: 1px solid #ccc;
	background: #717D87;
	color: #fff;
	padding: 2px 5px;
	float: left;
	margin: 3px;
}

.finishbutton {
	font-weight: 600;
	color: #fff;
	background: #3D1C1C;
	border: 1px solid #976363;	
}

.mce-menubtn span {
  display: inline-block
}




.headcol {
  position: absolute;
  border-top-width: 1px;
  /*only relevant for first row*/
  margin-top: -1px;
  /*compensate for top border*/
}

.headcol:before {
  content: 'Row ';
}

.rowTotal{
	font-weight: 700;
	font-size: 14px;
}

.mainmenu i {
    width: 18px;              /* фиксированная ширина под иконку */
    text-align: center;       /* выравнивание иконки по центру */
    margin-right: 8px;        /* отступ справа между иконкой и текстом */
    color: #ccc;              /* базовый цвет иконок (можно поменять) */
}

.mainmenu a {
    display: flex;            /* иконка + текст по линии */
    align-items: center;
    padding: 6px 10px;
    text-decoration: none;
    color: #ddd;
    transition: background 0.2s, color 0.2s;
}

.mainmenu a:hover,
.mainmenu a.selected {
    background: #222;         /* подсветка при наведении/активе */
    color: #fff;
}

.mainmenu a:hover i,
.mainmenu a.selected i {
    color: #fff;              /* иконка подсвечивается вместе с текстом */
}

.mainmenu .submenu a {
    padding-left: 28px;       /* немного отступа слева для вложенных ссылок */
}




/* === Slim left menu with section titles + sticky admenu === */

/* колонка + выезжающая ширина */
#leftmenu{
  position: fixed; top:0; left:0;
  height: 100vh; width: 60px;                 /* свернуто */
  background:#141313; border-right:1px solid #373944;
  display:flex; flex-direction:column; overflow:hidden;
  transition: width .25s ease; z-index:9000;
}
#leftmenu div {overflow: visible;}
#leftmenu:hover{ width:220px; }

/* логотип */
#leftmenu .logo{ flex:0 0 auto; text-align:center; padding:12px 0; }
#leftmenu .logo img{ width:40px; transition:width .25s; }
#leftmenu:hover .logo img{ width:160px; }

/* область основного меню + “админ-низ” */
#leftmenu .mainmenu{ flex:1 1 auto; overflow-y:auto; padding-bottom:8px; }
#leftmenu .admenu{  flex:0 0 auto; margin-top:auto; border-top:1px solid #2a2a2a; padding-top:6px; }

/* иконки — единая сетка */
#leftmenu i{ width:22px; min-width:22px; text-align:center; font-size:16px; color:#cfcfcf; }

/* заголовки секций */
#leftmenu .titlemenu{
  display:flex; align-items:center; gap:10px;
  height:34px; padding:0 14px; margin-top:14px;
  color:#8e8e8e; font-weight:600; letter-spacing:.02em;
}
#leftmenu .titlemenu:first-child{ margin-top:8px; }
#leftmenu .titlemenu span{
  font-size:12px; text-transform:uppercase; letter-spacing:.06em;
}

/* пункты подменю */
#leftmenu .submenu a{
  display:flex; align-items:center; gap:12px;
  height:38px; padding:0 14px; margin-left:10px;
  color:#d7d7d7; text-decoration:none; white-space:nowrap; border-radius:4px;
}
#leftmenu .submenu a:hover, #leftmenu .submenu a.selected{ background:#222; color:#fff; }

/* ссылки в admenu */
#leftmenu .admenu a{
  display:flex; align-items:center; gap:12px;
  height:38px; padding:0 14px; color:#cfd6ff; text-decoration:none; white-space:nowrap;
}
#leftmenu .admenu a:hover, #leftmenu .admenu a.selected{ background:#262B4C; color:#fff; }

/* — свернуто: показываем только иконки — */
#leftmenu:not(:hover) .titlemenu span,
#leftmenu:not(:hover) .submenu a span,
#leftmenu:not(:hover) .admenu a span{ display:none !important; }

#leftmenu:not(:hover) .titlemenu,
#leftmenu:not(:hover) .submenu a,
#leftmenu:not(:hover) .admenu a{
  justify-content:center; padding:0; margin-left:0;
}

/* контент справа */
.centerblock{ margin-left:60px; transition:margin-left .25s; }
/* если хочешь, чтобы контент уезжал при раскрытии — раскомментируй: */
/* #leftmenu:hover ~ .centerblock{ margin-left:220px; } */


/* === Mobile-friendly selects === */
@media screen and (max-width: 768px) {
  select {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    font-size: 14px;
  }

  /* если селекты находятся внутри таблиц или flex-блоков */
  table select,
  .flex select,
  form select {
    width: 100%;
    max-width: 100%;
  }

  /* если есть фиксированные колонки или padding, добавим небольшой отступ */
  select {
    margin: 4px 0;
  }

  /* если где-то используется inline-select */
  td select,
  th select {
    display: block;
  }
}


/* === Центральный приветственный экран === */
.dashboard-welcome {
  display: flex;
  justify-content: center;
  align-items: center;
  height: calc(100vh - 20px);
  background: #3d3a3a;
  color: #fff;
  margin-left: -5px;
  text-align: center;
  font-family: 'Segoe UI', sans-serif;
  animation: fadein .6s ease;
}

.welcome-inner {
  max-width: 480px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.welcome-inner h1 {
  font-size: 26px;
  font-weight: 400;
  margin: 20px 0 10px;
}

.welcome-inner h1 span {
  color: #ffb100;
  font-weight: 600;
}

.welcome-inner p {
  font-size: 15px;
  color: #ccc;
}

.welcome-logo {
  width: 120px;
  opacity: 0.9;
}

@keyframes fadein {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* === ФИКСИРОВАННЫЙ НИЖНИЙ ФУТЕР === */
.page-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 26px;
  background: #1b1b1b;
  border-top: 1px solid #2a2a2a;
  color: #bbb;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-right: 20px;
  z-index: 900;
}

/* отступ слева под ширину бокового меню */
.page-footer span:first-child {
  margin-left: 70px;  /* ← здесь нужный отступ */
}

/* текст справа */
.page-footer .footer-note {
  color: #888;
  font-style: italic;
  font-size: 12px;
  opacity: 0.8;
}

/* адаптив: на узких экранах */
@media (max-width: 600px) {
  .page-footer {
    flex-direction: column;
    height: auto;
    padding: 6px 0;
    text-align: center;
    gap: 2px;
  }
  .page-footer span:first-child {
    margin-left: 0;
  }
}

