/* Hide all scrollbars globally (scroll still works) */
* {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* Legacy Edge/IE */
}

*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
    background: transparent;
}

/* Custom date picker */
.app-date-picker {
    position: fixed;
    z-index: 100;
    width: 18rem;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 18px 40px rgba(18, 52, 95, 0.18);
    padding: 0.75rem;
}
.app-date-picker.hidden {
    display: none;
}
.app-date-picker__mode {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
    padding: 0.2rem;
    border-radius: 0.7rem;
    background: #f1f5f9;
}
.app-date-picker__mode-btn {
    flex: 1;
    border: 0;
    border-radius: 0.55rem;
    background: transparent;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.35rem 0.5rem;
    cursor: pointer;
}
.app-date-picker__mode-btn.is-active {
    background: #fff;
    color: #12345f;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}
.app-date-picker__hint {
    margin: -0.15rem 0 0.45rem;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}
.app-date-picker__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.app-date-picker__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: #12345f;
}
.app-date-picker__nav {
    display: inline-flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #1e4d8c;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}
.app-date-picker__nav:hover {
    border-color: #7dd3fc;
    background: #f0f9ff;
}
.app-date-picker__week,
.app-date-picker__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.15rem;
}
.app-date-picker__week {
    margin-bottom: 0.25rem;
}
.app-date-picker__week span {
    text-align: center;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
    padding: 0.2rem 0;
}
.app-date-picker__day {
    height: 2rem;
    border-radius: 0.55rem;
    border: 0;
    background: transparent;
    color: #334155;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}
.app-date-picker__day:hover:not(:disabled) {
    background: #eef5fc;
    color: #12345f;
}
.app-date-picker__day.is-outside {
    color: #cbd5e1;
}
.app-date-picker__day.is-today {
    box-shadow: inset 0 0 0 1px #7dd3fc;
}
.app-date-picker__day.is-selected {
    background: #1e4d8c;
    color: #fff;
    box-shadow: none;
}
.app-date-picker__day.is-selected:hover:not(:disabled) {
    background: #12345f;
    color: #fff;
}
.app-date-picker__day.is-in-range {
    background: #e8f1fb;
    color: #12345f;
    border-radius: 0.35rem;
}
.app-date-picker__day.is-range-start {
    border-radius: 0.55rem 0.2rem 0.2rem 0.55rem;
}
.app-date-picker__day.is-range-end {
    border-radius: 0.2rem 0.55rem 0.55rem 0.2rem;
}
.app-date-picker__day.is-range-start.is-range-end {
    border-radius: 0.55rem;
}
.app-date-picker__day.is-disabled,
.app-date-picker__day:disabled {
    color: #e2e8f0;
    cursor: default;
}
.app-date-picker__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.55rem;
    padding-top: 0.45rem;
    border-top: 1px solid #f1f5f9;
}
.app-date-picker__link {
    border: 0;
    background: transparent;
    color: #1e4d8c;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0.2rem 0.35rem;
    border-radius: 0.35rem;
}
.app-date-picker__link:hover:not(:disabled) {
    background: #eef5fc;
}
.app-date-picker__link:disabled {
    color: #cbd5e1;
    cursor: default;
}

/* Toast notifications */
.app-toast-host {
    position: fixed;
    z-index: 120;
    right: 1rem;
    top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    width: min(22rem, calc(100vw - 2rem));
    pointer-events: none;
}
.app-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    border-radius: 0.9rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    box-shadow: 0 14px 36px rgba(18, 52, 95, 0.16);
    padding: 0.8rem 0.9rem;
    color: #12345f;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.app-toast.is-in {
    opacity: 1;
    transform: translateY(0);
}
.app-toast.is-out {
    opacity: 0;
    transform: translateY(-6px);
}
.app-toast__bar {
    width: 0.28rem;
    align-self: stretch;
    border-radius: 999px;
    background: #1e4d8c;
    flex-shrink: 0;
}
.app-toast.is-success .app-toast__bar {
    background: #059669;
}
.app-toast.is-error .app-toast__bar {
    background: #dc2626;
}
.app-toast__msg {
    flex: 1;
    min-width: 0;
}
.app-toast__close {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0.15rem;
    border-radius: 0.35rem;
}
.app-toast__close:hover {
    color: #475569;
    background: #f1f5f9;
}
@media (max-width: 639px) {
    .app-toast-host {
        top: auto;
        bottom: calc(4.75rem + env(safe-area-inset-bottom));
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }
}
