/* Окна подтверждения, календарь и выпадающие списки в стиле приложения. */
.app-native-hidden { display: none !important; }

.app-dialog { width: min(420px, calc(100vw - 32px)); padding: 28px; border: 0; border-radius: 20px; background: #fff; color: var(--ink, #08152b); box-shadow: 0 24px 64px -16px #0b2a5566, 0 2px 8px #0b2a5514; }
.app-dialog::backdrop { background: #0b1a3366; backdrop-filter: blur(3px); }
.app-dialog[open] { animation: app-pop .18s cubic-bezier(.2, .9, .3, 1.2); }
.app-dialog-title { margin: 0; font-size: 20px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
.app-dialog-text { margin: 10px 0 0; color: var(--muted, #53647a); font-size: 14px; line-height: 1.6; }
.app-dialog-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 24px; }
.app-dialog-actions button { min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: 14px; }
.app-dialog-danger { border: 0; background: #c4321f; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.app-dialog-danger:hover { background: #a8281a; }
@keyframes app-pop { from { opacity: 0; transform: scale(.96) translateY(6px); } }

.app-date { position: relative; min-width: 0; width: 100%; }
.app-date-trigger { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border: 1px solid #cbd8e6; border-radius: 12px; background: #fff; color: var(--ink, #172641); font: inherit; font-size: 15px; text-align: left; cursor: pointer; }
.app-date-trigger.is-empty { color: #7a8aa0; }
.app-date-trigger:hover, .app-date-trigger[aria-expanded=true] { border-color: #0968f9; background: #f5f9ff; }
.app-date-trigger:focus-visible { outline: none; border-color: #0968f9; box-shadow: 0 0 0 3px #0968f933; }
.app-date-icon { flex: none; width: 18px; height: 18px; border: 2px solid #0758d4; border-radius: 4px; position: relative; }
.app-date-icon::before { content: ''; position: absolute; left: -2px; right: -2px; top: 3px; border-top: 2px solid #0758d4; }
.app-date:has(input[aria-invalid=true]) .app-date-trigger, .styled-select:has(select[aria-invalid=true]) .styled-select-trigger { border-color: #c4321f; }
.app-date-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 304px; max-width: calc(100vw - 32px); padding: 14px; border-radius: 16px; background: #fff; box-shadow: 0 16px 40px #102e5930, 0 1px 3px #102e5914; animation: app-pop .16s ease-out; }
.app-date-pop[hidden] { display: none; }
.app-date-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.app-date-title { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.app-date-nav { width: 36px; height: 36px; border: 0; border-radius: 10px; background: #eef3fa; color: #0758d4; font-size: 20px; line-height: 1; cursor: pointer; }
.app-date-nav:hover:not(:disabled) { background: #dbeaff; }
.app-date-nav:disabled { opacity: .35; cursor: default; }
.app-date-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.app-date-weekday { padding: 6px 0; color: #7a8aa0; font-size: 11px; font-weight: 800; text-align: center; text-transform: uppercase; }
.app-date-day { aspect-ratio: 1; min-height: 36px; border: 0; border-radius: 10px; background: none; color: var(--ink, #172641); font: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.app-date-day:hover:not(:disabled) { background: #eaf4ff; }
.app-date-day.is-today { box-shadow: inset 0 0 0 1.5px #9bbfeb; }
.app-date-day[aria-pressed=true] { background: #0968f9; color: #fff; box-shadow: none; }
.app-date-day:disabled { color: #c3cdda; cursor: default; }
.app-date-day:focus-visible, .app-date-nav:focus-visible, .app-date-link:focus-visible { outline: 2px solid #0968f9; outline-offset: 1px; }
.app-date-foot { display: flex; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid #edf1f6; }
.app-date-link { min-height: 36px; padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: #0758d4; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.app-date-link:hover:not(:disabled) { background: #eaf4ff; }
.app-date-link:disabled { color: #c3cdda; }

/* Списки в формах вакансии и поддержки: размер как у полей ввода. */
.ve-field .styled-select-trigger, .cab-field .styled-select-trigger { min-height: 48px; padding: 12px 16px; border-color: #cbd8e6; border-radius: 12px; color: var(--ink, #172641); font-size: 15px; }
.ve-field .styled-select-menu [role=option], .cab-field .styled-select-menu [role=option] { font-size: 14px; }
@media (prefers-reduced-motion: reduce) { .app-dialog[open], .app-date-pop { animation: none; } }
