:root{
  /* Default dark theme (fallback) */
  --bg:#111214;
  --card:#f2f2f2;
  --text:#ffffff;
  --muted:#bfbfbf;
  --accent:#e2e2e2;
  --pill:#ffffff;
  --badge:#e8b2b9;
  --brand:#ffffff;
  --shadow:0 2px 10px rgba(0,0,0,.25);
  --radius:14px;
  
  /* Telegram theme variables (will be set dynamically) */
  --tg-bg-color: #111214;
  --tg-text-color: #ffffff;
  --tg-hint-color: #bfbfbf;
  --tg-link-color: #e2e2e2;
  --tg-button-color: #ffffff;
  --tg-button-text-color: #000000;
  --tg-secondary-bg-color: #1c1c1d;
  --tg-header-bg-color: #111214;
  --tg-accent-text-color: #e2e2e2;
  --tg-section-bg-color: #1c1c1d;
  --tg-section-header-text-color: #bfbfbf;
  --tg-subtitle-text-color: #999999;
  --tg-destructive-text-color: #ff3b30;
}

/* Используем только темную тему - игнорируем системные темы */

/* Automatic Telegram theme adaptation - ТЕМНАЯ ТЕМА (по умолчанию) */
:root[data-tg-theme="dark"] {
  --bg: var(--tg-bg-color);
  --card: var(--tg-secondary-bg-color);
  --text: #ffffff;
  --muted: #bfbfbf;
  --accent: #e2e2e2;
  --pill: #ffffff;
  --brand: #ffffff;
  --badge: #E1ADAD;
}

/* Светлая тема удалена - используем только темную тему */

:root.theme-light{
  --bg:#f5f6f8;
  --card:#ffffff;
  --text:#121212;
  --muted:#666;
  --accent:#222;
  --pill:#101113;
  --badge:#ffccd2;
  --brand:#101113;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, sans-serif;
  transition: background .2s ease, color .2s ease;
  min-height: 100vh;
}

/* ===== Блокировка скролла фона при открытом модальном окне ===== */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
  height: 100vh;
}

.page{
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  min-height: 100vh;
}

/* Оптимизация для Telegram Desktop - делаем шире */
@media (min-width: 400px) {
  .page {
    max-width: 500px;
    padding: 24px;
  }
}

@media (min-width: 500px) {
  .page {
    max-width: 600px;
    padding: 28px;
  }
}

@media (min-width: 600px) {
  .page {
    max-width: 700px;
    padding: 32px;
  }
}

.top{
  padding: 20px;
  background: #1b1c1f;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

@media (min-width: 400px) {
  .top {
    padding: 24px;
    margin-bottom: 24px;
  }
}

@media (min-width: 500px) {
  .top {
    padding: 28px;
    margin-bottom: 28px;
  }
}

@media (min-width: 600px) {
  .top {
    padding: 32px;
    margin-bottom: 32px;
  }
}
.header-info{
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}

.app-title{
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 0;
}

.manager-info{
  display: flex;
  align-items: center;
  gap: 6px;
}

.manager-name{
  font-size: 14px;
  color: var(--muted);
  opacity: 0.9;
}

@media (min-width: 400px) {
  .app-title {
    font-size: 26px;
  }
  
  .manager-name {
    font-size: 15px;
  }
  
  .header-info {
    gap: 10px;
    margin-bottom: 20px;
  }
}

@media (min-width: 500px) {
  .app-title {
    font-size: 28px;
  }
  
  .manager-name {
    font-size: 16px;
  }
}

@media (min-width: 600px) {
  .app-title {
    font-size: 30px;
  }
  
  .manager-name {
    font-size: 17px;
  }
}
.refresh-btn,
.settings-btn{
  background:none;
  border:none;
  color:var(--muted);
  cursor:pointer;
  padding:2px;
  border-radius:4px;
  display:flex;
  align-items:center;
  justify-content:center;
  transition:all 0.2s ease;
}
.refresh-btn:hover,
.settings-btn:hover{
  background:rgba(255,255,255,0.1);
  color:var(--text);
}
.refresh-btn svg,
.settings-btn svg{
  width:12px;
  height:12px;
}
.refresh-btn:disabled{
  opacity: 0.5;
  cursor: not-allowed;
}

.stats{
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 8px 0 6px;
}

.stat{
  background: #16171a;
  border-radius: 16px;
  padding: 10px 12px;
}
.stat.clickable{
  cursor: pointer;
  transition: all 0.2s ease;
}
.stat.clickable:hover{
  background: #1e1f23;
  transform: scale(1.02);
}
.stat.clickable:active{
  transform: scale(0.98);
}

/* Подсказка для первого входа (onboarding) */
.onboarding-hint {
  position: absolute;
  bottom: -50px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 8px 14px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  animation: hintPulse 2s ease-in-out infinite;
  z-index: 100;
}

.hint-arrow {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #667eea;
}

.hint-text {
  display: flex;
  align-items: center;
  gap: 6px;
}

@keyframes hintPulse {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: translateX(-50%) translateY(-3px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.6);
  }
}

