/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #232e3c;
  color: #e1e1e1;
  line-height: 1.6;
}

/* Screen management */
.screen {
  display: none;
  min-height: 100vh;
}

.screen.active {
  display: block;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Login screen */
#loginScreen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-content {
  background: #2b3544;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  width: 100%;
  max-width: 400px;
  border: 1px solid #3a4553;
}

.login-content h1 {
  color: #e1e1e1;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #b0b0b0;
  margin-bottom: 30px;
}

/* Forms */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-label {
  display: block;
  margin-bottom: 5px;
  color: #b0b0b0;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 12px;
  border: 1px solid #3a4553;
  border-radius: 5px;
  font-size: 16px;
  transition: border-color 0.3s;
  background-color: #1c2733 !important;
  color: #ffffff !important;
}

.form-control:focus {
  outline: none;
  border-color: #667eea;
  background-color: #232e3c !important;
}

/* Buttons */
.btn {
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}

.btn--primary {
  background: #667eea;
  color: white;
}

.btn--primary:hover {
  background: #5a67d8;
}

.btn--outline {
  background: transparent;
  border: 1px solid #3a4553;
  color: #e1e1e1;
}

.btn--outline:hover {
  background: #3a4553;
}

.btn--success {
  background: #48bb78;
  color: white;
}

.btn--success:hover {
  background: #38a169;
}

.btn--danger {
  background: #e53e3e;
  color: white;
}

.btn--danger:hover {
  background: #c53030;
}

.btn--sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn--outline {
  background: transparent;
  border: 2px solid #667eea;
  color: #667eea;
  transition: all 0.3s;
  min-width: 120px;
}

.btn--outline:hover {
  background: #667eea;
  color: white;
}

.btn--danger {
  background: #dc3545;
  color: white;
  border: 2px solid #dc3545;
  transition: all 0.3s;
  min-width: 120px;
}

.btn--danger:hover {
  background: #c82333;
  border-color: #bd2130;
}

.btn--full-width {
  width: 100%;
}

.btn-header {
  background: transparent;
  border: 1px solid #3a4553;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s;
  color: #e1e1e1;
}

.btn-header:hover {
  background: #3a4553;
}

/* App header */
.app-header {
  background: #2b3544;
  padding: 15px 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid #3a4553;
}

.app-header h2 {
  font-size: 18px;
  color: #e1e1e1;
}

/* Month navigation */
.month-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  background: #2b3544;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a4553;
}

.month-navigation h3 {
  font-size: 20px;
  color: #e1e1e1;
}

/* Calendar grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  background: #2b3544;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
  border: 1px solid #3a4553;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  position: relative;
  background: #1c2733;
  border: 1px solid #3a4553;
}

.calendar-day:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.day-number {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #e1e1e1;
}

.day-status {
  font-size: 12px;
  color: #b0b0b0;
}

.day-schedule {
  font-size: 10px;
  color: #8a8a8a;
  text-align: center;
  margin-top: 2px;
  line-height: 1.2;
}

/* Calendar day states */


.calendar-day--absent {
  background-color: #dc3545;
  border: 1px solid #dc3545;
  color: white;
}

.calendar-day--absent .day-number {
  color: white;
}

.calendar-day--absent .day-status {
  color: #ffcdd2;
}

.calendar-day--absent .day-schedule {
  color: #ffb3ba;
}

.calendar-day--weekend {
  background-color: #495057;
  border: 1px solid #495057;
  color: #e1e1e1;
}

.calendar-day--weekend .day-number {
  color: #e1e1e1;
}

.calendar-day--weekend .day-status {
  color: #b0b0b0;
}

.calendar-day--weekend .day-schedule {
  color: #999;
}



.calendar-day--planned {
  background-color: #ffc107;
  border: 1px solid #ffc107;
  color: #ffffff;
}

.calendar-day--planned .day-number {
  color: #ffffff;
}

.calendar-day--planned .day-status {
  color: #ffffff;
}

.calendar-day--planned .day-schedule {
  color: #ffffff;
}

.calendar-day--present {
  background-color: #28a745;
  border: 1px solid #28a745;
  color: white;
}

.calendar-day--present .day-number {
  color: white;
}

.calendar-day--present .day-status {
  color: #ffffff;
}

.calendar-day--present .day-schedule {
  color: #ffffff;
}

/* Legend */
.legend {
  display: flex;
  justify-content: center;
  gap: 30px;
  background: #2b3544;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a4553;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #e1e1e1;
}

.legend-color {
  width: 20px;
  height: 20px;
  border-radius: 4px;
}

.legend-color--absent {
  background-color: #dc3545;
  border: 1px solid #dc3545;
}

