/* Admin notifications: sidebar bell, landing badges, list cards */

.section-link-notify-row {
    display: flex;
    align-items: stretch;
    gap: 0.1rem;
    margin: 0 0.5rem;
}

.section-link-notify-row > .section-link.section-link--notify-grow {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
    margin-right: 0;
}

.section-link-notify-btn {
    position: relative;
    flex: 0 0 auto;
    width: 2.25rem;
    align-self: center;
    min-height: 2.25rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-med-gray);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.section-link-notify-btn:hover {
    background: var(--color-highlighted-sidebar-bg);
    color: var(--color-dark-green);
}

.section-link-notify-btn.is-active {
    background: var(--color-highlighted-sidebar-bg);
    color: var(--color-dark-green);
}

.section-link-notify-icon {
    display: block;
}

.section-link-notify-badge {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    box-sizing: border-box;
    border: 1.5px solid var(--color-bg, #fafaf8);
    pointer-events: none;
}

.page-landing .tool-card-icon-wrap {
    position: relative;
    flex-shrink: 0;
    display: block;
    line-height: 0;
}

.page-landing .tool-card-notify-badge {
    position: absolute;
    top: -0.5rem;
    right: -0.5rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    box-sizing: border-box;
    border: 1.5px solid var(--color-bg, #fafaf8);
    pointer-events: none;
}

.page-landing .tool-card-notify-badge--card {
    position: static;
    align-self: flex-start;
    margin-left: auto;
    flex-shrink: 0;
}

.admin-notify-page-intro {
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
}

.admin-notify-section {
    margin-bottom: 2rem;
}

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

.admin-notify-section-title {
    margin: 0 0 0.85rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}

.admin-notify-section-empty {
    margin: 0 0 1rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.admin-notify-section--older .admin-notify-booking-card,
.admin-notify-section--older .eval-form-response-card {
    opacity: 0.9;
}

.admin-notify-booking-cards {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 1.5rem;
}

.admin-notify-booking-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.9rem 1rem 1rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.07);
    text-decoration: none;
    color: inherit;
    display: block;
}

.admin-notify-booking-card:hover {
    border-color: var(--color-primary);
}

.admin-notify-pills {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
}

.admin-notify-pill {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    line-height: 1.2;
    border: 1px solid transparent;
}

.admin-notify-pill--calendar {
    color: var(--color-dark-green);
    background: var(--color-pale-green, #e8f5e9);
}

.admin-notify-pill--forms {
    color: #1d4ed8;
    background: #eff6ff;
}

.admin-notify-pill--finances {
    color: #92400e;
    background: #fef3c7;
}

.admin-notify-amount {
    font-weight: 700;
    white-space: nowrap;
}

.admin-notify-amount--income {
    color: var(--color-dark-green, #206f53);
}

.admin-notify-amount--expense {
    color: #b91c1c;
}

.admin-notify-event {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.2;
}

.admin-notify-booking-card__meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.admin-notify-booking-card__date {
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
    white-space: nowrap;
}

.header-global-notify-body .admin-notify-pills {
    margin-bottom: 0.25rem;
}

.admin-notify-booking-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin: 0 0 0.35rem;
    line-height: 1.35;
}

.admin-notify-booking-card__meta {
    font-size: 0.88rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.4;
}

.eval-form-response-cards {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    margin-bottom: 1.5rem;
    overflow: visible;
}

.eval-form-response-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: var(--radius);
    background: #fff;
    padding: 0.9rem 1rem 1rem;
    min-height: 5.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] .eval-form-response-card,
[data-theme="dark"] .admin-notify-booking-card {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
}

.eval-form-response-card__sign-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 0.4rem 2.35rem 0 0;
}

.eval-form-response-card__sign-label {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
}

.eval-form-response-card__sign-label--in-progress {
    background: #facc15;
    color: #111827;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.eval-form-response-card__sign-label--completed {
    background: #22c55e;
    color: #fff;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.eval-form-response-card__sign-count {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.2;
    color: #374151;
}

.eval-form-response-card__tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    margin-bottom: 0.5rem;
}

.eval-form-response-card__form {
    font-size: 0.78rem;
    color: #6b7280;
    margin: 0 0 0.35rem;
}

.eval-form-response-card__form a,
.eval-form-response-card__name a {
    color: inherit;
    text-decoration: none;
}

.eval-form-response-card__form a:hover,
.eval-form-response-card__name a:hover {
    color: var(--color-dark-green);
}

.eval-form-response-card__name {
    font-weight: 700;
    font-size: 1rem;
    color: #111827;
    margin: 0 2.35rem 0 0;
    line-height: 1.35;
    word-break: break-word;
}

.eval-form-response-card__pdf {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: none;
    border-radius: var(--radius);
    background: transparent;
    color: var(--color-primary);
    text-decoration: none;
    box-shadow: none;
}

.eval-form-response-card__pdf:hover {
    color: var(--color-primary-hover);
}

.eval-form-response-card__pdf[aria-disabled="true"] {
    opacity: 0.45;
    pointer-events: none;
}

.eval-form-response-card__pdf svg {
    width: 1.1rem;
    height: 1.1rem;
}

/* Global header notification bell + dropdown (self-contained; no scheduling-calendar.css) */
.header-actions {
    align-items: center;
    position: relative;
    overflow: visible;
}

