/* Production Emerald visual layer. Revert this stylesheet include to roll back. */
:root {
    --rz-emerald-ink: #0d1814;
    --rz-emerald-graphite: #101b17;
    --rz-emerald-mist: #edf4f0;
    --rz-emerald-lime: #b9f37c;
    --rz-emerald-border: #cfd9d4;
    --rz-shadow-xs: 0 8px 22px rgb(13 35 26 / 0.06);
    --rz-shadow-sm: 0 12px 28px rgb(13 35 26 / 0.09);
    --rz-shadow-md: 0 18px 38px rgb(13 35 26 / 0.12);
}

body {
    background-color: var(--rz-color-page);
    background-image:
        radial-gradient(circle at 92% 0, rgb(64 185 121 / 0.08), transparent 25rem),
        linear-gradient(180deg, #f5f7f6 0, var(--rz-color-page) 28rem);
}

.page-header__eyebrow {
    color: var(--rz-color-brand);
    font-weight: 750;
    letter-spacing: 0.1em;
}

.card,
.rz-panel,
.rz-directory,
.modal-content,
.dropdown-menu,
.accordion-item {
    border-color: var(--rz-emerald-border);
    border-radius: 2px;
    box-shadow: var(--rz-shadow-xs);
}

.card,
.rz-panel,
.rz-directory,
.accordion-item {
    background: linear-gradient(145deg, var(--rz-color-surface), #fbfdfc);
}

.app-header::before {
    /*background: linear-gradient(90deg, rgb(255 255 255 / 0.92), rgb(239 247 243 / 0.88));*/
    -webkit-backdrop-filter: blur(12px) saturate(130%);
    backdrop-filter: blur(12px) saturate(130%);
}

.app-header .nav-link.active::before {
    background: linear-gradient(90deg, var(--rz-color-brand), var(--rz-color-brand-light), var(--rz-emerald-lime));
    box-shadow: 0 0 12px rgb(64 185 121 / 0.25);
}

.btn {
    border-radius: 2px;
}

.btn-primary {
    --bs-btn-bg: transparent;
    --bs-btn-border-color: transparent;
    --bs-btn-hover-bg: transparent;
    --bs-btn-hover-border-color: transparent;
    --bs-btn-active-bg: transparent;
    --bs-btn-active-border-color: transparent;
    --bs-btn-disabled-bg: transparent;
    --bs-btn-disabled-border-color: transparent;
    position: relative;
    border: 0;
    overflow: hidden;
    background: linear-gradient(135deg, rgb(35 174 104 / 0.96), rgb(0 82 44 / 0.98));
    box-shadow:
        0 10px 22px rgb(0 61 34 / 0.22),
        inset 0 1px rgb(255 255 255 / 0.2);
    color: #fff;
    -webkit-backdrop-filter: blur(12px) saturate(145%);
    backdrop-filter: blur(12px) saturate(145%);
}

.btn-primary::before {
    position: absolute;
    inset: 0 0 auto;
    height: 45%;
    background: linear-gradient(180deg, rgb(255 255 255 / 0.22), transparent);
    content: "";
    pointer-events: none;
}

.btn-primary > * {
    position: relative;
    z-index: 1;
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, rgb(40 185 112 / 0.98), rgb(0 74 40));
    box-shadow:
        0 14px 28px rgb(0 61 34 / 0.3),
        inset 0 1px rgb(255 255 255 / 0.26);
    color: #fff;
}

.btn-primary:active:not(:disabled) {
    background: linear-gradient(135deg, #168356, #00452a);
    box-shadow:
        0 6px 14px rgb(0 61 34 / 0.2),
        inset 0 1px rgb(255 255 255 / 0.14);
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #719c86, #4e7561);
    box-shadow: none;
    color: rgb(255 255 255 / 0.76);
}

.btn-outline-primary {
    --bs-btn-color: var(--rz-color-brand);
    --bs-btn-border-color: rgb(1 96 51 / 0.38);
    --bs-btn-hover-color: var(--rz-emerald-ink);
    --bs-btn-hover-bg: rgb(229 242 235 / 0.88);
    --bs-btn-hover-border-color: rgb(1 96 51 / 0.62);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.9), rgb(229 240 235 / 0.72));
    box-shadow: inset 0 1px #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-outline-primary:is(.active, :active),
.btn-check:checked + .btn-outline-primary {
    border-color: rgb(219 255 234 / 0.58);
    background: linear-gradient(135deg, rgb(35 174 104 / 0.96), rgb(0 82 44 / 0.98));
    box-shadow:
        0 9px 20px rgb(0 61 34 / 0.22),
        inset 0 1px rgb(255 255 255 / 0.2);
    color: #fff;
}

.btn-outline-primary:is(.active, :active):hover,
.btn-check:checked + .btn-outline-primary:hover {
    border-color: rgb(219 255 234 / 0.76);
    background: linear-gradient(135deg, rgb(40 185 112 / 0.98), rgb(0 74 40));
    color: #fff;
}

.btn-secondary {
    --bs-btn-bg: var(--rz-emerald-graphite);
    --bs-btn-border-color: #263b33;
    --bs-btn-hover-bg: #1b3027;
    --bs-btn-hover-border-color: #385448;
    box-shadow: inset 0 1px rgb(255 255 255 / 0.1);
}

.rz-icon-button,
.icon-button {
    border-color: var(--rz-emerald-border);
    border-radius: 30%;
    background: linear-gradient(135deg, rgb(255 255 255 / 0.9), rgb(229 240 235 / 0.72));
    box-shadow: inset 0 1px #fff;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.form-control,
.form-select,
.input-group-text,
.select2-container--bootstrap-5 .select2-selection {
    border-color: var(--rz-emerald-border);
    border-radius: 2px;
    background-color: var(--rz-color-surface);
    background-image: linear-gradient(135deg, rgb(255 255 255 / 0.98), rgb(247 250 248 / 0.94));
    box-shadow: inset 0 1px 2px rgb(13 35 26 / 0.04);
}

.form-control:focus,
.form-select:focus,
.select2-container--bootstrap-5.select2-container--focus .select2-selection {
    border-color: var(--rz-color-brand);
    box-shadow: var(--rz-focus-ring);
}

.form-check-input {
    border-color: var(--rz-emerald-border);
    border-radius: 2px;
}

.form-check-input:checked {
    border-color: var(--rz-color-brand);
    background-color: var(--rz-color-brand);
}

.rz-status,
.badge {
    border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
    border-radius: 2px;
    font-weight: 700;
}

.alert,
.rz-state,
.rz-empty-state {
    border-radius: 2px;
}

.alert {
    border-left-width: 3px;
    box-shadow: var(--rz-shadow-xs);
}

.rz-empty-state {
    background:
        radial-gradient(circle at 50% 15%, rgb(64 185 121 / 0.1), transparent 10rem),
        linear-gradient(145deg, var(--rz-color-surface), var(--rz-emerald-mist));
}
.rz-empty-state.rz-empty-state--plain { border: 0; background: transparent; box-shadow: none; }

.rz-progress {
    height: 5px;
    border-radius: 2px;
    background: #dce5e0;
}

.rz-progress__value {
    border-radius: 2px;
    background: linear-gradient(90deg, var(--rz-color-brand), var(--rz-color-brand-light), var(--rz-emerald-lime));
    box-shadow: 0 0 12px rgb(64 185 121 / 0.3);
}

.rz-metric {
    border-color: var(--rz-emerald-border);
    border-radius: 2px;
    background: linear-gradient(145deg, var(--rz-color-surface), var(--rz-emerald-mist));
    box-shadow: var(--rz-shadow-xs);
}

.rz-metric--primary {
    border-color: rgb(185 243 124 / 0.24);
    background:
        radial-gradient(circle at 90% 5%, rgb(64 185 121 / 0.2), transparent 35%),
        var(--rz-emerald-graphite);
}

.rz-metric--primary :is(.rz-metric__label, .rz-metric__value) {
    color: #fff;
}

.rz-metric--primary .rz-metric__note {
    color: var(--rz-emerald-lime);
}

.table > :not(caption) > * > * {
    border-bottom-color: var(--rz-emerald-border);
}

.table > thead {
    background: var(--rz-emerald-graphite);
    color: rgb(255 255 255 / 0.76);
}

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f3faf6;
}

.page-link {
    border-color: var(--rz-emerald-border);
    border-radius: 2px !important;
    color: var(--rz-color-brand);
}

.page-item.active .page-link {
    border-color: var(--rz-color-brand);
    background: linear-gradient(135deg, #168356, var(--rz-color-brand));
    box-shadow: 0 5px 12px rgb(1 96 51 / 0.2);
}

.dropdown-menu,
.modal-content,
.offcanvas,
.popover {
    border-color: rgb(207 217 212 / 0.82);
    border-radius: 2px;
    background:
        linear-gradient(145deg, rgb(255 255 255 / 0.95), rgb(239 247 243 / 0.91));
    box-shadow: var(--rz-shadow-md);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    backdrop-filter: blur(14px) saturate(130%);
}

.rz-week-deadlines {
    border-color: rgb(185 243 124 / 0.2);
    border-radius: 2px;
    background:
        radial-gradient(circle at 105% -5%, rgb(64 185 121 / 0.24), transparent 32%),
        linear-gradient(145deg, var(--rz-emerald-graphite), #052719);
    box-shadow: 0 18px 38px rgb(13 35 26 / 0.18);
    color: #fff;
}

.rz-week-deadlines.rz-panel--feature {
    border-radius: 24px 2px 24px 2px;
}

.rz-week-deadlines .card-body {
    gap: var(--rz-space-5);
}

.rz-week-deadlines__header {
    align-items: flex-start;
}

.rz-week-deadlines__header h2 {
    color: #fff;
}

.rz-week-deadlines__eyebrow {
    display: block;
    margin-bottom: var(--rz-space-1);
    color: var(--rz-emerald-lime);
    font-size: 9px;
    font-weight: 750;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.rz-week-deadlines__range {
    color: rgb(255 255 255 / 0.55);
    font-size: 10px;
    font-weight: 650;
    white-space: nowrap;
}

.rz-week-deadlines__focus {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: stretch;
    gap: var(--rz-space-4);
}

.rz-week-deadlines__focus-date {
    display: grid;
    min-height: 104px;
    align-content: center;
    justify-items: center;
    border: 1px solid rgb(185 243 124 / 0.3);
    border-radius: 2px;
    background: rgb(185 243 124 / 0.1);
    color: #fff;
    text-decoration: none;
}

.rz-week-deadlines__focus-date span,
.rz-week-deadlines__focus-body > span {
    color: var(--rz-emerald-lime);
    font-size: 9px;
    font-weight: 750;
    text-transform: uppercase;
}

.rz-week-deadlines__focus-date strong {
    font-size: 2.25rem;
    line-height: 1;
}

.rz-week-deadlines__focus-date small,
.rz-week-deadlines__focus-body small {
    color: rgb(255 255 255 / 0.55);
    font-size: 8px;
}

.rz-week-deadlines__focus-body {
    display: grid;
    align-content: center;
    gap: var(--rz-space-2);
    min-width: 0;
}

.rz-week-deadlines__focus-body strong {
    color: #fff;
    font-size: var(--rz-text-sm);
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.rz-week-deadlines__grid {
    padding-block: var(--rz-space-3);
    border-block: 1px solid rgb(255 255 255 / 0.12);
}

.rz-week-deadlines__day {
    min-width: 0;
    padding: var(--rz-space-2) var(--rz-space-1);
    border-color: transparent;
    border-radius: 2px;
    background: transparent;
    color: rgb(255 255 255 / 0.58);
}

.rz-week-deadlines__day.is-today {
    border-color: rgb(255 255 255 / 0.24);
    background: rgb(255 255 255 / 0.06);
    color: #fff;
}

.rz-week-deadlines__day.has-deadline {
    color: #d9ffad;
}

.rz-week-deadlines__day.is-selected {
    border-color: rgb(185 243 124 / 0.55);
    background: rgb(185 243 124 / 0.12);
    box-shadow: inset 0 -2px 0 var(--rz-emerald-lime);
}

.rz-week-deadlines__day-button:hover {
    background: rgb(185 243 124 / 0.09);
}

.rz-week-deadlines__day-button:focus-visible {
    outline-color: rgb(185 243 124 / 0.72);
}

.rz-week-deadlines__weekday {
    color: inherit;
}

.rz-week-deadlines__day.has-deadline .rz-week-deadlines__marker {
    color: rgb(255 255 255 / 0.58);
}

.rz-week-deadlines__day.is-urgent .rz-week-deadlines__marker {
    color: var(--bs-warning);
    filter: drop-shadow(0 0 5px rgb(213 138 33 / 0.42));
}

.rz-week-deadlines__date {
    color: inherit;
}

.rz-week-deadlines__count {
    border-radius: var(--rz-radius-pill);
    background: var(--rz-emerald-lime);
    color: #082d1e;
}

.rz-week-deadlines__list li {
    padding: var(--rz-space-2);
    border: 1px solid rgb(255 255 255 / 0.12);
    border-radius: 2px;
    background: rgb(255 255 255 / 0.05);
}

.rz-week-deadlines__list-date {
    color: var(--rz-emerald-lime);
}

.rz-week-deadlines__list-title {
    color: rgb(255 255 255 / 0.82);
}

.rz-week-deadlines__list-title:hover {
    color: var(--rz-emerald-lime);
    text-decoration: none;
}

.rz-week-deadlines__list-title:focus-visible {
    outline-color: rgb(185 243 124 / 0.72);
}

.resource-panel {
    border-color: var(--rz-emerald-border);
    background: #fff;
}

.resource-panel::before {
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--rz-color-brand), var(--rz-emerald-lime));
    box-shadow: 0 0 14px rgb(185 243 124 / 0.45);
    content: "";
}

.resource-panel__heading,
.resource-edit-hint {
    border-bottom-color: var(--rz-emerald-border);
}

.resource-reorder-toggle,
.resource-order-button {
    border-color: rgb(1 96 51 / 0.18);
    background: linear-gradient(135deg, rgb(255 255 255 / 0.92), rgb(229 240 235 / 0.72));
    box-shadow: inset 0 1px #ffffff9c;
}

.resource-reorder-toggle:hover,
.resource-order-button:hover {
    border-color: var(--rz-color-brand);
}

.resource-panel__count {
    border-color: #263b33;
    background: var(--rz-emerald-graphite);
    box-shadow: inset 0 1px rgb(255 255 255 / 0.1);
    color: var(--rz-emerald-lime);
}

.resource-list-item__link:hover,
.resource-list-item__link:focus-visible {
    background: rgb(1 96 51 / 0.06);
}

.resource-favorite-button[aria-pressed="true"] {
    box-shadow: inset 2px 0 0 var(--rz-emerald-lime);
}

.resource-list-item.sortable-ghost {
    background: rgb(237 244 240 / 0.88);
}

@media (prefers-reduced-motion: reduce) {
    .btn-primary,
    .btn-outline-primary,
    .rz-icon-button,
    .rz-progress__value {
        transition: none;
    }
}
