[source: 2]* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: #f4f6f9;
  color: #333;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Экран авторизации */
.auth-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.auth-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.auth-card h2 {
  margin-bottom: 20px;
  color: #1a73e8;
  text-align: center;
}

.auth-error {
  background: #fde8e8;
  color: #c53030;
  padding: 10px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: center;
}

.form-group {
  margin-bottom: 15px;
}

.form-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: 600;
  font-size: 14px;
}

.form-control {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.auth-card input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 14px;
}

.btn-primary {
  width: 100%;
  padding: 11px;
  background: #1a73e8;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #1557b0;
}

.auth-switch {
  margin-top: 20px;
  text-align: center;
  font-size: 14px;
}

.auth-switch a {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 600;
}

/* Шапка приложения */
.app-container {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  padding: 20px;
}

.app-header {
  background: white;
  padding: 15px 20px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 20px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 15px;
}

.btn-secondary-small {
  padding: 5px 12px;
  background: #e4e6eb;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
}

.btn-secondary-small:hover {
  background: #d8dadf;
}

.lang-switcher {
  display: flex;
  gap: 5px;
}

.lang-btn {
  padding: 5px 10px;
  border: 1px solid #ccc;
  background: white;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
}

.lang-btn.active {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

/* Навигация по вкладкам */
.tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  padding: 12px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.tab-btn.active {
  background: #1a73e8;
  color: white;
  border-color: #1a73e8;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Календарь */
.calendar-controls {
  background: white;
  padding: 15px;
  border-radius: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.date-selectors {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-selectors select {
  padding: 6px 10px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

.btn-secondary {
  padding: 7px 15px;
  background: #e4e6eb;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: #d8dadf;
}

.weekdays-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  text-align: center;
  font-weight: bold;
  color: #666;
  margin-bottom: 8px;
  font-size: 14px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

/* Четкие плитки дней календаря со средней обводкой */
.calendar-day {
  background: #ffffff;
  border-radius: 8px;
  padding: 10px;
  min-height: 85px;
  border: 2px solid #cbd5e1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.15s ease;
}

.calendar-day:hover {
  border-color: #1a73e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.calendar-day.empty {
  background: transparent;
  border: none;
  box-shadow: none;
  cursor: default;
}

.day-number {
  font-weight: bold;
  font-size: 14px;
}

.day-shift-info {
  font-size: 11px;
  background: rgba(26, 115, 232, 0.1);
  color: #1a73e8;
  padding: 3px 6px;
  border-radius: 4px;
  text-align: center;
  font-weight: 600;
}

/* Цвета смен с контрастными рамками */
.calendar-day.shift-1 { 
  background: #e3f2fd; 
  border-color: #64b5f6; 
}
.calendar-day.shift-2 { 
  background: #fff3e0; 
  border-color: #ffb74d; 
}
.calendar-day.shift-3 { 
  background: #f3e5f5; 
  border-color: #ba68c8; 
}
.calendar-day.shift-off { 
  background: #f1f5f9; 
  border-color: #94a3b8; 
  color: #475569; 
}

/* Итоги */
.monthly-summary {
  background: white;
  padding: 20px;
  border-radius: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.summary-item {
  font-size: 14px;
  color: #555;
}

.summary-item strong {
  display: block;
  font-size: 18px;
  color: #222;
  margin-top: 3px;
}

.summary-item.highlight strong {
  color: #2e7d32;
}

.actions-row {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-msg {
  font-weight: 600;
  font-size: 14px;
}

/* Зарплата */
.salary-settings-card {
  background: white;
  padding: 20px;
  border-radius: 10px;
  margin-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.salary-settings-card h3 {
  margin-bottom: 12px;
  font-size: 16px;
}

.rate-input-group {
  margin-top: 15px;
}

.payslip-container {
  background: white;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.payslip-container h2 {
  font-size: 20px;
  margin-bottom: 5px;
}

.payslip-subtitle {
  color: #666;
  font-size: 13px;
  margin-bottom: 20px;
}

.slip-section {
  margin-bottom: 20px;
  border-bottom: 1px solid #eee;
  padding-bottom: 15px;
}

.slip-section h4 {
  font-size: 14px;
  color: #1a73e8;
  margin-bottom: 10px;
}

.slip-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 6px;
  color: #444;
}

.slip-row.total-row {
  font-weight: bold;
  color: #222;
  margin-top: 8px;
  border-top: 1px dashed #ddd;
  padding-top: 6px;
}

.final-netto-section {
  border: none;
  background: #e8f5e9;
  padding: 15px;
  border-radius: 8px;
}

.slip-row.final-netto {
  font-size: 18px;
  font-weight: bold;
  color: #2e7d32;
  margin: 0;
}

/* Модальное окно */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-card {
  background: white;
  padding: 25px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.quick-shifts {
  margin-bottom: 15px;
}

.quick-btns-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 8px;
}

.btn-quick {
  padding: 10px;
  border: 1px solid #1a73e8;
  background: #e8f0fe;
  color: #1a73e8;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.btn-quick.btn-off {
  border-color: #cbd5e1;
  background: #f5f5f5;
  color: #666;
}

.time-inputs-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 15px;
}

.overtime-preview {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  background: #f8f9fa;
  padding: 8px;
  border-radius: 5px;
}

.full-width {
  width: 100%;
}