

/* Start:/local/templates/monitoring/styles.css?177572238917593*/
/* Общие стили */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, 
    Ubuntu, Cantarell, 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.2;
  background-color: #f5f7fa;
  color: #2c3e50;
}

.content {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;  /* замените на height: 100vh */
  height: 100vh;      /* добавьте эту строку */
  margin: 0 auto;
  padding: 5px 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;   /* добавьте эту строку */
}

/* Шапка - десктопная версия */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  flex-wrap: wrap;
  gap: 10px;
}

.block-time, 
.block-duty,
.block-specialist, 
.block-auth,
.block-diagnosys {
  padding: 8px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

.block-time {
  background-color: #e3f2fd;
  color: #1976d2;
}

#server-datetime {
    font-family: monospace;
    font-size: 14px;
	margin: 0 auto;
}

.block-duty {
  background-color: #e8f5e9;
  color: #388e3c;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.block-specialist {
  background-color: #f3f5e8;
  color: #da7922;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.block-auth {
  display: flex;
  align-items: center;
  gap: 15px;
  background-color: #f3e5f5;
  color: #8e24aa;
}

.operator-name,
.specialist-name,
.user-name {
  font-weight: 600;
}

.action-btn {
  padding: 4px 8px;
  background-color: #2196f3;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s;
  white-space: nowrap;
  text-decoration: none;
}

.action-btn:hover {
  background-color: #1976d2;
}

.btn-logout {
  padding: 6px 12px;
  background-color: #f44336;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.3s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-logout:hover {
  background-color: #d32f2f;
}

/* Мобильная версия */
@media (max-width: 768px) {
  .content {
    padding: 5px 10px;
  }

  .block-diagnosys {
	text-align: center;
	}
  
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 8px;
  }
  
  .block-time, 
  .block-duty,
  .block-specialist, 
  .block-auth
  .block-diagnosys {
    width: 100%;
    padding: 10px;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
  }
  
  .block-duty,
  .block-specialist {
    flex-direction: column;
    /*align-items: flex-start;*/
    gap: 5px;
  }
  
  .block-duty > div,
  .block-specialist > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
  }
  
  .block-auth {
    justify-content: center;
    gap: 5px;
    flex-direction: column;
  }
  
  .action-btn {
    padding: 5px 10px;
    font-size: 13px;
  }
  
  .btn-logout {
    padding: 6px 15px;
    font-size: 14px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .header {
    padding: 10px;
  }
  
  .block-time, 
  .block-duty,
  .block-specialist, 
  .block-auth {
    padding: 8px;
    font-size: 12px;
  }
  
  .operator-name .name,
  .specialist-name,
  .user-name {
    word-break: break-word;
    max-width: 120px;
  }
  
  .action-btn {
    padding: 4px 8px;
    font-size: 12px;
  }
  
  .btn-logout {
    padding: 5px 12px;
    font-size: 13px;
  }
}

/* Основной контент */
.dashboard-container {
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1;           
  min-height: 0;     
  overflow: hidden;   
}

.monitoring-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;          
  flex-direction: column; 
  /*height: 100%;*/           
}

.card-title {
  display: flex;
  justify-content: space-between;
  padding: 5px 10px;
  background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
  color: #2c3e50;
  font-size: 14px;
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  overflow-y: auto;      
  padding: 0 5px 5px;
  flex: 1;               
  min-height: 0;         
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.table-main th, 
.table-rhob th {
  background-color: #3498db;
  color: white;
  padding: 8px 8px;
  text-align: center;
  font-weight: 500;
}

.table-main td, 
.table-rhob td {
  padding: 8px 8px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
}

.table-main tr:nth-child(even) {
  background-color: #f9f9f9;
}

.table-main tr:hover {
  background-color: #f1f8fe;
}

.table-main tr:nth-child(2n+3) {
  border-bottom: 2px solid #e0e0e0;
}

/* Кнопки действий */
.action-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 15px 0;
}

.action-btn {
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
}

.send-message {
  background-color: #4caf50;
  color: white;
}

.send-message:hover {
  background-color: #388e3c;
  box-shadow: 0 4px 8px rgba(76, 175, 80, 0.2);
}

.alert-btn {
  background-color: #ff9800;
  color: white;
}

