/* PlanTaskIt styled confirm dialog — replaces native browser confirm() */

.ptit-confirm-overlay {
    position: fixed;
    inset: 0;
    background: rgba(26, 46, 51, 0.45);
    backdrop-filter: blur(2px);
    z-index: 2100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ptit-confirm-modal {
    width: 100%;
    max-width: 440px;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 1rem 2.5rem rgba(40, 83, 93, 0.22);
    background: #fff;
}

.ptit-confirm-modal__header {
    background: linear-gradient(135deg, #28535d 0%, #1e3f47 100%);
    color: #fff;
    padding: 1rem 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
}

.ptit-confirm-modal__body {
    padding: 1.15rem 1.25rem;
    color: #334155;
    line-height: 1.5;
    background: #f4f7f8;
}

.ptit-confirm-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    padding: 0.9rem 1.25rem 1.1rem;
    background: #fff;
    border-top: 1px solid #e3eaec;
}

.ptit-confirm-modal__confirm--destructive {
    background: #a3483a;
    border-color: #a3483a;
}

.ptit-confirm-modal__confirm--destructive:hover,
.ptit-confirm-modal__confirm--destructive:focus {
    background: #8b3d31;
    border-color: #8b3d31;
    color: #fff;
}

.pwa-install-help__modal {
    max-width: 520px;
}

.pwa-install-help.ptit-confirm-overlay {
    z-index: 2300;
}

.pwa-install-help__body {
    text-align: left;
}

.pwa-install-help__lead {
    margin-bottom: 1rem;
}

.pwa-install-help__steps {
    margin: 0 0 1rem 1.15rem;
    padding: 0;
}

.pwa-install-help__steps li {
    margin-bottom: 0.5rem;
}

.pwa-install-help__steps li:last-child {
    margin-bottom: 0;
}

.pwa-install-help__note {
    font-size: 0.875rem;
    color: #64748b;
}

/* In-page feature help modals (Manage Users, Rewards, Calendar, etc.) */

.feature-help-btn {
    color: #28535d;
    text-decoration: none;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.feature-help-btn:hover,
.feature-help-btn:focus {
    color: #1e3f47;
    text-decoration: underline;
}

.feature-help.ptit-confirm-overlay {
    align-items: center;
    justify-content: center;
    padding: clamp(0.75rem, 2.5vw, 1.5rem);
}

.feature-help__modal {
    width: min(94vw, 42rem);
    max-width: min(94vw, 42rem);
    max-height: min(calc(100dvh - 1.5rem), calc(100vh - 1.5rem));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.feature-help__body {
    text-align: left;
    overflow-x: hidden;
    overflow-y: auto;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.feature-help__modal .ptit-confirm-modal__header,
.feature-help__modal .ptit-confirm-modal__footer {
    flex-shrink: 0;
}

.feature-help__lead {
    margin-bottom: 1rem;
}

.feature-help__section {
    margin-bottom: 1rem;
}

.feature-help__section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #28535d;
    margin-bottom: 0.5rem;
}

.feature-help__steps {
    margin: 0 0 0.75rem 1.15rem;
    padding: 0;
}

.feature-help__steps li {
    margin-bottom: 0.45rem;
}

.feature-help__steps li:last-child {
    margin-bottom: 0;
}

.feature-help__note {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.75rem;
}

.feature-help__callout {
    margin-bottom: 1.25rem;
    padding: 0.9rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid #9ec5d0;
    background: linear-gradient(180deg, #e8f4f7 0%, #dceef3 100%);
}

.feature-help__callout-title {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e3f47;
    margin-bottom: 0.5rem;
}

.feature-help__callout-title .bi {
    color: #c45c3e;
}
