/* Seasonal decoration for the existing PackExpress surfaces. */
.pe-ny-owned[hidden] { display: none; }
.pe-ny-switch {
 display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; gap: 6px;
 height: 32px; padding: 0 10px; border: 1px solid #dce2dc; border-radius: 7px;
 background: #fff; color: #64746b; font-family: inherit; font-size: 12px; font-weight: 500; line-height: 1.2;
 cursor: pointer; white-space: nowrap; transition: border-color .15s, background-color .15s;
}
.pe-ny-switch-icon { font-size: 19px; line-height: 1; color: #809389; }
.pe-ny-switch[aria-pressed="true"] { color: #285441; border-color: #d0dccc; background: #f4f7ef; }
.pe-ny-switch[aria-pressed="true"] .pe-ny-switch-icon { color: #ad7835; }
.pe-ny-switch:hover { border-color: #a2b39f; background: #eef3ea; }
.pe-ny-switch:focus-visible { outline: 3px solid #c99d50; outline-offset: 3px; }
.wms-topbar > .pe-ny-switch { order: 3; }

/* Admin: evergreen navigation, warm lights and a paper report surface. */
@media screen {
body.pe-ny-active[data-ny-surface="admin"] .wms-main {
    background: linear-gradient(180deg, #e9eee5, #f4f7f2 270px);
}
body.pe-ny-active[data-ny-surface="admin"] .wms-sidebar {
    background: radial-gradient(ellipse at 100% 0%, #315643, transparent 42%), #102a24;
}
body.pe-ny-active[data-ny-surface="admin"] .wms-sidebar-header {
    background: url("assets/new-year/evergreen.svg") no-repeat right -45px top -9px / 144px auto, #1a372d;
    border-bottom-color: #bfa97455;
}
body.pe-ny-active[data-ny-surface="admin"] .wms-brand-icon {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    background: #b4985a2b;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px #dfc48957;
}
body.pe-ny-active[data-ny-surface="admin"] .wms-brand-text {
    color: #fff6df;
}
body.pe-ny-active[data-ny-surface="admin"] .wms-nav-item { color: #d0dfd1; }
body.pe-ny-active[data-ny-surface="admin"] .wms-nav-group-title { color: #a2b8a6; }
body.pe-ny-active[data-ny-surface="admin"] .wms-nav-item:hover { background-color: #ffffff14; color: #fff; }
body.pe-ny-active[data-ny-surface="admin"] .wms-nav-item.active {
    background: linear-gradient(90deg, #42674f, #2b4a3e);
    color: #fff9e7;
    box-shadow: inset 3px 0 #dfbf83, inset 0 0 0 1px #afc6a42b;
}
body.pe-ny-active[data-ny-surface="admin"] .wms-sidebar-footer { background: #10251e; }
body.pe-ny-active[data-ny-surface="admin"] .wms-topbar {
    background: url("assets/new-year/lights.svg") repeat-x center top / 330px 16px,
        linear-gradient(100deg, #fbf8ed, #fffcf6 54%, #f5efdf);
}
body.pe-ny-active[data-ny-surface="admin"] .dash-period {
    background: linear-gradient(106deg, #fffdf7 35%, #edf4e9);
    border-color: #cddbcc;
    border-inline-start: 4px solid #779268;
}
body.pe-ny-active[data-ny-surface="admin"] .dash-period-icon {
    background: #e5eee0;
    color: #2d624c;
    box-shadow: inset 0 0 0 1px #cddbc7;
}
body.pe-ny-active[data-ny-surface="admin"] .dash-kpis .card {
    box-shadow: inset 0 2px #d2b783, 0 3px 10px #24382513 !important;
}
@media (min-width: 992px) {
    body.pe-ny-active[data-ny-surface="admin"] .dash-period {
        background-image: url("assets/new-year/evergreen.svg"), linear-gradient(106deg, #fffdf7 35%, #edf4e9);
        background-repeat: no-repeat;
        background-position: right -15px top -8px, center;
        background-size: 124px 79px, auto;
    }
    body.pe-ny-active[data-ny-surface="admin"] .dash-period-heading { padding-inline-end: 105px; }
}

/* Client: burgundy wrapping around the original page, with a parcel in Analytics. */
body.pe-ny-active[data-ny-surface="cabinet"] .wms-main { background-color: #fbf4ef; }
body.pe-ny-active[data-ny-surface="cabinet"] .wms-sidebar {
    background: linear-gradient(165deg, #4b222d, #331b23 54%, #281a21);
}
body.pe-ny-active[data-ny-surface="cabinet"] .wms-sidebar-header {
    background: linear-gradient(90deg, transparent calc(100% - 11px), #c37770 calc(100% - 11px), #c37770 calc(100% - 7px), #78323f calc(100% - 7px)), #542731;
    border-bottom-color: #ffffff25;
}
body.pe-ny-active[data-ny-surface="cabinet"] .wms-nav-group-title { color: #d0abb0; }
body.pe-ny-active[data-ny-surface="cabinet"] .wms-nav-item { color: #f0dfe0; }
body.pe-ny-active[data-ny-surface="cabinet"] .wms-nav-item:hover { color: #fff; background-color: #ffffff12; }
body.pe-ny-active[data-ny-surface="cabinet"] .wms-nav-item.active {
    color: #fff; background: #853548; box-shadow: inset 3px 0 #f1ca9c;
}
body.pe-ny-active[data-ny-surface="cabinet"] .wms-sidebar-footer { background: #29191f; }
body.pe-ny-active[data-ny-surface="cabinet"] .wms-topbar {
    background: linear-gradient(115deg, #f7e5e1, #fffbf4 46%, #f7e5e1);
}
body.pe-ny-active[data-ny-surface="cabinet"] .wms-topbar .pe-ny-switch[aria-pressed="true"] {
    background: #fff7f3; color: #792f42; border-color: #e4c4c4;
}
body.pe-ny-active[data-ny-surface="cabinet"] .cab-card { border-color: #ead8d4; }
body.pe-ny-active[data-ny-surface="cabinet"] .cab-card-header {
    background-color: #fff6f1;
    box-shadow: inset 3px 0 #bc6d73;
}
body.pe-ny-active[data-ny-surface="cabinet"] #tab_analytics .cab-card-header {
    padding-inline-end: 92px;
    position: relative;
    background-image: radial-gradient(circle at 88% 35%, #e8b8a95c 0 3px, transparent 4px),
        radial-gradient(circle at 94% 75%, #e8b8a96b 0 4px, transparent 5px), linear-gradient(100deg, #fffaf5 48%, #f4e0df);
}
body.pe-ny-active[data-ny-surface="cabinet"] #tab_analytics .cab-card-header::after {
    content: "";
    position: absolute;
    inset-inline-end: 24px;
    top: calc(50% - 15px);
    width: 39px;
    height: 31px;
    border-radius: 3px;
    border: 1px solid #ad837052;
    background: linear-gradient(90deg, transparent 40%, #a3394d 40% 58%, transparent 58%),
        linear-gradient(transparent 42%, #a3394d 42% 60%, transparent 60%), linear-gradient(140deg, #fff3db, #eac7aa);
    box-shadow: 2px 3px 0 #b8878650;
    transform: rotate(10deg);
    pointer-events: none;
}
body.pe-ny-active[data-ny-surface="cabinet"] #tab_analytics .cab-card-header::before {
    content: "";
    position: absolute;
    inset-inline-end: 40px;
    top: calc(50% - 22px);
    width: 11px;
    height: 9px;
    border: 2px solid #a3394d;
    border-radius: 6px 6px 0 6px;
    transform: rotate(18deg);
    pointer-events: none;
}
body.pe-ny-active[data-ny-surface="cabinet"] .cab-stat-card { border-color: #ead8d4; }

/* TSD: a winter shift, with the loading dock inside the FBS action. */
body.pe-ny-active[data-ny-surface="tsd"] .tsd-bar {
    background-color: #162232;
    border-bottom-color: #aa875951;
    background-image: url("assets/new-year/lights.svg"), linear-gradient(110deg, #172337, #1b3347);
    background-size: 295px 13px, 100% 100%;
    background-repeat: repeat-x, no-repeat;
}
.tsd-bar .pe-ny-switch { height: 36px; width: 36px; padding: 0; border-color: #4d6371; background: #192533; }
.tsd-bar .pe-ny-switch[aria-pressed="true"] { background: #22384d; border-color: #7899ae; }
.tsd-bar .pe-ny-switch-icon, .tsd-bar .pe-ny-switch[aria-pressed="true"] .pe-ny-switch-icon { color: #d2eaf5; }
.tsd-bar .pe-ny-switch-label { display: none; }
body.pe-ny-active[data-ny-surface="tsd"] .tsd-view:has(> .tsd-hello + .tsd-tiles) {
    background: radial-gradient(circle at 94% 30px, #7eabc6 0 1px, transparent 2px),
        radial-gradient(circle at 4% 255px, #7298b3 0 1px, transparent 2px),
        radial-gradient(ellipse at 100% 0%, #2d526b, transparent 48%),
        linear-gradient(180deg, #17253a, #0c131f 560px);
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 29px;
    margin-bottom: 10px;
    color: #eff4fa;
    overflow-wrap: anywhere;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello::after {
    content: "❄ ✦ ·" / "";
    flex: 0 0 auto;
    color: #ecd6a4;
    font-size: 20px;
    letter-spacing: .2em;
    text-shadow: 0 0 12px #f0c77285;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles .tsd-tile {
    border-top-color: #678ea6;
    border-inline-end-color: #476676;
    background-color: #162433;
    box-shadow: inset 0 16px 21px -21px #c3e6fa9c;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles .tsd-tile-ico {
    box-shadow: inset 0 0 0 1px #b4deef40, inset 0 1px #e0f1fc7d;
    background-image: linear-gradient(138deg, #d1e6fa47, #294d6740 75%);
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > [data-go="priemka"] {
    border-color: #6797aa;
    background: linear-gradient(110deg, #1d4353, #172d40 78%);
    box-shadow: inset 3px 0 #9acbd0, inset 0 1px #cae9f24c;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > [data-go="fbs"] {
    min-height: 112px;
    border-color: #c79454;
    background-color: #192230;
    background-image: linear-gradient(90deg, #20202b 8%, #202431ee 42%, #19233130 80%),
        url("assets/new-year/tsd-winter-dock.webp");
    background-repeat: no-repeat;
    background-position: center, right center;
    background-size: 100% 100%, clamp(168px, 62vw, 280px) auto;
    box-shadow: inset 0 1px #f3d38c56, 0 4px 15px #080c1266;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > [data-go="fbs"] .tsd-tile-ico {
    background: #946a39a3;
    box-shadow: inset 0 0 0 1px #f1c77b75;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > [data-go="fbs"] .tsd-tile-s {
    max-width: 19ch;
    color: #e7e0d3;
    text-shadow: 0 1px 4px #121722;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > :is([data-go="priemka"], [data-go="fbs"]) {
    position: relative;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > :is([data-go="priemka"], [data-go="fbs"])::before {
    content: "";
    position: absolute;
    top: -4px;
    right: 0;
    width: 112px;
    height: 22px;
    border-top: 1px solid #cca066;
    border-right: 1px solid #cca066;
    border-radius: 0 20px 0 0;
    background:
        radial-gradient(ellipse, #fff3ca 23%, #e8b361 55%, transparent 74%) 0 1px / 8px 8px no-repeat,
        radial-gradient(ellipse, #fff9d5 23%, #f0c464 55%, transparent 74%) 23px 1px / 8px 8px no-repeat,
        radial-gradient(ellipse, #fff3ca 23%, #e8b361 55%, transparent 74%) 46px 1px / 8px 8px no-repeat,
        radial-gradient(ellipse, #fff9d5 23%, #f0c464 55%, transparent 74%) 69px 1px / 8px 8px no-repeat,
        radial-gradient(ellipse, #fff3ca 23%, #e8b361 55%, transparent 74%) 90px 3px / 8px 8px no-repeat,
        radial-gradient(ellipse, #fff9d5 23%, #f0c464 55%, transparent 74%) 104px 13px / 8px 8px no-repeat;
    filter: drop-shadow(0 0 4px #f5ba649e);
    pointer-events: none;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > [data-go="priemka"]::before {
    width: 91px;
    background-position: 0 1px, 18px 1px, 36px 1px, 54px 1px, 70px 3px, 83px 13px;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > :is([data-go="priemka"], [data-go="fbs"])::after {
    content: "";
    position: absolute;
    top: 10px;
    right: 0;
    width: 33px;
    height: 30px;
    background:
        radial-gradient(circle, #ffe3bf 15%, transparent 70%) 3px 18px / 6px 6px no-repeat,
        radial-gradient(circle, #fff6d6 15%, transparent 70%) 21px 13px / 5px 5px no-repeat,
        radial-gradient(circle 8px, #ed8674, #bf3e55 60%, #850d31 88%, transparent 100%) 0 14px / 16px 16px no-repeat,
        radial-gradient(circle 6px, #ffdb94, #d5a462 68%, #9c6937 88%, transparent 100%) 19px 10px / 12px 12px no-repeat,
        linear-gradient(#d8b37a, #d8b37a) 6px 12px / 4px 3px no-repeat,
        linear-gradient(#d8b37a, #d8b37a) 23px 9px / 4px 3px no-repeat,
        linear-gradient(#c6a065, #c6a065) 7px 0 / 1px 13px no-repeat,
        linear-gradient(#c6a065, #c6a065) 24px 2px / 1px 8px no-repeat;
    pointer-events: none;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-hello + .tsd-tiles > [data-go="priemka"]::after {
    transform: scale(.84);
    transform-origin: right top;
}
body.pe-ny-active[data-ny-surface="tsd"] .tsd-foot { border-top-color: #395b73; }

/* The login illustration sits in the surrounding background, never inside the form. */
body.pe-ny-active[data-ny-surface$="-login"] {
    background: url("assets/new-year/evergreen.svg") no-repeat calc(50% + 460px) -78px / 830px auto,
        radial-gradient(ellipse at 80% 10%, var(--pe-ny-login-glow), transparent 56%), var(--pe-ny-login-bg);
    padding: 28px 16px;
    --pe-ny-login-glow: #425a43;
    --pe-ny-login-bg: #0d2b24;
    --pe-ny-login-card: #122d26;
    --pe-ny-login-input: #0d231e;
    --pe-ny-login-border: #506659;
}
body.pe-ny-active[data-ny-surface="cabinet-login"] {
    --pe-ny-login-glow: #713845;
    --pe-ny-login-bg: #2f1a23;
    --pe-ny-login-card: #3c232e;
    --pe-ny-login-input: #301e27;
    --pe-ny-login-border: #755662;
}
body.pe-ny-active[data-ny-surface$="-login"] .login-card {
    background: var(--pe-ny-login-card);
    border-color: var(--pe-ny-login-border);
    box-shadow: 0 24px 54px #0004, inset 0 2px #e4c08e85;
    backdrop-filter: none;
}
body.pe-ny-active[data-ny-surface$="-login"] .login-card:hover { transform: none; }
body.pe-ny-active[data-ny-surface$="-login"] .form-control { background-color: var(--pe-ny-login-input); border-color: var(--pe-ny-login-border); }
body.pe-ny-active[data-ny-surface$="-login"] .form-label { color: #eee2d8; }
body.pe-ny-active[data-ny-surface$="-login"] .login-card :is(.text-muted, .text-secondary) { color: #dbcdc6 !important; }
body.pe-ny-active[data-ny-surface$="-login"] .form-control::placeholder { color: #cabdb5; opacity: 1; }
.pe-ny-login-controls { display: flex; justify-content: center; margin-top: 18px; }
.pe-ny-login-controls .pe-ny-switch { color: #dfd3c6; background: transparent; border-color: #a5988170; }
.pe-ny-login-controls .pe-ny-switch:hover { background: #ffffff12; }
}
@media (max-width: 640px) {
    .pe-ny-switch { width: 34px; padding: 0; }
    .pe-ny-switch-label { display: none; }
    .wms-topbar > .pe-ny-switch { order: 0; }
    body.pe-ny-active[data-ny-surface="cabinet"] #tab_analytics .cab-card-header { padding-inline-end: 62px; }
    body.pe-ny-active[data-ny-surface="cabinet"] #tab_analytics .cab-card-header::after { inset-inline-end: 14px; width: 31px; height: 25px; top: calc(50% - 12px); }
    body.pe-ny-active[data-ny-surface="cabinet"] #tab_analytics .cab-card-header::before { inset-inline-end: 26px; top: calc(50% - 19px); }
    body.pe-ny-active[data-ny-surface$="-login"] { background-position: calc(50% + 92px) -76px, center; background-size: 455px auto, auto; }
    .pe-ny-login-controls .pe-ny-switch { width: auto; padding: 0 10px; }
    .pe-ny-login-controls .pe-ny-switch-label { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
    .pe-ny-switch { transition: none; }
}
@media print {
    .pe-ny-owned { display: none !important; }
}