.legend-color--weekend {
  background-color: #495057;
  border: 1px solid #495057;
}

.legend-color--planned {
  background-color: #ffc107;
  border: 1px solid #ffc107;
}

.legend-color--present {
  background-color: #28a745;
  border: 1px solid #28a745;
}

/* Statistics */
.stats-period {
  text-align: center;
  margin-bottom: 30px;
}

.stats-period h3 {
  font-size: 24px;
  color: #e1e1e1;
}

.stats-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.card {
  background: #2b3544;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  border: 1px solid #3a4553;
}

.card__body {
  padding: 20px;
  text-align: center;
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: #e1e1e1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 14px;
  color: #b0b0b0;
}

.text-warning {
  color: #f0ad4e;
}

.text-error {
  color: #dc3545;
}

/* Detailed statistics */
.detailed-stats {
  background: #2b3544;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.detailed-stats h4 {
  margin-bottom: 20px;
  color: #333;
}

.detailed-list {
  max-height: 400px;
  overflow-y: auto;
}

.detail-item {
  padding: 15px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-item:last-child {
  border-bottom: none;
}

.detail-date {
  font-weight: 500;
  color: #333;
}

.detail-info {
  display: flex;
  gap: 20px;
  align-items: center;
}

.detail-time {
  color: #b0b0b0;
  font-size: 14px;
}

.detail-status {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}


.status--weekend {
  background-color: #e9ecef;
  color: #6c757d;
}


.status--planned {
  background-color: #ffc107;
  color: #000000;
}

.status--present {
  background-color: #28a745;
  color: #ffffff;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  padding: 20px;
}

.modal.active {
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #2b3544;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #3a4553;
  color: #e1e1e1;
}

/* Stats modal specific styles */
#statsModal .modal-content {
  max-width: 900px;
}

#statsModal .admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #2b3544;
}

#statsModal .admin-table thead {
  background-color: #3a4553;
  border-bottom: 2px solid #495057;
  position: sticky;
  top: 0;
  z-index: 10;
}

#statsModal .admin-table th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  color: #e1e1e1;
  white-space: nowrap;
}

#statsModal .admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #3a4553;
  font-size: 14px;
  color: #e1e1e1;
}

#statsModal .admin-table tbody tr:hover {
  background-color: #3a4553;
}

#statsModal .detail-status {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.modal-header {
  padding: 20px;
  border-bottom: 1px solid #3a4553;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  color: #e1e1e1;
}

.btn-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #b0b0b0;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-close:hover {
  color: #e1e1e1;
}

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