.alert-btn:hover {
  background-color: #f57c00;
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

.back-to-work-btn {
  background-color: #33b638;
  color: white;
}

.back-to-work-btn:hover {
  background-color: #259129;
  box-shadow: 0 4px 8px rgba(255, 152, 0, 0.2);
}

.btn-logout {
	display: inline-block;
	padding: 6px 12px;
	background-color: #e95d42;
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-family: Arial, sans-serif;
	font-size: 14px;
	transition: background-color 0.3s;
}
.btn-logout:hover {
	background-color: #d32f2f;
}

/* Анимации и состояния */
.default-bg td {
  background-color: #cdf7cd !important;
}

.blinking-row td {
  animation: blink 1s infinite alternate;
}

@keyframes blink {
  from {
	background-color: #ffdddd;
  }
  to {
	background-color: #ff9999;
  }
}

.table-main td {
  transition: background-color 0.3s ease;
}

.table-main td[rowspan] {
  cursor: pointer;
  color: #1976d2;
  font-weight: 500;
}

.table-main td[rowspan]:hover {
  color: #0d47a1;
  text-decoration: underline;
}

/* Адаптивность */
@media (max-width: 1200px) {
  .header {
	/* flex-direction: column;
	gap: 10px;
	align-items: flex-start; */
  }
  
  .action-buttons {
	/* flex-direction: column;
	align-items: center; */
  }
  
  .action-btn {
	/* width: 100%;
	max-width: 300px; */
  }
}

@media (max-width: 768px) {
  .content {
	padding: 10px;
  }
  
  .block-time, 
  .block-duty, 
  .block-auth {
	width: 100%;
  }
}

/* Стили модального окна */
.modal-all {
  display: none;
  position: fixed;
  z-index: 1050;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease-out;
}

.modal-all-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  width: 85%;
  max-width: 1000px;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.modal-all-header {
  padding: 20px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-all-title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.close:hover {
  color: #f1f1f1;
  transform: scale(1.1);
}

.modal-all-body {
  padding: 20px;
  overflow-y: auto;
  flex-grow: 1;
}

.modal-all-footer {
  padding: 15px 20px;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  text-align: right;
}

.modal-close-btn {
  padding: 8px 20px;
  background-color: #6c757d;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.modal-close-btn:hover {
  background-color: #5a6268;
}

/* Стили таблицы в модальном окне */
#modalTable {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

#modalTable th {
  background-color: #3498db;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
  position: sticky;
  top: 0;
}

#modalTable td {
  padding: 10px 15px;
  border-bottom: 1px solid #e9ecef;
}

#modalTable tr:nth-child(even) {
  background-color: #f8f9fa;
}

#modalTable tr:hover {
  background-color: #f1f8fe;
}

/* Анимации */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { 
	opacity: 0;
	transform: translateY(-50px);
  }
  to { 
	opacity: 1;
	transform: translateY(0);
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .modal-content {
	width: 95%;
	margin: 10% auto;
  }
  
  .modal-header {
	padding: 15px;
  }
  
  .modal-body {
	padding: 15px;
  }
  
  #modalTable th, 
  #modalTable td {
	padding: 8px 10px;
	font-size: 14px;
  }
}

/* Стили модального окна */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  animation: fadeIn 0.3s;
}

.modal-content {
  background-color: #fefefe;
  margin: 10% auto;
  padding: 0;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  overflow: hidden;
}

.modal-header {
  padding: 16px 24px;
  background: #3498db;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  margin: 0;
  font-size: 20px;
}