.stat.clickable {
  position: relative; /* Для позиционирования подсказки */
}

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

.label{
  color: var(--muted);
  font-size: 12px;
}

.value{
  color: var(--brand);
  font-size: 12px;
}
.bar{height:2px;background:#2b2d33;border-radius:99px;overflow:hidden}
.fill{height:100%;width:0;background:#9e9e9e}

.actions{
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex-wrap: wrap;
}

@media (min-width: 400px) {
  .actions {
    gap: 16px;
    margin: 20px 0;
  }
}
.btn{
  appearance: none;
  border: 0;
  background: var(--pill);
  color: #111;
  padding: 12px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  position: relative;
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn:active{transform:translateY(1px)}
.btn-pill{border-radius:14px}
.badge{position:absolute;right:-6px;top:-6px;background:var(--badge);color:#222;border-radius:999px;padding:4px 7px;font-size:12px;line-height:1;border:2px solid #1b1c1f}

/* segmented removed */

.content{padding:16px 8px}
.section-title{font-size:16px;margin:0 0 10px}

.list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.card{background:#1B1B1B;color:#1B1B1B; border:0px solid #1B1B1B;border-radius:14px;padding:14px;display:grid;grid-template-columns:1fr 12px 20px;align-items:center;column-gap:10px;overflow:hidden;box-shadow:inset 0 1px 0 rgba(0, 0, 0, 0)}
.name-wrap{display:flex;align-items:center;gap:8px}
.status-dot{width:10px;height:10px;border-radius:50%;margin:0;background:#3ddc97;justify-self:end}
.status-dot.vacation{background:#f5a623}
.status-dot.dayoff{background:#7da2ff}
.name{font-size:14px;color:#f5f5f5}
.name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.status-chip{display:none}
.status-dot{justify-self:end}
.chev{width:20px;height:20px;display:grid;place-items:center;color:#ffffff}
.chev svg{width:16px;height:16px}

/* Right side wrapper to keep status aligned before chevron */
/* removed right-wrap; using grid columns for alignment */

/* Игнорируем системные темы - используем только темную тему */

/* Safe-area paddings for iOS */
.page{padding-left:calc(12px + env(safe-area-inset-left));padding-right:calc(12px + env(safe-area-inset-right));}

/* Modal */
.modal{position:fixed;inset:0;display:grid;place-items:end;z-index:50}
.modal.hidden{display:none}
/* Profile modal должен быть поверх других модальных окон */
#profile-modal{z-index:60}
/* Модальное окно запросов сотрудника должно быть выше всех */
#employee-requests-modal{z-index:1000}
/* Модальное окно увольнения должно быть поверх всех остальных окон */
#fire-modal{z-index:1100}
#fire-modal .backdrop{z-index:1099}
#fire-modal .sheet{z-index:1101}
.backdrop{position:absolute;inset:0;background:#000;opacity:0;transition:opacity .22s ease}
.modal.open .backdrop{opacity:.5}
.sheet{
  position:relative;
  width:100%;
  max-width:420px;
  margin:0 auto;
  background:#1b1c1f;
  border-top-left-radius:24px;
  border-top-right-radius:24px;
  box-shadow:var(--shadow);
  padding:12px 12px 24px;
  transform:translateY(24px);
  opacity:.0;
  transition:transform .22s ease, opacity .22s ease;
  max-height:calc(100dvh - 24px);
  overflow-y:auto;
  -webkit-overflow-scrolling:touch;
}

/* Улучшенная адаптивность для Telegram Desktop */
@media (min-width: 400px) {
  .sheet {
    max-width: 450px;
    padding: 16px 16px 28px;
    border-radius: 24px;
  }
  
  .modal {
    place-items: center;
  }
}

.modal.open .sheet{transform:translateY(0);opacity:1}

/* Широкая версия sheet для календаря */
.sheet.wide {
  max-width: 600px;
  overflow-x: hidden;
}

.sheet.wide .sheet-body {
  padding: 12px;
  overflow-x: hidden;
}

@media (min-width: 400px) {
  .sheet.wide {
    max-width: 640px;
  }
  
  .sheet.wide .sheet-body {
    padding: 16px;
  }
}

.sheet-header{display:flex;justify-content:space-between;align-items:center}
.icon-btn{background:transparent;border:0;color:#fff;font-size:20px;line-height:1;padding:8px;border-radius:10px}
.icon-btn:active{transform:translateY(1px)}
.sheet-body{padding:8px}
.profile-top{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:8px}
.avatar{display:none}
/* initials removed */

/* pointer cursor for clickable UI on desktop */
button, .btn, .btn-pill { cursor: pointer; }
.card { cursor: pointer; }
.profile-name{font-weight:700}
.profile-top .status-chip{display:inline-flex;align-items:center;justify-content:center}
.status-chip{margin-top:6px;padding:6px 12px;border-radius:999px;font-size:12px;line-height:1;background:#c8f7e2;color:#0c5132;text-align:center}
.status-chip.vacation{background:#ffe4bf;color:#7a4a00}
.status-chip.dayoff{background:#dfe8ff;color:#143c8c}
.sheet-actions{display:flex;gap:12px;width:100%;margin-top:6px}
.info-list{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:10px}
.info-item{display:flex;justify-content:space-between;align-items:center;background:#16171a;color:#ddd;padding:12px;border-radius:12px}
.info-key{color:#b8b8b8;font-size:12px}
.info-value{color:#e5e5e5;font-size:12px}
.sheet-footer{margin-top:12px}
.btn.danger{width:100%;background:transparent;color:#fff;border:2px solid #fff;border-radius:14px;padding:12px}

/* Form */
.form{display:flex;flex-direction:column;gap:10px}
.field{display:block}
.control{width:100%;background:#1f2024;color:#eaeaea;border:1px solid #2f3238;border-radius:12px;padding:12px 14px;font-size:14px;outline:none;transition:border-color 0.2s ease, background-color 0.2s ease}
.control::placeholder{color:#8f9198}
.control.error{border-color:#ef4444!important;background-color:rgba(239,68,68,0.1)!important;animation:shake 0.5s ease-in-out}
.control.error:focus{border-color:#ef4444!important;box-shadow:0 0 0 3px rgba(239,68,68,0.2)}
.field-error{display:block;color:#ef4444;font-size:12px;margin-top:6px;margin-left:4px;line-height:1.4}
.select select.control,.field.select .control{appearance:none;background:#1f2024 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%238f9198" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center;background-size:18px}
.field.select .control.error{background:#1f2024 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%23ef4444" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>') no-repeat right 12px center;background-size:18px;background-color:rgba(239,68,68,0.1)!important}
.inph{display:block;color:#8f9198;font-size:11px;margin:6px 4px 0}
.field.date{position:relative}
.label-float{position:absolute;left:16px;top:10px;color:#8f9198;font-size:12px;background:transparent;pointer-events:none;transition:color 0.2s ease}
.field.date .control.error~.label-float{color:#ef4444}
.field.date .control{padding-top:26px;padding-bottom:10px}
.label-top{color:#b8b8b8;font-size:12px;margin:0 0 6px 4px}
.hint{color:#777;font-size:11px;margin:6px 4px 0}
.textarea{min-height:96px;resize:vertical}
@keyframes shake{0%,100%{transform:translateX(0)}10%,30%,50%,70%,90%{transform:translateX(-4px)}20%,40%,60%,80%{transform:translateX(4px)}}

/* Requests */
.req-list{display:flex;flex-direction:column;gap:16px}
.req-card{background:#1B1B1B;border-radius:16px;padding:16px;border:1px solid rgba(255,255,255,.04);box-shadow:0 1px 0 rgba(0,0,0,.2) inset}
.req-row{display:flex;justify-content:space-between;align-items:center;margin:10px 0}
.req-key{color:#b9b9b9;font-size:12px}
.req-val{color:#e7e7e7;font-size:12px}
.req-actions{display:flex;gap:14px;margin-top:12px}
.btn-outline{background:transparent;border:1px solid #fff;color:#fff;border-radius:12px;padding:10px 14px}
.empty-hint{color:#b3b3b3;text-align:center;background:#1B1B1B;border-radius:12px;padding:16px;border:1px solid rgba(255,255,255,.04)}

/* Team loader */
.team-loader{display:flex;justify-content:center;align-items:center;background:#1B1B1B;border-radius:12px;padding:16px;border:1px solid rgba(255,255,255,.04)}
.spinner-emoji{display:inline-block;font-size:22px;animation:spin 1s linear infinite}
@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

/* ========== КАЛЕНДАРЬ ========== */
.calendar-nav{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
.calendar-title{font-size:18px;font-weight:600;color:var(--text);margin:0;flex:1;text-align:center}

/* Легенда */
.calendar-legend{display:flex;gap:12px;justify-content:center;align-items:center;margin-bottom:16px;padding:10px;background:rgba(255,255,255,.02);border-radius:10px;flex-wrap:wrap}
.legend-item{display:flex;align-items:center;gap:5px;font-size:12px;color:var(--muted);white-space:nowrap}
.legend-dot{font-size:14px;line-height:1}

/* Сетка календаря */
.calendar-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:24px;min-height:320px;width:100%;overflow:hidden}
.calendar-day-header{text-align:center;font-size:11px;font-weight:600;color:var(--muted);padding:6px 0;text-transform:uppercase}
.calendar-day{position:relative;aspect-ratio:1;background:#1B1B1B;border:1px solid rgba(255,255,255,.08);border-radius:8px;display:flex;flex-direction:column;align-items:center;justify-content:center;cursor:pointer;transition:all .2s ease;padding:4px;min-width:0;max-width:100%}
.calendar-day:hover{background:#252525;border-color:rgba(255,255,255,.15);transform:translateY(-2px)}
.calendar-day.empty{background:transparent;border:none;cursor:default;pointer-events:none}
.calendar-day.today{border-color:var(--accent);border-width:2px;font-weight:700}
.calendar-day.selected{background:#2a2a2a;border-color:var(--accent);transform:translateY(-2px);box-shadow:0 4px 12px rgba(135,116,225,0.2)}
.calendar-day.has-events{background:#1f1b25}
.calendar-day-number{font-size:13px;font-weight:500;color:var(--text);margin-bottom:2px}
.calendar-indicator{font-size:9px;line-height:1;letter-spacing:0.5px;display:flex;gap:2px;flex-wrap:wrap;justify-content:center;max-width:100%}
.calendar-indicator .dot{display:inline-block}
.calendar-indicator .dot-vacation{color:#8774e1}
.calendar-indicator .dot-dayoff{color:#4ecdc4}
.calendar-indicator .dot-sick{color:#ff6b6b}
.calendar-indicator .dot-birthday{font-size:11px}
.calendar-indicator .dot-holiday{font-size:11px;filter:drop-shadow(0 0 2px rgba(255,68,68,0.5))}

/* Список отпусков */
.calendar-info{margin-top:24px;padding-top:20px;border-top:1px solid rgba(255,255,255,.08)}
.calendar-info-title{font-size:16px;font-weight:600;color:var(--text);margin:0 0 16px}
.calendar-vacation-list{display:flex;flex-direction:column;gap:10px}
.calendar-vacation-item{background:#1B1B1B;border:1px solid rgba(255,255,255,.08);border-radius:10px;padding:12px;transition:all .2s ease;border-left:3px solid #8774e1}
.calendar-vacation-item:hover{background:#252525;border-color:rgba(255,255,255,.15)}
.calendar-vacation-item.event-vacation{border-left-color:#8774e1}
.calendar-vacation-item.event-sick{border-left-color:#ff6b6b}
.calendar-vacation-item.event-birthday{border-left-color:#ffd700}
.vacation-header{display:flex;align-items:center;gap:8px;margin-bottom:6px}
.event-emoji{font-size:18px;line-height:1}
.vacation-name{font-size:14px;font-weight:600;color:var(--text)}
.vacation-reason{font-size:13px;color:var(--accent);margin-bottom:4px;font-weight:500}
.vacation-dates{font-size:12px;color:var(--muted);margin-bottom:4px}
.vacation-team{font-size:12px;color:#8774e1;opacity:0.8}


/* Requests: collapsible history */
.fake-select{display:flex;justify-content:space-between;align-items:center;background:#1f2024;border:1px solid #2f3238;border-radius:14px;padding:14px 16px;min-height:48px;color:#e7e7e7;font-size:14px;margin-top:8px;margin-bottom:12px;cursor:pointer}
.fake-select svg{transform:rotate(0);transition:transform .2s ease}
.fake-select.open svg{transform:rotate(180deg)}
.req-collaps{display:none;background:#16171a;border:1px solid #2a2d33;border-radius:14px;padding:12px 14px;margin-top:8px;margin-bottom:12px}
.req-collaps.open{display:block}
.req-subcard{background:#1f2024;border:1px solid #2f3238;border-radius:12px;padding:12px 14px;margin-top:8px}
.req-subrow{display:flex;justify-content:space-between;align-items:center;margin:8px 0}
.req-subkey{color:#b9b9b9;font-size:12px}
.req-subval{color:#e7e7e7;font-size:12px}
.req-subhint{color:#9a9a9a;font-size:12px}

/* Token Modal - в стиле основного приложения */
.modal.token-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 12px;
  background: rgba(17, 18, 20, 0.85);
  backdrop-filter: blur(8px);
}

.modal.token-modal .backdrop {
  display: none;
}

.modal.token-modal .sheet {
  position: relative;
  background: #1b1c1f;
  border-radius: 24px;
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 360px;
  padding: 0;
  margin: 0;
  transform: scale(1);
  opacity: 1;
  transition: transform 0.22s ease, opacity 0.22s ease;
  overflow: hidden;
}

.modal.token-modal .sheet-header {
  padding: 24px 24px 8px;
  text-align: center;
}

.modal.token-modal .sheet-header h3 {
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
}

.modal.token-modal .sheet-body {
  padding: 16px 24px 24px;
}

.modal.token-modal .sheet-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  margin: 0 0 20px;
}

.modal.token-modal .form {
  margin-bottom: 20px;
}

.modal.token-modal .control {
  width: 100%;
  background: #16171a;
  color: var(--text);
  border: 1px solid #2f3238;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  outline: none;
  transition: border-color 0.2s ease;
  font-family: system-ui, -apple-system, sans-serif;
}

.modal.token-modal .control:focus {
  border-color: #9e9e9e;
}

.modal.token-modal .control.error {
  border-color: #ef4444 !important;
  background-color: rgba(239, 68, 68, 0.1);
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-4px); }
  20%, 40%, 60%, 80% { transform: translateX(4px); }
}

.modal.token-modal .control::placeholder {
  color: #8f9198;
  font-weight: 400;
}

.modal.token-modal .sheet-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.modal.token-modal .btn {
  flex: 1;
  background: var(--pill);
  color: #111;
  border: none;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  position: relative;
}

.modal.token-modal .btn:active {
  transform: translateY(1px);
}

.modal.token-modal .btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.modal.token-modal .btn-outline {
  flex: 1;
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal.token-modal .btn-outline:active {
  transform: translateY(1px);
}

.modal.token-modal .token-footer {
  text-align: center;
  padding: 0 24px 24px;
}

.modal.token-modal .token-footer p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  margin: 0;
}

/* Анимации появления/исчезновения */
.modal.token-modal:not(.open) {
  pointer-events: none;
  background: rgba(17, 18, 20, 0);
}

.modal.token-modal:not(.open) .sheet {
  transform: translateY(24px) scale(0.95);
  opacity: 0;
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
  .modal.token-modal {
    padding: 12px;
  }
  
  .modal.token-modal .sheet {
    max-width: none;
  }
  
  .modal.token-modal .sheet-header {
    padding: 20px 20px 8px;
  }
  
  .modal.token-modal .sheet-body {
    padding: 16px 20px 20px;
  }
  
  .modal.token-modal .token-footer {
    padding: 0 20px 20px;
  }
}

/* Статусы сотрудников */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-left: auto;
  margin-right: 8px;
  flex-shrink: 0;
}

.status-dot.active {
  background-color: #4ade80; /* Зеленый - активен/новый */
}

.status-dot.vacation {
  background-color: #fbbf24; /* Желтый - отпуск */
}

.status-dot.dayoff {
  background-color: #60a5fa; /* Синий - выходной */
}

.status-dot.fired {
  background-color: #ef4444; /* Красный - уволен */
}

/* Статус чипы в профиле */
.status-chip.fired {
  background-color: #ef4444; /* Красный фон для уволенных */
  color: white;
}

.status-chip.active {
  background-color: #4ade80; /* Зеленый фон для активных */
  color: white;
}

.status-chip.vacation {
  background-color: #fbbf24; /* Желтый фон для отпуска */
  color: black;
}

.status-chip.dayoff {
  background-color: #60a5fa; /* Синий фон для выходных */
  color: white;
}

/* Settings Modal */
.settings-sheet {
  max-width: 320px;
  min-width: 280px;
  margin: auto;
  background: #1b1c1f !important;
  border-radius: 24px !important;
  overflow: hidden;
}

/* Убедимся что settings modal правильно блокирует фон */
#settings-modal.modal.open .backdrop {
  opacity: 0.6 !important;
  background: #000 !important;
}

/* Принудительно задаем стили для settings modal */
#settings-modal .sheet-body {
  background: #1b1c1f;
  border-radius: 0 0 24px 24px;
}

#settings-modal .sheet-header {
  background: #1b1c1f;
  border-radius: 24px 24px 0 0;
}

.settings-section {
  margin-bottom: 16px;
}

.settings-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #2f3238;
}

.settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
}

.settings-item-info {
  flex: 1;
}

.settings-item-title {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
}

.settings-item-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

/* Центрированные элементы для настроек */
.settings-item-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 12px 0;
  text-align: center;
}

.settings-item-info-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.settings-item-title-centered {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  margin: 0;
}

.settings-item-desc-centered {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
  max-width: 260px;
  margin: 0;
}

.btn-danger {
  background-color: #dc2626;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-danger:hover {
  background-color: #b91c1c;
  transform: translateY(-1px);
}

.btn-logout {
  background: var(--pill);
  color: #111;
  border: none;
  padding: 12px 24px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: var(--shadow);
  min-width: 120px;
}

.btn-logout:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}

.btn-logout:active {
  transform: translateY(1px);
}

/* Минимальная адаптивность для больших экранов */
@media (min-width: 500px) {
  .settings-item-title-centered {
    font-size: 18px;
  }
  
  .settings-item-desc-centered {
    font-size: 15px;
  }
  
  .btn-logout {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* Компактные стили только для очень маленьких экранов */
@media (max-width: 380px) {
  .page {
    padding: 16px;
  }
  
  .top {
    padding: 16px;
  }
  
  .app-title {
    font-size: 22px;
  }
  
  .stats {
    gap: 14px;
  }
  
  .stat {
    padding: 14px 16px;
  }
  
  .label, .value {
    font-size: 14px;
  }
  
  .btn {
    padding: 14px 18px;
    font-size: 14px;
  }
}

/* ===== Кнопка обновления ===== */
#refresh-btn {
  background: transparent !important;
  border: 1.5px solid rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#refresh-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
  transform: translateY(-1px);
}

#refresh-btn:active {
  transform: translateY(0);
}

#refresh-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#refresh-btn svg {
  display: block;
}

/* ===== Многосегментный прогресс-бар ===== */
.bar-multi {
  display: flex;
  height: 4px;
  background: #2b2d33;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
}

.bar-segment {
  height: 100%;
  transition: width 0.5s ease;
}

.bar-segment.active {
  background: #81c784;
}

.bar-segment.vacation {
  background: #ffb74d;
}

.bar-segment.dayoff {
  background: #64b5f6;
}

.bar-segment.new {
  background: #ffb74d;
}

.bar-segment.pending {
  background: #64b5f6;
}

.bar-segment.completed {
  background: #81c784;
}

.bar-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 4px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

.legend-color.active {
  background: #81c784;
}

.legend-color.vacation {
  background: #ffb74d;
}

.legend-color.dayoff {
  background: #64b5f6;
}

.legend-color.new {
  background: #ffb74d;
}

.legend-color.pending {
  background: #64b5f6;
}

.legend-color.completed {
  background: #81c784;
}

/* ===== Виджет событий завтра ===== */
.tomorrow-widget {
  background: var(--card);
  border-radius: var(--radius);
  padding: 0;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.tomorrow-widget.hidden {
  display: none;
}

/* ===== Events Slider ===== */
.tomorrow-header {
  padding: 12px 16px 8px 16px;
}

.events-slider-wrapper {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.events-slider-wrapper:active {
  cursor: grabbing;
}

.events-slider {
  display: flex;
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.events-slide {
  min-width: 100%;
  flex-shrink: 0;
  padding: 0 16px 8px 16px;
}

.slide-title {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 8px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.slide-content {
  max-height: 400px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
}

/* Для слайда "На неделе" больше места */
#week-content {
  max-height: 450px;
}

/* Пустые слайды - минимальная высота */
.slide-content:empty,
.slide-content .empty-hint {
  min-height: 50px;
}

/* Кастомный скроллбар для слайдов */
.slide-content::-webkit-scrollbar {
  width: 4px;
}

.slide-content::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
}

.slide-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
}

.slide-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Фильтры событий */
.event-filters {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 0 0 12px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.event-filters::-webkit-scrollbar {
  display: none;
}

.event-filter {
  flex-shrink: 0;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.event-filter:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
}

.event-filter.active {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.15);
}

/* Индикаторы слайдов */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px 12px 16px;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
}

.slider-dot:hover {
  background: rgba(255, 255, 255, 0.4);
}

.slider-dot.active {
  width: 20px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.8);
}

/* День недели в слайде "На неделе" */
.week-day {
  margin-bottom: 12px;
}

.week-day:last-child {
  margin-bottom: 0;
}

.week-day-header {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 6px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.week-day-content {
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Карточки сотрудников в "На неделе" должны быть такими же как в остальных слайдах */
.week-day-content .tomorrow-employee {
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 12px;
}

.tomorrow-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.tomorrow-icon {
  font-size: 20px;
}

.tomorrow-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tomorrow-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.tomorrow-section:last-child {
  margin-bottom: 0;
}

.tomorrow-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
  margin-bottom: 4px;
}

.tomorrow-section-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 24px;
}

.tomorrow-section-count {
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

.tomorrow-employee {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  min-width: 0; /* Для правильной работы text-overflow */
}

.tomorrow-employee:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.tomorrow-employee-name {
  flex: 1;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.tomorrow-employee-team {
  font-size: 10px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 120px;
  flex-shrink: 0;
}

/* Пустое состояние для виджета */
.tomorrow-widget .empty-hint,
.slide-content .empty-hint {
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
}

/* Анимация появления виджета */
@keyframes fadeInWidget {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tomorrow-widget:not(.hidden) {
  animation: fadeInWidget 0.3s ease;
}

/* ===== Dashboard Cards ===== */
.dashboard {
  margin-bottom: 24px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

/* Адаптивная сетка */
@media (min-width: 400px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (min-width: 600px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

.dashboard-card {
  background: #1B1B1B;
  border-radius: 14px;
  padding: 20px;
  border: 0px solid #1B1B1B;
  box-shadow: inset 0 1px 0 rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.dashboard-card:hover {
  opacity: 0.9;
}

.dashboard-card:active {
  transform: translateY(1px);
}

/* Card Content */
.dashboard-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-number {
  font-size: 32px;
  font-weight: 700;
  color: #f5f5f5;
  line-height: 1;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

.dashboard-label {
  font-size: 14px;
  font-weight: 600;
  color: #f5f5f5;
  line-height: 1.2;
}

.dashboard-sublabel {
  font-size: 12px;
  color: #b3b3b3;
  line-height: 1.2;
}

/* Card Variants */
.dashboard-card.primary,
.dashboard-card.urgent,
.dashboard-card.positive {
  background: #1B1B1B;
  border: 0px solid #1B1B1B;
}

.dashboard-card.primary .dashboard-icon,
.dashboard-card.urgent .dashboard-icon,
.dashboard-card.positive .dashboard-icon {
  background: rgba(255, 255, 255, 0.1);
}

/* Animation delays */
.dashboard-card:nth-child(1) { animation-delay: 0.1s; }
.dashboard-card:nth-child(2) { animation-delay: 0.2s; }

/* Mobile Optimizations */
@media (max-width: 480px) {
  .dashboard-card {
    padding: 16px;
    gap: 12px;
  }
  
  .dashboard-icon {
    width: 40px;
    height: 40px;
  }
  
  .dashboard-number {
    font-size: 28px;
  }
  
  .dashboard-label {
    font-size: 13px;
  }
  
  .dashboard-sublabel {
    font-size: 11px;
  }
}

/* Large Screen Optimizations */
@media (min-width: 800px) {
  .dashboard-card {
    padding: 24px;
    gap: 20px;
  }
  
  .dashboard-icon {
    width: 56px;
    height: 56px;
  }
  
  .dashboard-number {
    font-size: 36px;
  }
  
  .dashboard-label {
    font-size: 15px;
  }
  
  .dashboard-sublabel {
    font-size: 13px;
  }
}

/* Theme Adaptations - уже определены выше в разделе "СВЕТЛАЯ ТЕМА: Dashboard карточки" */

/* Focus states */
.dashboard-card:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.dashboard-card:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.dashboard-card:focus:not(:focus-visible) {
  outline: none;
}

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

/* ===== Кнопки фильтрации в модальных окнах ===== */
.filter-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.8);
}

.filter-btn.active {
  background: rgba(129, 199, 132, 0.2);
  border-color: #81c784;
  color: #81c784;
  font-weight: 600;
}

.filter-btn.active:hover {
  background: rgba(129, 199, 132, 0.25);
}

/* Специальные цвета для фильтров */
.filter-btn[data-filter="vacation"].active {
  background: rgba(255, 183, 77, 0.2);
  border-color: #ffb74d;
  color: #ffb74d;
}

.filter-btn[data-filter="vacation"].active:hover {
  background: rgba(255, 183, 77, 0.25);
}

.filter-btn[data-filter="sick"].active {
  background: rgba(239, 83, 80, 0.2);
  border-color: #ef5350;
  color: #ef5350;
}

.filter-btn[data-filter="sick"].active:hover {
  background: rgba(239, 83, 80, 0.25);
}

.filter-btn[data-filter="dayoff"].active {
  background: rgba(100, 181, 246, 0.2);
  border-color: #64b5f6;
  color: #64b5f6;
}

.filter-btn[data-filter="dayoff"].active:hover {
  background: rgba(100, 181, 246, 0.25);
}

/* Фиксированная высота для списков при фильтрации */
#team-modal-list {
  min-height: 400px;
  transition: none;
}

/* ===== Стили для поиска в модальном окне команды ===== */
.header-with-search {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  box-sizing: border-box;
}

.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 60px;
}

.header-left-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.header-left-group .section-title {
  margin: 0;
}

.search-toggle-btn {
  transition: opacity 0.2s ease;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.search-toggle-btn:hover {
  opacity: 0.7;
}

.search-toggle-btn svg {
  display: block;
  width: 20px;
  height: 20px;
}

.dropdown-search-container {
  display: flex !important;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px;
  padding: 0 12px;
  margin: 0 0 12px 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-search-container.active {
  max-height: 48px !important;
  padding: 10px 12px !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.dropdown-search-container.active:focus-within {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

/* Специфичные стили для поиска в команде */
#team-search-container,
#team-search-container.active {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#team-search-container.active:focus-within {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.3) !important;
}

.dropdown-search-input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  color: var(--text) !important;
  font-size: 14px;
  outline: none;
  min-width: 0;
  padding: 0;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
}

#team-search-input {
  color: var(--text) !important;
  background: transparent !important;
}

.dropdown-search-input::placeholder {
  color: var(--muted) !important;
  opacity: 0.7;
}

#team-search-input::placeholder {
  color: var(--muted) !important;
  opacity: 0.7;
}

.search-clear-btn {
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity 0.2s ease;
  width: 28px;
  height: 28px;
  padding: 6px;
}

.search-clear-btn:hover {
  opacity: 1;
}

.search-clear-btn svg {
  width: 16px;
  height: 16px;
}

/* Исправление отображения поиска в десктоп приложении */
@media (min-width: 400px) {
  .dropdown-search-container {
    margin: 0 16px 12px 16px;
    width: calc(100% - 32px);
  }
}

@media (min-width: 500px) {
  .dropdown-search-container {
    margin: 0 20px 12px 20px;
    width: calc(100% - 40px);
  }
}

@media (min-width: 600px) {
  .dropdown-search-container {
    margin: 0 24px 12px 24px;
    width: calc(100% - 48px);
  }
}

/* Стили для скрытия и подсветки результатов поиска */
.list .card.search-hidden {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.list .card.search-top-match {
  background: linear-gradient(135deg, rgba(135, 116, 225, 0.15) 0%, rgba(135, 116, 225, 0.05) 100%);
  border-color: rgba(135, 116, 225, 0.4);
  box-shadow: 0 0 20px rgba(135, 116, 225, 0.2);
  transform: scale(1.02);
}

/* ===== Анимация прелоадера ===== */
@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.spinner-emoji {
  display: inline-block;
  animation: spin 2s linear infinite;
}

/* ===== Feature Placeholder Modal ===== */
.placeholder-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  gap: 20px;
}

.placeholder-icon {
  font-size: 64px;
  animation: pulse 2s ease-in-out infinite;
}

.placeholder-message {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 300px;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.05);
  }
}

/* Стили для выпадающего списка команд */
.team-select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.team-value {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.2s;
  justify-content: flex-end;
}

.team-value:hover {
  opacity: 0.8;
}

.team-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 200%;
  background: #1B1B1B;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-dropdown-item {
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.team-dropdown-loading {
  padding: 16px;
  text-align: center;
  color: #999;
}