.day-details {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.detail-label {
  color: #b0b0b0;
  font-weight: 500;
  flex: 0 0 140px;
}

.detail-value {
  color: #e1e1e1;
  font-weight: 600;
  text-align: right;
  flex: 1;
}

.detail-value.status {
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* Modal sections */
.detail-section {
  background-color: #1c2733;
  border-radius: 8px;
  padding: 15px;
  margin-top: 15px;
  border: 1px solid #3a4553;
}

.section-title {
  font-weight: bold;
  margin-bottom: 12px;
  color: #e1e1e1;
  font-size: 14px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #3a4553;
}

/* Breadcrumb navigation */
.breadcrumb {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  font-size: 14px;
  color: #b0b0b0;
}

.breadcrumb-item {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumb-item:hover {
  color: #5a67d8;
}

.breadcrumb-item.active {
  color: #333;
  font-weight: 500;
}

.breadcrumb-separator {
  margin: 0 10px;
  color: #999;
}

/* Menu grid */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.menu-card {
  background: #2b3544;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.3s;
  text-align: center;
  border: 1px solid #3a4553;
}

.menu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  background: #3a4553;
}

.menu-card-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.menu-card-title {
  font-size: 20px;
  margin-bottom: 10px;
  color: #e1e1e1;
}

.menu-card-subtitle {
  font-size: 14px;
  font-weight: 400;
  color: #b8c5d1;
  line-height: 1.4;
}

/* Специальные стили для блока настроек без иконки */
.menu-card.telegram-only {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.menu-card.telegram-only .menu-card-title {
  margin-bottom: 0;
  line-height: 1.4;
}

.menu-card-description {
  color: #b0b0b0;
  font-size: 14px;
  line-height: 1.5;
}

/* News section */
.news-container {
  max-width: 800px;
  margin: 0 auto;
}

.news-item {
  background: #2b3544;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a4553;
}

.news-date {
  color: #8a8a8a;
  font-size: 12px;
  margin-bottom: 10px;
}

.news-title {
  font-size: 20px;
  margin-bottom: 15px;
  color: #e1e1e1;
}

.news-content {
  color: #b0b0b0;
  line-height: 1.6;
  margin-bottom: 15px;
}

.news-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.news-loading {
  text-align: center;
  padding: 20px;
  color: #b0b0b0;
}

.news-read-more {
  margin-top: 10px;
}

/* Full news view */
.news-full {
  background: #2b3544;
  border-radius: 8px;
  padding: 30px;
  max-width: 800px;
  margin: 0 auto;
  border: 1px solid #3a4553;
}

.news-full-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.news-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  color: #8a8a8a;
  font-size: 14px;
}

.news-author {
  color: #8a8a8a;
}

.news-full-title {
  font-size: 28px;
  margin-bottom: 20px;
  color: #e1e1e1;
  line-height: 1.3;
}

.news-full-content {
  color: #b0b0b0;
  line-height: 1.8;
  font-size: 16px;
}

/* Salary calculator */
.salary-calculator {
  max-width: 600px;
  margin: 0 auto;
}

.salary-item {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  border-bottom: 1px solid #3a4553;
}

.salary-item:last-child {
  border-bottom: none;
}

.salary-value {
  font-weight: 600;
  color: #e1e1e1;
}

.salary-total {
  margin-top: 15px;
  padding-top: 20px;
  border-top: 2px solid #e1e1e1;
  font-size: 18px;
}

/* Vacation schedule */
.vacation-schedule {
  max-width: 700px;
  margin: 0 auto;
}

.vacation-item {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
}

.vacation-period {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.vacation-type {
  color: #b0b0b0;
  margin-bottom: 10px;
}

.vacation-status {
  display: inline-block;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.status--approved {
  background: #d4edda;
  color: #155724;
}

.status--pending {
  background: #fff3cd;
  color: #856404;
}

/* HR services */
.hr-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  max-width: 800px;
  margin: 0 auto;
}

.hr-card {
  background: #2b3544;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a4553;
}

.hr-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #e1e1e1;
}

.hr-card p {
  color: #b0b0b0;
  margin-bottom: 20px;
  line-height: 1.5;
}

/* Placeholder message */
.placeholder-message {
  text-align: center;
  padding: 40px;
  color: #8a8a8a;
  background: #1c2733;
  border-radius: 8px;
  margin-top: 30px;
  border: 1px solid #3a4553;
}

.placeholder-message p:first-child {
  font-size: 18px;
  margin-bottom: 10px;
}

/* Back button */
.btn-back {
  background: transparent;
  border: 1px solid #3a4553;
  color: #e1e1e1;
}

.btn-back:hover {
  background: #3a4553;
}

/* Department stats */
.department-stats-header {
  background: #2b3544;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
  border: 1px solid #3a4553;
}

.department-stats-header h3 {
  color: #e1e1e1;
  margin-bottom: 5px;
  font-size: 24px;
}

.stats-period-text {
  color: #b0b0b0;
  font-size: 16px;
  margin: 0;
}

.department-stats-table-container {
  background: #2b3544;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.department-stats-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.department-stats-table thead {
  background-color: #3a4553;
  border-bottom: 2px solid #495057;
}

.department-stats-table th {
  padding: 12px 8px;
  text-align: center;
  font-weight: 600;
  color: #e1e1e1;
  border: 1px solid #495057;
  white-space: nowrap;
}

.department-stats-table td {
  padding: 10px 8px;
  border: 1px solid #495057;
  text-align: center;
  color: #e1e1e1;
  vertical-align: middle;
}

.department-stats-table tbody tr:hover {
  background-color: #3a4553;
}

.department-stats-table tbody tr:nth-child(even) {
  background-color: #1c2733;
}

.department-stats-table .employee-name {
  text-align: left;
  font-weight: 500;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.department-stats-table .date-cell {
  font-weight: 500;
  color: #e1e1e1;
  min-width: 80px;
}

.department-stats-table .time-cell {
  font-family: 'Courier New', monospace;
  min-width: 70px;
}

.department-stats-table .weekend-row {
  background-color: #495057 !important;
}

.department-stats-table .weekend-row:hover {
  background-color: #5a6268 !important;
}

.department-stats-table .weekend-row td {
  color: #e1e1e1 !important;
}

.loading-message {
  text-align: center;
  padding: 40px;
  color: #b0b0b0;
  background: #2b3544;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #3a4553;
}

.loading-message p {
  margin: 0;
  font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  
  /* News mobile styles */
  .news-item {
    padding: 20px;
  }
  
  .news-title {
    font-size: 18px;
  }
  
  .news-image {
    height: 150px;
  }
  
  .news-full {
    padding: 20px;
  }
  
  .news-full-title {
    font-size: 24px;
  }
  
  .news-full-image {
    height: 250px;
  }
  
  .news-meta {
    flex-direction: column;
    gap: 10px;
  }
  
  .calendar-grid {
    gap: 3px;
    padding: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }
  
  .calendar-day {
    min-height: 60px;
    padding: 4px;
  }
  
  .day-number {
    font-size: 14px;
    margin-bottom: 2px;
  }
  
  .day-status {
    font-size: 9px;
    line-height: 1.1;
  }
  
  .day-schedule {
    font-size: 8px;
    line-height: 1.1;
  }
  
  .stats-cards {
    grid-template-columns: 1fr;
  }
  
  .legend {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
  }
  
  .legend-item {
    width: 100%;
    justify-content: flex-start;
  }
  
  /* Department stats table mobile adaptation */
  .department-stats-table-container {
    overflow-x: auto;
    border-radius: 8px;
  }
  
  .department-stats-table {
    font-size: 11px;
    min-width: 600px;
  }
  
  .department-stats-table th {
    padding: 8px 4px;
    font-size: 10px;
  }
  
  .department-stats-table td {
    padding: 8px 4px;
    font-size: 11px;
  }
  
  .department-stats-table .employee-name {
    max-width: 100px;
    font-size: 10px;
  }
  
  .department-stats-table .date-cell {
    min-width: 60px;
    font-size: 10px;
  }
  
  .department-stats-table .time-cell {
    min-width: 55px;
    font-size: 10px;
  }
  
  .department-stats-header h3 {
    font-size: 18px;
  }
  
  .stats-period-text {
    font-size: 14px;
  }
}
/* Settings Screen Styles */
.settings-content {
  max-width: 600px;
  margin: 0 auto;
}

/* Настройки - убираем светлый фон карточек */
.settings-content .card {
  background: #2b3544 !important;
  border: 1px solid #3a4553 !important;
}

#settingsScreen .card {
  background: #2b3544 !important;
  border: 1px solid #3a4553 !important;
}

.setting-item {
  padding: 15px 0;
  border-bottom: 1px solid #3a4553;
}

.setting-item:last-child {
  border-bottom: none;
}

.setting-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.setting-label {
  font-weight: 500;
  color: #b8c5d1;
}

.setting-value {
  color: #e1e1e1;
  font-weight: 600;
}

.setting-actions {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #3a4553;
}

.setting-warning {
  margin-top: 20px;
  padding: 15px;
  background-color: #3a2a20;
  border-left: 4px solid #f39c12;
  border-radius: 5px;
}

.setting-warning p {
  margin: 5px 0;
  font-size: 14px;
  color: #f39c12;
}

.setting-warning strong {
  color: #e67e22;
}

/* Telegram-only elements */
.telegram-only {
  display: none \!important;
}

/* Show telegram-only elements when in Telegram */
body.in-telegram .telegram-only {
  display: block \!important;
}

body.in-telegram .menu-card.telegram-only {
  display: flex \!important;
}

/* КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОГО TELEGRAM - НАЧАЛО */
/* Принудительные цвета для всех платформ */
.calendar-day--present,
.calendar-day.calendar-day--present {
  background-color: #28a745 !important;
  background: #28a745 !important;
  border-color: #28a745 !important;
}

.calendar-day--present *,
.calendar-day.calendar-day--present * {
  color: #ffffff !important;
}

.calendar-day--planned,
.calendar-day.calendar-day--planned {
  background-color: #e0a800 !important;
  background: #e0a800 !important;
  border-color: #e0a800 !important;
}

.calendar-day--planned *,
.calendar-day.calendar-day--planned * {
  color: #ffffff !important;
}

.calendar-day--absent,
.calendar-day.calendar-day--absent {
  background-color: #dc3545 !important;
  background: #dc3545 !important;
  border-color: #dc3545 !important;
}

.calendar-day--absent *,
.calendar-day.calendar-day--absent * {
  color: #ffffff !important;
}

.calendar-day--weekend,
.calendar-day.calendar-day--weekend {
  background-color: #495057 !important;
  background: #495057 !important;
  border-color: #495057 !important;
}

.calendar-day--weekend *,
.calendar-day.calendar-day--weekend * {
  color: #e1e1e1 !important;
}

/* Уменьшение текста статусов на мобильных */
@media screen and (max-width: 600px) {
  .calendar-day .day-status {
    font-size: 8px !important;
    line-height: 1.0 !important;
  }
  
  .calendar-day .day-schedule {
    font-size: 6px !important;
    line-height: 1.0 !important;
  }
  
  .calendar-day .day-number {
    font-size: 11px !important;
  }
}
/* КРИТИЧЕСКИЕ ИСПРАВЛЕНИЯ ДЛЯ МОБИЛЬНОГО TELEGRAM - КОНЕЦ */