.modal-close,
.modal-specialist-close {
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.modal-close:hover {
  transform: scale(1.2);
}

.modal-body {
  padding: 24px;
  font-size: 16px;
  line-height: 1.5;
}

.modal-footer {
  padding: 16px 24px;
  background: #f8f9fa;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.cancel-btn,
.cancel-specialist-btn {
  padding: 8px 16px;
  background: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.cancel-btn:hover {
  background: #e0e0e0;
}

.confirm-link {
  padding: 8px 16px;
  background: #e74c3c;
  color: white;
  text-decoration: none;
  border-radius: 4px;
  transition: 0.3s;
  display: inline-block;
}

.confirm-link:hover {
  background: #c0392b;
}

/* Анимация появления */
@keyframes fadeIn {
  from {opacity: 0;}
  to {opacity: 1;}
}

/* Стиль кнопки смены оператора */
.change-operator-btn {
  padding: 8px 14px;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  font-size: 14px;
}

.change-operator-btn:hover {
  background-color: #2980b9;
}


/* Общий стиль для неактивных кнопок */
.btn-disabled,
button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled {
    background-color: #e0e0e0 !important;
    color: #9e9e9e !important;
    border-color: #bdbdbd !important;
    cursor: not-allowed !important;
    opacity: 0.7;
    box-shadow: none !important;
    pointer-events: none;
}

/* Специфичные стили для кнопки смены оператора */
.change-btn:disabled {
    background-color: #e0e0e0 !important;
    color: #757575 !important;
    border: 1px solid #bdbdbd !important;
}

/* Стиль для неактивных ссылок, оформленных как кнопки */
a.btn-disabled {
    position: relative;
}

a.btn-disabled::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.5);
    cursor: not-allowed;
}

.yellow-bg td {
    background-color: #fff3cd !important;
}

.orange-bg td {
    background-color: #fbbe87 !important;
}

/* Стили для ряда с двумя таблицами */
/* Стили для ряда с двумя таблицами */
.tables-row {
  display: flex;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  flex: 1;               /* добавьте */
  min-height: 0;         /* добавьте */
  overflow: hidden;      /* добавьте */
}

.table-col {
  flex: 1;
  min-width: 0;
  min-height: 0;         /* добавьте */
  display: flex;         /* добавьте */
  flex-direction: column; /* добавьте */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {

  .tables-row {
    flex-direction: column;
    gap: 15px;
    flex: none;           /* отключаем flex: 1 для мобильных */
    overflow: visible;    /* меняем overflow на visible */
  }
  
  .table-col {
    width: 100%;
    min-height: auto;     /* сбрасываем min-height */
    height: auto;         /* auto вместо 100% */
  }
  
  .monitoring-card {
    height: auto;         /* auto вместо 100% */
    max-height: none;     /* убираем ограничение высоты */
  }
  
  .table-container {
    overflow-y: visible;  /* убираем внутренний скролл */
    max-height: none;     /* убираем ограничение */
  }
}

/* Дополнительные стили для ячеек таблиц */
.table-main td:empty::before {
    content: "—";
    color: #999;
    font-style: italic;
}

.table-export tr td {
	padding: 5px 4px;
}

@media (max-width: 768px) {
  .content {
    padding: 5px 10px;
    height: auto;           /* изменяем height: auto вместо 100vh */
    min-height: 100vh;      /* оставляем min-height */
    overflow-y: auto;       /* добавляем вертикальный скролл */
  }
  
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 8px;
  }
  
  .table-main th, 
  .table-main td {
    padding: 4px 6px;
    font-size: 12px;
  }
  
  .tables-row {
    gap: 10px;
  }
}

.row-success {
    background-color: #cdf7cd !important; /* светло-зеленый для нулевых значений */
}

.row-warning {
    background-color: #ff9999 !important; /* светло-красный для ненулевых значений */
}

#file-monitoring-table tr {
	 background-color: #cdf7cd
}

.unimas-table-container {
	flex: 0 0 30%
}

.export-table-container {
	flex: 0 0 70%
}

/* Для таблицы файлового мониторинга */
#file-monitoring-body tr.blinking-row {
    animation: blink 1s infinite;
    background-color: #ffcccc !important;
}

#file-monitoring-body tr.yellow-bg {
    background-color: #fff3cd !important;
}

#file-monitoring-body tr.orange-bg {
    background-color: #ffe5b4 !important;
}

#file-monitoring-body tr.default-bg {
    background-color: transparent;
}


/* Кастомные диалоги */
.custom-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.custom-dialog {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    min-width: 320px;
    max-width: 450px;
    animation: slideIn 0.2s ease-out;
}

.custom-dialog-header {
    padding: 20px 24px 0 24px;
}

.custom-dialog-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.custom-dialog-content {
    padding: 16px 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.5;
}

.custom-dialog-footer {
    padding: 16px 24px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.custom-dialog-btn {
    padding: 8px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.custom-dialog-btn-cancel {
    background: #f0f0f0;
    color: #666;
}

.custom-dialog-btn-cancel:hover {
    background: #e0e0e0;
}

.custom-dialog-btn-confirm {
    background: #4caf50;
    color: white;
}

.custom-dialog-btn-confirm:hover {
    background: #009900;
}

.custom-dialog-btn-primary {
    background: #007bff;
    color: white;
}

.custom-dialog-btn-primary:hover {
    background: #0056b3;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.blinking-green {
  animation: blink-green 1.5s step-start infinite !important;
  pointer-events: none;
  cursor: not-allowed;
}

@keyframes blink-green {
  0% {
    background-color: #4CAF50;
  }
  50% {
    background-color: #b4deb5;
  }
  100% {
    background-color: #4CAF50;
  }
}
/* End */
/* /local/templates/monitoring/styles.css?177572238917593 */