.header-inner,
.header-right {
    overflow: visible;
}

.header-global-notify-menu {
    position: relative;
    flex-shrink: 0;
    z-index: 320;
}

.header-global-notify-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    padding: 0;
    margin: 0;
    border: none;
    border-radius: var(--radius, 8px);
    background: transparent;
    color: var(--color-med-gray);
    cursor: pointer;
    box-sizing: border-box;
}

.header-global-notify-btn:hover,
.header-global-notify-btn:focus {
    background: var(--color-pale-green, #e8f5e9);
    color: var(--color-dark-green);
}

.header-global-notify-btn:focus-visible {
    outline: 2px solid var(--color-dark-green);
    outline-offset: 1px;
}

.header-global-notify-icon {
    display: block;
    width: 1.35rem;
    height: 1.35rem;
}

.header-global-notify-badge {
    position: absolute;
    top: 0.1rem;
    right: 0.1rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 999px;
    background: #dc2626;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.1rem;
    text-align: center;
    box-sizing: border-box;
    border: 1.5px solid var(--color-bg, #fafaf8);
    pointer-events: none;
}

.header-global-notify-popover {
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    left: auto;
    z-index: 321;
    min-width: 20rem;
    max-width: min(24rem, calc(100vw - 2rem));
    padding: 0.35rem 0;
    max-height: min(24rem, calc(100vh - 5rem));
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--color-border, #e5e7eb);
    border-radius: var(--radius, 8px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
}

.header-global-notify-popover[hidden] {
    display: none !important;
}

[data-theme="dark"] .header-global-notify-popover {
    background: var(--color-bg-alt, #1f2937);
    border-color: var(--color-border, #374151);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.header-global-notify-empty {
    margin: 0.5rem 0.85rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.header-global-notify-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-global-notify-list > li + li {
    border-top: 1px solid var(--color-border, #e5e7eb);
}

[data-theme="dark"] .header-global-notify-list > li + li {
    border-top-color: var(--color-border, #374151);
}

.header-global-notify-row {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 0.6rem 0.85rem;
}

.header-global-notify-row--unread {
    background: var(--color-pale-green, #e8f5e9);
}

.header-global-notify-row--unread:hover,
.header-global-notify-row--unread:focus-within {
    background: var(--color-highlighted-sidebar-bg, var(--color-pale-green, #e8f5e9));
}

.header-global-notify-row--read:hover,
.header-global-notify-row--read:focus-within {
    background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .header-global-notify-row--unread {
    background: rgba(89, 167, 114, 0.18);
}

[data-theme="dark"] .header-global-notify-row--unread:hover,
[data-theme="dark"] .header-global-notify-row--unread:focus-within {
    background: rgba(89, 167, 114, 0.26);
}

[data-theme="dark"] .header-global-notify-row--read:hover,
[data-theme="dark"] .header-global-notify-row--read:focus-within {
    background: rgba(255, 255, 255, 0.04);
}

.header-global-notify-dot-btn {
    flex-shrink: 0;
    width: 0.5rem;
    height: 0.5rem;
    margin-top: 0.45rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: default;
}

.header-global-notify-dot-btn--unread {
    background: #dc2626;
    pointer-events: none;
}

.header-global-notify-dot-btn--read {
    background: #9ca3af;
    cursor: pointer;
}

.header-global-notify-dot-btn--read:hover,
.header-global-notify-dot-btn--read:focus-visible {
    background: #6b7280;
    outline: 2px solid var(--color-dark-green);
    outline-offset: 2px;
}

.header-global-notify-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--color-text);
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    box-sizing: border-box;
}

.header-global-notify-item:hover,
.header-global-notify-item:focus {
    color: var(--color-text);
    text-decoration: none;
}

.header-global-notify-item:focus-visible {
    outline: 2px solid var(--color-dark-green);
    outline-offset: 2px;
    border-radius: 2px;
}

.header-global-notify-body {
    flex: 1 1 auto;
    min-width: 0;
}

.header-global-notify-title {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

.header-global-notify-desc {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--color-text-muted);
    margin-top: 0.1rem;
}

.header-global-notify-when {
    flex-shrink: 0;
    text-align: right;
    min-width: 4.75rem;
    max-width: 6.5rem;
}

.header-global-notify-relative {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text-muted);
    white-space: nowrap;
}

/* Form response highlight: pulse behind white card face (::after), content on top */
.eval-form-response-card--notify-highlight {
    position: relative;
    overflow: visible;
    z-index: 1;
    isolation: isolate;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.eval-form-response-card--notify-highlight::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border: none;
    border-radius: inherit;
    background: var(--color-med-green, #59a772);
    pointer-events: none;
    transform-origin: center center;
    animation: eval-form-response-notify-pulse-out 2.8s ease-out infinite;
}

.eval-form-response-card--notify-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: #fff;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.07);
    pointer-events: none;
}

.eval-form-response-card--notify-highlight > * {
    position: relative;
    z-index: 2;
}

[data-theme="dark"] .eval-form-response-card--notify-highlight::after {
    background: #fff;
    border-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35);
}

@keyframes eval-form-response-notify-pulse-out {
    0% {
        transform: scale(1);
        opacity: 0.28;
    }
    100% {
        transform: scale(1.32);
        opacity: 0;
    }
}
