

/* Start:/bitrix/templates/monitoring/styles.css?175671626912033*/
/* Общие стили */
*,
*::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.5;
  background-color: #f5f7fa;
  color: #2c3e50;
}

.content {
  width: 100%;
  max-width: 1440px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Шапка - десктопная версия */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  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 {
  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;
}

.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;
  }
  
  .header {
    flex-direction: column;
    align-items: stretch;
    padding: 15px;
    gap: 8px;
  }
  
  .block-time, 
  .block-duty,
  .block-specialist, 
  .block-auth {
    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: 20px;
}

.monitoring-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card-title {
  padding: 15px 20px;
  background: linear-gradient(135deg, #c3cfe2 0%, #f5f7fa 100%);
  color: #2c3e50;
  font-size: 18px;
  font-weight: 600;
}

.table-container {
  overflow-x: auto;
  padding: 0 10px 10px;
}

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

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

.table-main td, 
.table-rhob td {
  padding: 10px 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;
}
/* End */
/* /bitrix/templates/monitoring/styles.css?175671626912033 */
