:root {
    --bg: #f6f4fb;
    --panel: #ffffff;
    --text: #241b35;
    --muted: #695d80;
    --line: #d8d0e7;
    --primary: #2a2040;
    --primary-dark: #1b142b;
    --primary-soft: #ece8f5;
    --primary-secondary: #c8bedb;
    --accent: #8d7ab5;
    --primary-shadow: rgba(42, 32, 64, 0.16);
    --danger-bg: #fff1f0;
    --danger: #a61b16;
    --success-bg: #f5effb;
    --success: #503078;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body.lab-theme-food-drinks {
    --bg: #f3f8f5;
    --text: #14291e;
    --muted: #52685d;
    --line: #c6d8cd;
    --primary: #1b3025;
    --primary-dark: #102018;
    --primary-soft: #e4eee8;
    --primary-secondary: #b8cec1;
    --accent: #6f8f79;
    --primary-shadow: rgba(27, 48, 37, 0.16);
    --success-bg: #e4eee8;
    --success: #1b3025;
}

body.lab-theme-metallic {
    --bg: #e9eef3;
    --text: #18242a;
    --muted: #4d6570;
    --line: #8fa1aa;
    --primary: #1f2d3d;
    --primary-dark: #131e2b;
    --primary-soft: #dfe7eb;
    --primary-secondary: #8fa1aa;
    --accent: #607d8b;
    --primary-shadow: rgba(31, 45, 61, 0.18);
    --success-bg: #dfe7eb;
    --success: #1f2d3d;
}

body.lab-theme-pesticide {
    --bg: #f4f7f1;
    --text: #1f2e18;
    --muted: #5e6d55;
    --line: #c9d7bd;
    --primary: #22321a;
    --primary-dark: #162310;
    --primary-soft: #e7eee0;
    --primary-secondary: #b9caa9;
    --accent: #798c63;
    --primary-shadow: rgba(34, 50, 26, 0.16);
    --success-bg: #e7eee0;
    --success: #22321a;
}

body.service-theme-customer {
    --bg: #f4f6fa;
    --text: #10243a;
    --muted: #53657a;
    --line: #c5d0de;
    --primary: #1a2f4a;
    --primary-dark: #102038;
    --primary-soft: #e6ebf2;
    --primary-secondary: #aebdce;
    --accent: #5f7692;
    --primary-shadow: rgba(26, 47, 74, 0.16);
    --success-bg: #e6ebf2;
    --success: #1a2f4a;
}

.login-body {
    background: #f7f3fb;
    min-height: 100vh;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
    min-height: 100vh;
}

.login-visual {
    animation: loginVisualTheme 30s infinite;
    background: linear-gradient(145deg, #173a2a, #286c3f 58%, #d68a24);
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: clamp(24px, 5vw, 56px);
    position: relative;
}

.login-brand {
    align-items: center;
    display: flex;
    gap: 14px;
    position: relative;
    z-index: 3;
}

.login-brand img {
    background: #ffffff;
    border-radius: 10px;
    height: 66px;
    object-fit: contain;
    padding: 5px;
    width: 80px;
}

.login-brand span,
.login-visual-copy span {
    color: rgba(255, 255, 255, 0.72);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.login-brand strong {
    display: block;
    font-size: 15px;
    margin-top: 4px;
}

.agri-infographic {
    height: min(44vw, 430px);
    margin: 10px auto;
    max-width: 620px;
    position: relative;
    width: 100%;
}

.agri-sun {
    background: #f3d86d;
    border-radius: 50%;
    height: 86px;
    position: absolute;
    right: 18%;
    top: 12%;
    width: 86px;
}

.agri-hill {
    border-radius: 50% 50% 0 0;
    bottom: 0;
    position: absolute;
}

.agri-hill-back {
    background: rgba(255, 255, 255, 0.14);
    height: 46%;
    left: -5%;
    width: 74%;
}

.agri-hill-front {
    background: #ffffff;
    height: 34%;
    right: -7%;
    width: 78%;
}

.agri-flask {
    background: rgba(255, 255, 255, 0.92);
    border: 9px solid #ffffff;
    border-radius: 8px 8px 42px 42px;
    bottom: 12%;
    height: 170px;
    left: 42%;
    position: absolute;
    width: 132px;
    z-index: 2;
}

.agri-flask::before {
    background: #ffffff;
    content: "";
    height: 62px;
    left: 42px;
    position: absolute;
    top: -68px;
    width: 30px;
}

.agri-flask span {
    background: linear-gradient(180deg, #c2a1dd, #76509a);
    border-radius: 0 0 28px 28px;
    bottom: 0;
    height: 64%;
    left: 0;
    position: absolute;
    width: 100%;
}

.agri-plant {
    bottom: 14%;
    height: 160px;
    position: absolute;
    width: 95px;
    z-index: 2;
}

.agri-plant-left {
    left: 12%;
}

.agri-plant-right {
    right: 10%;
}

.agri-plant::before {
    background: #6b458f;
    bottom: 0;
    content: "";
    height: 145px;
    left: 47px;
    position: absolute;
    width: 5px;
}

.agri-plant i {
    background: #d8c4e8;
    border-radius: 100% 0 100% 0;
    display: block;
    height: 42px;
    margin: 7px 0 0 3px;
    transform: rotate(30deg);
    width: 50px;
}

.agri-plant i:nth-child(even) {
    margin-left: 45px;
    transform: rotate(-120deg);
}

.agri-badge {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 14px;
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    left: 4%;
    padding: 11px 14px;
    position: absolute;
    top: 22%;
    text-transform: uppercase;
}

.login-slideshow {
    flex: 1 1 auto;
    margin: 18px 0;
    min-height: min(56vw, 560px);
    perspective: 1500px;
    position: relative;
    z-index: 2;
}

.login-slide {
    --login-card-bg: rgba(26, 74, 47, 0.88);
    --login-card-glow: rgba(214, 138, 36, 0.34);
    --login-card-line: rgba(255, 255, 255, 0.28);
    --login-card-accent: #d68a24;
    animation: loginCardFlip 30s infinite;
    background:
        radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.22), transparent 30%),
        radial-gradient(circle at 86% 18%, var(--login-card-glow), transparent 34%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.16), transparent 42%),
        var(--login-card-bg);
    border: 1px solid var(--login-card-line);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(12, 8, 24, 0.32);
    display: flex;
    flex-direction: column;
    inset: 0;
    justify-content: space-between;
    opacity: 0;
    overflow: hidden;
    padding: clamp(16px, 3vw, 30px);
    pointer-events: none;
    position: absolute;
    transform: rotateY(-90deg) translateY(18px) scale(0.94);
    transform-origin: center;
    transform-style: preserve-3d;
    will-change: opacity, transform;
}

.login-slide::before {
    border-radius: 999px;
    content: "";
    filter: blur(16px);
    height: 220px;
    opacity: 0.18;
    position: absolute;
    right: 4%;
    top: 12%;
    width: 220px;
    z-index: 0;
}

.login-slide-agric::before {
    background: var(--login-card-accent);
}

.login-slide-pesticide::before {
    background: var(--login-card-accent);
}

.login-slide-metallic::before {
    background: var(--login-card-accent);
}

.login-slide-food-drinks::before {
    background: var(--login-card-accent);
}

.login-slide-mh::before {
    background: var(--login-card-accent);
}

.login-slide > * {
    position: relative;
    z-index: 2;
}

.login-slide-agric {
    --login-card-bg: rgba(26, 82, 49, 0.9);
    --login-card-glow: rgba(226, 147, 38, 0.38);
    --login-card-accent: #e29326;
}

.login-slide-pesticide {
    --login-card-bg: rgba(44, 70, 28, 0.9);
    --login-card-glow: rgba(217, 185, 55, 0.38);
    --login-card-accent: #d9b937;
}

.login-slide-metallic {
    --login-card-bg: rgba(31, 48, 61, 0.92);
    --login-card-glow: rgba(78, 177, 190, 0.42);
    --login-card-accent: #4eb1be;
}

.login-slide-food-drinks {
    --login-card-bg: rgba(33, 82, 58, 0.9);
    --login-card-glow: rgba(124, 180, 112, 0.4);
    --login-card-accent: #7cb470;
}

.login-slide-mh {
    --login-card-bg: rgba(69, 43, 101, 0.91);
    --login-card-glow: rgba(206, 178, 230, 0.38);
    --login-card-accent: #ceb2e6;
}

.login-slide:nth-child(2) {
    animation-delay: 6s;
}

.login-slide:nth-child(3) {
    animation-delay: 12s;
}

.login-slide:nth-child(4) {
    animation-delay: 18s;
}

.login-slide:nth-child(5) {
    animation-delay: 24s;
}

@keyframes loginCardFlip {
    0% {
        opacity: 0;
        transform: rotateY(-96deg) translateY(18px) scale(0.94);
    }

    3%,
    17% {
        opacity: 1;
        transform: rotateY(0deg) translateY(0) scale(1);
    }

    20%,
    100% {
        opacity: 0;
        transform: rotateY(96deg) translateY(-12px) scale(0.94);
    }
}

@keyframes loginVisualTheme {
    0%,
    18% {
        background: linear-gradient(145deg, #173a2a, #286c3f 58%, #d68a24);
    }

    20%,
    38% {
        background: linear-gradient(145deg, #1f3218, #536f2f 58%, #d9b937);
    }

    40%,
    58% {
        background: linear-gradient(145deg, #172331, #2a4156 60%, #4eb1be);
    }

    60%,
    78% {
        background: linear-gradient(145deg, #173827, #2d6c4b 58%, #7cb470);
    }

    80%,
    98% {
        background: linear-gradient(145deg, #241836, #503078 60%, #9d7bc0);
    }

    100% {
        background: linear-gradient(145deg, #173a2a, #286c3f 58%, #d68a24);
    }
}

@keyframes loginPanelAccent {
    0%,
    18% {
        background: #d68a24;
    }

    20%,
    38% {
        background: #b9a12f;
    }

    40%,
    58% {
        background: #4eb1be;
    }

    60%,
    78% {
        background: #5f9f66;
    }

    80%,
    98% {
        background: #9d7bc0;
    }

    100% {
        background: #d68a24;
    }
}

@keyframes loginButtonTheme {
    0%,
    18% {
        background: #286c3f;
    }

    20%,
    38% {
        background: #536f2f;
    }

    40%,
    58% {
        background: #2a4156;
    }

    60%,
    78% {
        background: #2d6c4b;
    }

    80%,
    98% {
        background: #503078;
    }

    100% {
        background: #286c3f;
    }
}

.slide-art {
    height: min(42vw, 390px);
    margin: 4px auto 22px;
    max-width: 610px;
    overflow: hidden;
    padding: 18px;
    position: relative;
    width: 100%;
}

.slide-art::before {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 74%, rgba(255, 255, 255, 0.18), transparent 30%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 26px 70px rgba(19, 8, 34, 0.24);
    content: "";
    inset: 8px;
    position: absolute;
}

.slide-art::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
    background-size: 34px 34px;
    border-radius: 28px;
    content: "";
    inset: 8px;
    opacity: 0.32;
    position: absolute;
}

.slide-art i {
    display: block;
    position: absolute;
    z-index: 2;
}

.slide-orbit {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    height: 310px;
    left: 50%;
    top: 48%;
    transform: translate(-50%, -50%) rotate(-13deg);
    width: 470px;
    z-index: 1;
}

.slide-orbit::before,
.slide-orbit::after {
    background: rgba(255, 255, 255, 0.76);
    border-radius: 50%;
    content: "";
    height: 14px;
    position: absolute;
    width: 14px;
}

.slide-orbit::before {
    left: 24%;
    top: 4%;
}

.slide-orbit::after {
    bottom: 8%;
    right: 20%;
}

.slide-orbit-two {
    height: 270px;
    transform: translate(-50%, -50%) rotate(18deg);
    width: 420px;
}

.slide-grid {
    background:
        linear-gradient(90deg, transparent 0 28px, rgba(255, 255, 255, 0.18) 28px 30px),
        linear-gradient(transparent 0 28px, rgba(255, 255, 255, 0.18) 28px 30px);
    background-size: 30px 30px;
    border-radius: 24px;
    inset: 12%;
    opacity: 0.44;
    z-index: 1;
}

.slide-data-card {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.16);
    height: 82px;
    width: 150px;
}

.slide-data-card::before,
.slide-data-card::after {
    border-radius: 99px;
    content: "";
    left: 18px;
    position: absolute;
}

.slide-data-card::before {
    background: currentColor;
    height: 10px;
    top: 18px;
    width: 58px;
}

.slide-data-card::after {
    background: linear-gradient(90deg, currentColor 0 42%, rgba(0, 0, 0, 0.12) 42% 100%);
    height: 28px;
    top: 40px;
    width: 108px;
}

.slide-data-card-one {
    color: #2e7d32;
    left: 9%;
    top: 13%;
}

.slide-data-card-two {
    bottom: 15%;
    color: #ff9800;
    right: 8%;
}

.slide-chip {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
    color: #25193d;
    font-size: 12px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.03em;
    padding: 9px 13px;
    text-transform: uppercase;
}

.slide-chip-top {
    right: 12%;
    top: 12%;
}

.slide-chip-bottom {
    bottom: 10%;
    left: 11%;
}

.slide-scanline {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95), transparent);
    height: 4px;
    left: 18%;
    top: 48%;
    width: 64%;
}

.slide-scanline::after {
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-left: 0;
    border-right: 0;
    content: "";
    height: 84px;
    left: 0;
    position: absolute;
    top: -40px;
    width: 100%;
}

.slide-sun {
    animation: floatInfographic 4.8s ease-in-out infinite;
    background: #e0a927;
    border-radius: 50%;
    box-shadow: 0 0 0 18px rgba(224, 169, 39, 0.14), 0 18px 42px rgba(0, 0, 0, 0.18);
    height: 82px;
    right: 18%;
    top: 12%;
    width: 82px;
}

.slide-field {
    background:
        repeating-linear-gradient(110deg, rgba(46, 125, 50, 0.10) 0 14px, transparent 14px 28px),
        rgba(255, 255, 255, 0.92);
    border-radius: 50% 50% 0 0;
    bottom: 8%;
    height: 35%;
    left: 6%;
    width: 88%;
}

.slide-plant {
    animation: floatInfographic 5.5s ease-in-out infinite;
    background: #7fbd82;
    border-radius: 60% 0 60% 0;
    bottom: 27%;
    height: 72px;
    width: 92px;
}

.slide-plant::before {
    background: #2e7d32;
    content: "";
    height: 120px;
    left: 44px;
    position: absolute;
    top: 42px;
    width: 6px;
}

.slide-plant-left {
    left: 14%;
    transform: rotate(28deg);
}

.slide-plant-right {
    right: 15%;
    transform: rotate(-118deg);
}

.slide-flask {
    animation: floatInfographic 4.9s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.94);
    border: 8px solid #ffffff;
    border-radius: 8px 8px 44px 44px;
    bottom: 17%;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.18);
    height: 158px;
    left: 41%;
    width: 128px;
}

.slide-flask::before {
    background: #ffffff;
    content: "";
    height: 58px;
    left: 40px;
    position: absolute;
    top: -64px;
    width: 30px;
}

.slide-flask::after {
    background: linear-gradient(180deg, #a5d6a7, #2e7d32);
    border-radius: 0 0 30px 30px;
    bottom: 0;
    content: "";
    height: 58%;
    left: 0;
    position: absolute;
    width: 100%;
}

.slide-leaf {
    animation: floatInfographic 5.2s ease-in-out infinite;
    background:
        radial-gradient(circle at 28% 25%, rgba(255, 255, 255, 0.46), transparent 24%),
        #c5e1a5;
    border-radius: 100% 0 100% 0;
    box-shadow: 0 28px 54px rgba(0, 0, 0, 0.18);
    height: 190px;
    left: 17%;
    top: 20%;
    transform: rotate(-22deg);
    width: 230px;
}

.slide-leaf::after {
    background: #558b2f;
    content: "";
    height: 5px;
    left: 36px;
    position: absolute;
    top: 94px;
    transform: rotate(-32deg);
    width: 170px;
}

.slide-drop {
    animation: floatInfographic 4.2s ease-in-out infinite;
    background: #d5a10c;
    border-radius: 50% 50% 50% 0;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
    height: 48px;
    transform: rotate(-45deg);
    width: 48px;
}

.slide-drop-one {
    right: 26%;
    top: 21%;
}

.slide-drop-two {
    right: 17%;
    top: 42%;
}

.slide-spectrum {
    animation: scanGlow 3.6s ease-in-out infinite;
    background:
        linear-gradient(90deg, #558b2f, #fbc02d, #ffffff),
        repeating-linear-gradient(90deg, transparent 0 18px, rgba(255, 255, 255, 0.7) 18px 20px);
    border: 8px solid rgba(255, 255, 255, 0.88);
    border-radius: 18px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    bottom: 14%;
    height: 86px;
    right: 18%;
    width: 250px;
}

.slide-shield {
    animation: floatInfographic 5.4s ease-in-out infinite;
    background:
        linear-gradient(145deg, #ffffff, #e9eef3);
    border: 10px solid #b0bec5;
    border-radius: 30px 30px 72px 72px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.22);
    height: 250px;
    left: 32%;
    top: 18%;
    width: 210px;
}

.slide-shield::after {
    background: #00bcd4;
    border-radius: 14px;
    content: "";
    height: 94px;
    left: 54px;
    position: absolute;
    top: 58px;
    width: 88px;
}

.slide-metal {
    animation: floatInfographic 4.4s ease-in-out infinite;
    background: linear-gradient(145deg, #d5dde1, #7e929c);
    border: 6px solid rgba(255, 255, 255, 0.85);
    border-radius: 10px;
    box-shadow: inset -10px -10px 0 rgba(38, 50, 56, 0.18), 0 18px 34px rgba(0, 0, 0, 0.20);
    height: 74px;
    width: 74px;
}

.slide-metal-one {
    left: 12%;
    top: 20%;
    transform: rotate(-12deg);
}

.slide-metal-two {
    bottom: 18%;
    left: 20%;
    transform: rotate(16deg);
}

.slide-metal-three {
    right: 16%;
    top: 32%;
    transform: rotate(12deg);
}

.slide-bottle {
    animation: floatInfographic 4.7s ease-in-out infinite;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.25), transparent 40%),
        #ffffff;
    border-radius: 16px 16px 38px 38px;
    bottom: 12%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    height: 220px;
    left: 25%;
    width: 90px;
}

.slide-bottle::before {
    background: #ffffff;
    content: "";
    height: 58px;
    left: 26px;
    position: absolute;
    top: -48px;
    width: 38px;
}

.slide-plate {
    animation: floatInfographic 5.1s ease-in-out infinite;
    background: #ffffff;
    border: 18px solid #a5d6a7;
    border-radius: 50%;
    box-shadow: inset 0 0 0 18px rgba(46, 125, 50, 0.08), 0 24px 48px rgba(0, 0, 0, 0.16);
    bottom: 17%;
    height: 170px;
    right: 21%;
    width: 170px;
}

.slide-fork {
    background: #ff9800;
    border-radius: 8px;
    bottom: 16%;
    height: 160px;
    right: 15%;
    width: 12px;
}

.slide-quality-mark {
    background: #ff9800;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.18);
    color: #ffffff;
    height: 86px;
    left: 41%;
    top: 18%;
    width: 86px;
}

.slide-quality-mark::before {
    content: "";
    border-bottom: 8px solid #ffffff;
    border-left: 8px solid #ffffff;
    height: 22px;
    left: 24px;
    position: absolute;
    top: 25px;
    transform: rotate(-45deg);
    width: 42px;
}

.slide-vial {
    animation: floatInfographic 4.7s ease-in-out infinite;
    background: #ffffff;
    border-radius: 12px 12px 34px 34px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.20);
    height: 185px;
    top: 20%;
    width: 82px;
}

.slide-vial::before {
    background: #ffffff;
    content: "";
    height: 38px;
    left: 23px;
    position: absolute;
    top: -32px;
    width: 36px;
}

.slide-vial::after {
    background: linear-gradient(180deg, #d8c4e8, #503078);
    border-radius: 0 0 30px 30px;
    bottom: 0;
    content: "";
    height: 52%;
    left: 0;
    position: absolute;
    width: 100%;
}

.slide-vial-one {
    left: 20%;
    transform: rotate(-9deg);
}

.slide-vial-two {
    left: 35%;
    transform: rotate(9deg);
}

.slide-chart {
    animation: scanGlow 4s ease-in-out infinite;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 16px;
    bottom: 15%;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.18);
    height: 150px;
    right: 16%;
    width: 240px;
}

.slide-chart::before {
    background: linear-gradient(90deg, #503078 20%, #d8c4e8 20% 38%, #503078 38% 60%, #d8c4e8 60% 76%, #503078 76%);
    border-radius: 12px;
    bottom: 24px;
    content: "";
    height: 78px;
    left: 26px;
    position: absolute;
    width: 188px;
}

.slide-molecule {
    animation: floatInfographic 4.3s ease-in-out infinite;
    background: #f3d86d;
    border-radius: 50%;
    height: 54px;
    right: 29%;
    top: 18%;
    width: 54px;
}

.slide-molecule::before,
.slide-molecule::after {
    background: #f3d86d;
    border-radius: 50%;
    content: "";
    height: 34px;
    position: absolute;
    width: 34px;
}

@keyframes floatInfographic {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -8px;
    }
}

@keyframes scanGlow {
    0%,
    100% {
        filter: brightness(1);
    }

    50% {
        filter: brightness(1.08);
    }
}

.slide-molecule::before {
    left: -54px;
    top: 54px;
}

.slide-molecule::after {
    right: -54px;
    top: 48px;
}

.login-visual-copy {
    max-width: 650px;
    position: relative;
    z-index: 3;
}

.login-visual-copy h1 {
    color: #ffffff;
    font-size: clamp(30px, 5vw, 52px);
    margin-top: 9px;
}

.login-visual-copy p {
    color: rgba(255, 255, 255, 0.78);
    margin-bottom: 0;
    max-width: 560px;
}

.login-panel {
    align-items: center;
    background: #ffffff;
    display: flex;
    justify-content: center;
    padding: clamp(24px, 6vw, 70px);
    position: relative;
}

.login-panel::before {
    animation: loginPanelAccent 30s infinite;
    background: #d68a24;
    content: "";
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 6px;
}

.login-form-wrap {
    max-width: 420px;
    position: relative;
    z-index: 1;
    width: 100%;
}

.login-form-wrap h2 {
    color: var(--primary-dark);
    font-size: clamp(28px, 4vw, 38px);
    margin: 7px 0;
}

.login-form-wrap > p {
    color: var(--muted);
    margin-bottom: 22px;
}

.login-panel .customer-form button[type="submit"] {
    animation: loginButtonTheme 30s infinite;
}

.login-errors {
    margin-bottom: 18px;
}

.login-errors p:last-child {
    margin-bottom: 0;
}

.accounts-page {
    margin: 0 auto;
    max-width: 1320px;
    padding: clamp(20px, 4vw, 44px);
}

.accounts-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 16px;
    box-shadow: 0 18px 40px rgba(80, 48, 120, 0.18);
    color: #ffffff;
    margin-bottom: 20px;
    padding: clamp(18px, 4vw, 28px);
}

.accounts-header p {
    color: rgba(255, 255, 255, 0.82);
    margin: 14px 0 0;
}

.accounts-brand {
    align-items: center;
    display: flex;
    gap: 16px;
}

.accounts-logo {
    background: #ffffff;
    border-radius: 10px;
    height: 72px;
    object-fit: contain;
    padding: 6px;
    width: 86px;
}

.accounts-brand span,
.accounts-eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.accounts-brand h1 {
    color: #ffffff;
    font-size: clamp(24px, 5vw, 36px);
    margin: 4px 0 0;
}

.accounts-message {
    margin-bottom: 18px;
}

.accounts-message p:last-child {
    margin-bottom: 0;
}

.accounts-subtabs {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    display: inline-flex;
    gap: 6px;
    margin: 0 0 20px;
    padding: 6px;
}

.accounts-subtabs a {
    border-radius: 9px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    padding: 11px 18px;
    text-decoration: none;
}

.accounts-subtabs a:hover,
.accounts-subtabs a.is-active {
    background: var(--primary);
    color: #ffffff;
}

.accounts-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
}

.accounts-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 12px 28px var(--primary-shadow);
    padding: 20px;
}

.accounts-panel h2 {
    color: var(--primary-dark);
    margin: 5px 0 7px;
}

.accounts-panel p {
    color: var(--muted);
    font-size: 14px;
}

.accounts-eyebrow {
    color: var(--primary);
}

.accounts-list-head {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
}

.accounts-list-head strong {
    background: var(--primary-soft);
    border-radius: 999px;
    color: var(--primary);
    font-size: 13px;
    padding: 7px 11px;
    white-space: nowrap;
}

.accounts-table-controls {
    align-items: end;
    background: linear-gradient(135deg, var(--panel), var(--primary-soft));
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 12px 24px var(--primary-shadow);
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(260px, 1fr) max-content auto;
    margin: 18px 0 16px;
    padding: 16px;
}

.accounts-table-controls label {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.accounts-table-controls label:nth-child(2) {
    width: 96px;
}

.accounts-table-controls span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accounts-table-controls input,
.accounts-table-controls select {
    background: var(--panel);
    border: 1px solid var(--primary-secondary);
    border-radius: 8px;
    box-shadow: 0 1px 0 rgba(42, 32, 64, 0.04);
    font: inherit;
    min-height: 44px;
    padding: 9px 12px;
    width: 100%;
}

.accounts-table-controls input:focus,
.accounts-table-controls select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-shadow);
    outline: none;
}

.accounts-search-button {
    border-radius: 8px;
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
}

.accounts-table-wrap {
    overflow-x: auto;
}

.accounts-table {
    border-collapse: collapse;
    min-width: 680px;
    width: 100%;
}

.accounts-table th,
.accounts-table td {
    border-bottom: 1px solid var(--line);
    font-size: 13px;
    padding: 12px 10px;
    text-align: left;
}

.accounts-table th {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.account-status {
    border-radius: 999px;
    display: inline-block;
    font-size: 11px;
    font-weight: 900;
    padding: 4px 8px;
    text-transform: uppercase;
}

.account-status.is-active {
    background: #edf8ef;
    color: #27723b;
}

.account-status.is-inactive {
    background: #f5f1f8;
    color: var(--muted);
}

.accounts-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.account-action-button {
    align-items: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    justify-content: center;
    min-height: 32px;
    padding: 5px 9px;
    text-align: center;
    text-decoration: none;
    width: auto;
}

.accounts-table-footer {
    align-items: center;
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 16px;
    padding: 12px 14px;
}

.accounts-table-footer p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.accounts-pagination {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.accounts-pagination span {
    background: var(--panel);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
    padding: 7px 11px;
}

.accounts-pagination .account-action-button {
    border-radius: 999px;
    min-width: 92px;
}

.accounts-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.account-credentials-modal {
    border: 0;
    border-radius: 18px;
    max-width: 760px;
    width: min(100%, 760px);
}

.account-credentials-modal .section-head {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    padding: 20px 24px;
}

.account-credentials-modal .section-head h2 {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    margin: 4px 0 0;
}

.account-credentials-modal .accounts-eyebrow {
    color: rgba(255, 255, 255, 0.74);
}

.account-credentials-modal .assign-modal-close {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
}

.account-credentials-modal .modal-content {
    background: #f8f6fb;
    gap: 18px;
    padding: 20px;
}

.account-credential-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.account-credential-grid div {
    background: #ffffff;
    border: 1px solid #eee9f4;
    border-radius: 12px;
    min-height: 88px;
    padding: 14px;
}

.account-credential-grid dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.account-credential-grid dd {
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.account-credential-grid .account-credential-note {
    grid-column: 1 / -1;
    min-height: auto;
}

.account-password-reset-form {
    background: #ffffff;
    border: 1px solid #eee9f4;
    border-radius: 14px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.account-password-reset-form .accounts-eyebrow {
    color: var(--muted);
}

.account-password-reset-form h3 {
    color: var(--primary-dark);
    font-size: 17px;
    margin: 4px 0 0;
}

.account-password-row {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.account-password-row label {
    margin: 0;
}

.account-action-button.is-danger {
    background: #ffffff;
    border-color: #bd4b4b;
    color: #a13030;
}

.account-action-button.is-danger:hover {
    background: #a13030;
    color: #ffffff;
}

.signatory-assignment-shell {
    display: grid;
    gap: 18px;
}

.signatory-intro {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
}

.signatory-intro h2 {
    margin-bottom: 6px;
}

.signatory-intro p {
    margin: 0;
    max-width: 760px;
}

.signature-format-note {
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 12px;
    display: grid;
    flex: 0 0 min(330px, 32vw);
    gap: 4px;
    padding: 14px 16px;
}

.signature-format-note strong {
    color: var(--primary-dark);
    font-size: 13px;
}

.signature-format-note span {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.signatory-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.signatory-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.signatory-card.is-inactive {
    opacity: 0.72;
}

.signatory-card-head {
    align-items: center;
    display: grid;
    gap: 11px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
}

.signatory-avatar {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 12px;
    color: #ffffff;
    display: flex;
    font-size: 18px;
    font-weight: 900;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.signatory-card-head h3 {
    color: var(--primary-dark);
    font-size: 16px;
    margin: 0 0 3px;
}

.signatory-card-head p {
    font-size: 12px;
    margin: 0;
}

.signature-preview {
    align-items: center;
    background: #faf9fc;
    border: 1px dashed var(--primary-secondary);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 148px;
    overflow: hidden;
    padding: 14px;
    text-align: center;
}

.signature-preview.has-signature {
    background: #ffffff;
    border-style: solid;
}

.signature-preview img {
    height: 118px;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

.signature-preview strong {
    color: var(--primary-dark);
    font-size: 14px;
}

.signature-preview span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.signature-empty-mark {
    font-size: 30px;
    margin-bottom: 6px;
}

.signatory-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.signatory-meta div {
    background: var(--primary-soft);
    border-radius: 9px;
    padding: 9px 10px;
}

.signatory-meta dt {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.signatory-meta dd {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.signature-upload-form {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.signature-upload-form label {
    color: var(--primary-dark);
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
}

.signature-upload-form input[type="file"] {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    font: inherit;
    padding: 8px;
    width: 100%;
}

.signature-upload-form input[type="file"]::file-selector-button {
    background: var(--primary-soft);
    border: 0;
    border-radius: 6px;
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 800;
    margin-right: 8px;
    padding: 7px 9px;
}

.signature-upload-form button {
    width: 100%;
}

.signature-remove-form .account-action-button {
    width: 100%;
}

.report-setting-form {
    display: grid;
    gap: 14px;
    margin-top: auto;
}

.report-setting-form label {
    margin: 0;
}

.report-name-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 92px minmax(0, 1fr);
}

.report-position-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) minmax(100px, 130px);
}

.code-reset-primary-row {
    grid-template-columns: minmax(280px, 1fr) minmax(140px, 190px);
}

.report-setting-form button {
    margin-top: 2px;
    width: 100%;
}

.report-setting-card {
    min-height: 330px;
}

.code-reset-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.code-reset-card {
    min-height: 0;
}

.code-reset-purpose-list {
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
}

.code-reset-purpose-row {
    align-items: end;
    background: #ffffff;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(150px, .9fr) minmax(145px, .75fr) minmax(155px, 1fr);
    padding: 13px;
}

.code-reset-purpose-row + .code-reset-purpose-row {
    border-top: 1px solid var(--line);
}

.code-reset-purpose-name,
.code-reset-purpose-preview {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.code-reset-purpose-name code {
    color: var(--primary-dark);
    font-family: inherit;
    font-size: 16px;
    font-weight: 900;
}

.code-reset-purpose-name span,
.code-reset-purpose-preview span {
    color: var(--muted);
    font-size: 11px;
}

.code-reset-purpose-preview strong {
    color: var(--primary-dark);
    overflow-wrap: anywhere;
}

.code-reset-purpose-row label {
    font-size: 11px;
}

.code-reset-purpose-row input {
    margin-top: 5px;
}

.signatory-empty-state {
    grid-column: 1 / -1;
    text-align: center;
}

@media (max-width: 860px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 360px;
    }

    .login-slideshow {
        min-height: 430px;
    }

    .slide-art {
        height: 240px;
        margin-bottom: 12px;
    }

    .login-visual-copy h1 {
        font-size: 28px;
    }

    .accounts-grid {
        grid-template-columns: 1fr;
    }

    .signatory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .code-reset-grid {
        grid-template-columns: 1fr;
    }

    .signatory-intro {
        align-items: stretch;
        flex-direction: column;
    }

    .signature-format-note {
        flex-basis: auto;
    }

    .report-name-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .accounts-table-controls {
        grid-template-columns: 1fr auto;
    }

    .accounts-table-controls label:first-child {
        grid-column: 1 / -1;
    }

    .accounts-table-controls label:nth-child(2) {
        width: 92px;
    }

    .accounts-table-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .accounts-pagination {
        justify-content: space-between;
    }
}

@media (max-width: 580px) {
    .accounts-subtabs {
        display: flex;
    }

    .accounts-subtabs a {
        flex: 1;
        padding-left: 10px;
        padding-right: 10px;
        text-align: center;
    }

    .signatory-grid {
        grid-template-columns: 1fr;
    }

    .code-reset-primary-row {
        grid-template-columns: 1fr;
    }

    .code-reset-purpose-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }
}

.page {
    margin: 0 auto;
    max-width: 980px;
    padding: clamp(22px, 5vw, 44px) clamp(14px, 4vw, 24px) 64px;
    width: 100%;
}

.intro {
    margin-bottom: 22px;
}

.eyebrow {
    color: var(--primary-dark);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.customer-intro-brand {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.customer-intro-brand img {
    background: #ffffff;
    border-radius: 4px;
    height: 42px;
    object-fit: contain;
    padding: 2px;
    width: 52px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: clamp(30px, 8vw, 48px);
    line-height: 1.1;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.intro p {
    color: var(--muted);
    font-size: 17px;
}

.panel {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(80, 48, 120, 0.10);
    padding: clamp(16px, 4vw, 30px);
    width: 100%;
}

.customer-form {
    display: grid;
    gap: 20px;
}

.form-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

label {
    color: var(--muted);
    display: grid;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
}

.full {
    grid-column: 1 / -1;
}

input,
select,
textarea {
    background: #ffffff;
    border: 1px solid #d6c7e5;
    border-radius: 8px;
    color: var(--text);
    font-size: 16px;
    font: inherit;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(80, 48, 120, 0.16);
    outline: none;
}

.agreement {
    align-items: flex-start;
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    gap: 12px;
    padding: 14px;
}

.agreement span {
    min-width: 0;
}

.agreement input {
    flex: 0 0 auto;
    height: 20px;
    margin-top: 3px;
    min-height: 0;
    width: 20px;
}

.choice-field {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 14px;
    margin: 0;
    min-width: 0;
    padding: 12px 14px;
}

.choice-field legend {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 0 5px;
}

.choice-field label {
    align-items: center;
    display: inline-flex;
    font-size: 14px;
    gap: 7px;
}

.choice-field input {
    height: 18px;
    min-height: 0;
    width: 18px;
}

.mh-parameter-update-field {
    align-items: stretch;
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
    max-width: 100%;
    overflow: visible;
    width: 100%;
}

.mh-parameter-update-field label {
    align-items: flex-start;
    background: #fbfaff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    display: flex;
    line-height: 1.4;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 10px;
    white-space: normal;
    width: 100%;
}

.mh-parameter-update-field label:has(input:checked) {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.mh-parameter-update-field input {
    flex: 0 0 18px;
    margin-top: 1px;
}

.readonly-choice-field {
    background: #f7f3fb;
}

.readonly-choice-field label {
    cursor: not-allowed;
    opacity: 0.72;
}

button {
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    justify-self: start;
    min-height: 48px;
    padding: 11px 18px;
}

button:hover {
    background: var(--primary-dark);
}

.button-link {
    align-items: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    min-height: 48px;
    padding: 11px 18px;
    text-decoration: none;
}

.button-link:hover {
    background: var(--primary-dark);
    text-decoration: none;
}

.errors,
.success {
    border-radius: 8px;
    margin-bottom: 20px;
    padding: 14px 16px;
}

.errors {
    background: var(--danger-bg);
    border: 1px solid #f1b7b3;
    color: var(--danger);
}

.errors ul {
    margin-bottom: 0;
}

.success {
    background: var(--success-bg);
    border: 1px solid #d3c0e3;
    color: var(--success);
}

.success h2,
.success p {
    margin-bottom: 6px;
}

.feedback-toast {
    align-items: flex-start;
    animation: feedbackToastIn 180ms ease-out;
    background: #ffffff;
    border: 1px solid #c9dfd0;
    border-left: 5px solid #2f8f4e;
    border-radius: 8px;
    box-shadow: 0 18px 45px rgba(38, 20, 61, 0.20);
    color: var(--text);
    display: flex;
    gap: 12px;
    max-width: min(420px, calc(100vw - 28px));
    padding: 14px 14px 14px 13px;
    position: fixed;
    right: clamp(14px, 3vw, 28px);
    top: clamp(14px, 3vw, 28px);
    z-index: 90;
}

.feedback-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.feedback-toast-icon {
    align-items: center;
    background: #eaf7ee;
    border-radius: 50%;
    color: #24753d;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 17px;
    font-weight: 900;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.feedback-toast strong {
    color: #24753d;
    display: block;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 3px;
}

.feedback-toast p {
    color: var(--text);
    font-size: 14px;
    line-height: 1.35;
    margin: 0;
}

.feedback-toast-close {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--muted);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 22px;
    height: 28px;
    justify-content: center;
    min-height: 0;
    padding: 0;
    width: 28px;
}

.feedback-toast-close:hover {
    background: #f5f1f8;
    color: var(--primary-dark);
}

.feedback-toast.is-danger {
    border-color: #f0c8c5;
    border-left-color: var(--danger);
}

.feedback-toast.is-danger .feedback-toast-icon {
    background: var(--danger-bg);
    color: var(--danger);
}

.feedback-toast.is-danger strong {
    color: var(--danger);
}

.delete-confirm-backdrop {
    align-items: center;
    background: rgba(16, 24, 38, 0.52);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 120;
}

.delete-confirm-backdrop[hidden] {
    display: none !important;
}

.delete-confirm-dialog {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 24px 70px rgba(16, 24, 38, 0.28);
    max-width: 430px;
    padding: 22px;
    width: min(100%, 430px);
}

.delete-confirm-dialog h2 {
    color: var(--primary-dark);
    font-size: 22px;
    margin: 0 0 8px;
}

.delete-confirm-dialog p {
    color: var(--text);
    margin: 0 0 18px;
}

.delete-confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.delete-confirm-actions button {
    border-radius: 8px;
    font-weight: 900;
    min-height: 42px;
    padding: 9px 16px;
}

.delete-confirm-no {
    background: #ffffff;
    border: 1px solid var(--line);
    color: var(--primary-dark);
}

.delete-confirm-no:hover {
    background: var(--primary-soft);
}

.delete-confirm-yes {
    background: var(--danger);
    border: 1px solid var(--danger);
    color: #ffffff;
}

.delete-confirm-yes:hover {
    background: #7f1713;
}

@keyframes feedbackToastIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-page {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
    padding-top: 28px;
}

.service-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.service-brand {
    align-items: center;
    color: #ffffff;
    display: flex;
    gap: 9px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.2;
    text-decoration: none;
}

.service-brand span {
    display: grid;
    gap: 2px;
    overflow-wrap: anywhere;
}

.service-brand strong,
.service-brand small {
    display: block;
}

.service-brand small {
    color: rgba(255, 255, 255, 0.76);
    font-size: 11px;
    font-weight: 800;
}

.service-brand:hover {
    text-decoration: none;
}

.gsa-logo {
    border-radius: 6px;
    flex: 0 0 auto;
    height: 40px;
    object-fit: contain;
    width: 48px;
}

.service-sidebar {
    align-self: flex-start;
    background: var(--primary);
    display: flex;
    flex-direction: column;
    flex: 0 0 232px;
    height: 100vh;
    min-width: 0;
    overflow-y: auto;
    padding: 12px 10px 20px;
    position: sticky;
    top: 0;
    transition: flex-basis 180ms ease, width 180ms ease;
}

.service-sidebar.is-collapsed {
    flex-basis: 70px;
}

.sidebar-header {
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.20);
    display: flex;
    gap: 4px;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 0 0 8px;
}

.sidebar-header .sidebar-toggle {
    flex: 0 0 auto;
}

.service-sidebar.is-collapsed .sidebar-header {
    align-items: center;
    flex-direction: column;
    gap: 6px;
    padding-left: 0;
    padding-right: 0;
}

.service-sidebar.is-collapsed .service-brand span {
    display: none;
}

.service-sidebar.is-collapsed .sidebar-header .sidebar-toggle {
    flex: 0 0 auto;
}

.sidebar-toggle {
    align-items: center;
    background: var(--primary);
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 40px;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 44px;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
}

.sidebar-toggle span {
    background: #ffffff;
    border-radius: 2px;
    display: block;
    height: 2px;
    width: 20px;
}

.section-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    margin: calc(clamp(16px, 4vw, 30px) * -1) calc(clamp(16px, 4vw, 30px) * -1) 0;
    padding: 18px clamp(16px, 4vw, 30px);
}

.section-head h2,
.section-head p {
    margin-bottom: 0;
}

.section-head p,
.empty-state {
    color: var(--muted);
}

.empty-state {
    margin: 20px 0 0;
}

.technician-workload-warning {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    color: #9a3412;
    display: block;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.4;
    margin-top: 8px;
    padding: 9px 11px;
}

.technician-workload-warning[hidden] {
    display: none;
}

.dashboard-cards {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.dashboard-section {
    min-width: 0;
}

.activity-users-section {
    display: grid;
    gap: 20px;
}

.activity-users-head {
    margin-bottom: 0;
}

.activity-user-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activity-user-card {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 14px;
    color: var(--primary-dark);
    display: grid;
    gap: 10px;
    min-width: 0;
    min-height: 124px;
    padding: 16px 18px;
}

.activity-user-card > span {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.1em;
    line-height: 1.25;
    text-transform: uppercase;
}

.activity-user-card > strong {
    color: var(--primary-dark);
    display: block;
    font-size: clamp(17px, 1.5vw, 22px);
    font-weight: 900;
    line-height: 1.12;
    overflow-wrap: anywhere;
}

.activity-user-card dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.activity-user-card dl div {
    border-top: 1px solid rgba(91, 43, 130, 0.16);
    display: grid;
    gap: 2px;
    padding-top: 6px;
}

.activity-user-card dt,
.activity-user-card dd {
    margin: 0;
    min-width: 0;
}

.activity-user-card dt {
    color: var(--muted);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.activity-user-card dd {
    color: var(--primary-dark);
    font-size: 11px;
    font-weight: 850;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.activity-user-card-empty {
    background: #ffffff;
    border-style: dashed;
}

.activity-user-card-empty p {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.activity-log-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(80, 48, 120, 0.08);
    display: grid;
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
    -webkit-overflow-scrolling: touch;
}

.activity-filter-banner {
    align-items: end;
    background: #fbfaff;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(140px, 1fr)) auto;
    min-width: 1120px;
    overflow-x: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.activity-filter-banner .datatable-filter {
    min-width: 0;
}

.activity-filter-banner input,
.activity-filter-banner select {
    width: 100%;
}

.activity-filter-reset {
    align-self: end;
    height: 42px;
    justify-content: center;
    min-width: 84px;
}

.activity-log-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 0 16px;
}

.activity-log-head div {
    display: grid;
    gap: 4px;
}

.activity-log-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.activity-log-head strong {
    color: var(--primary-dark);
    font-size: 28px;
    font-weight: 900;
    line-height: 1;
}

.activity-log-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.table-wrap.activity-log-table-wrap {
    margin: 0 16px 16px;
    max-height: min(68vh, 720px);
    max-width: calc(100% - 32px);
    overflow: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.activity-log-table {
    min-width: 1120px;
    width: max-content;
}

.activity-log-table th:first-child,
.activity-log-table td:first-child {
    min-width: 190px;
    white-space: normal;
}

.activity-log-table td span:not(.workflow-status-badge) {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
}

.activity-detail-modal {
    width: min(100%, 980px);
}

.activity-detail-content {
    gap: 22px;
}

.activity-detail-hero {
    align-items: center;
    background: var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px 24px;
}

.activity-detail-hero span {
    color: var(--primary-secondary);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.activity-detail-hero h3 {
    color: #ffffff;
    font-size: 24px;
    margin: 0 0 6px;
}

.activity-detail-hero p {
    color: rgba(255, 255, 255, 0.78);
    font-weight: 800;
    margin: 0;
}

.activity-detail-hero strong {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 8px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 15px;
    padding: 12px 14px;
}

.activity-detail-summary dd .workflow-status-badge {
    width: max-content;
}

.activity-detail-timeline-panel {
    min-width: 0;
}

.activity-detail-timeline {
    border-left: 2px solid var(--line);
    display: grid;
    gap: 18px;
    margin-left: 7px;
    padding-left: 22px;
}

.activity-detail-timeline-item {
    display: grid;
    gap: 12px;
    grid-template-columns: 170px 1fr;
    position: relative;
}

.activity-detail-timeline-item::before {
    background: var(--accent);
    border: 4px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px var(--line);
    content: "";
    height: 16px;
    left: -31px;
    position: absolute;
    top: 3px;
    width: 16px;
}

.activity-detail-timeline-item > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.35;
}

.activity-detail-timeline-item h4 {
    color: var(--primary-dark);
    font-size: 17px;
    margin: 0;
}

.activity-detail-timeline-item h4 em {
    color: var(--muted);
    font-style: normal;
    margin-left: 8px;
}

.activity-detail-timeline-item p {
    color: var(--muted);
    font-weight: 850;
    margin: 4px 0;
}

.activity-detail-timeline-item blockquote {
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    margin: 10px 0 0;
    padding: 11px 13px;
}

.target-health-panel {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.06);
    display: grid;
    gap: 16px;
    margin-top: 18px;
    padding: 20px 22px;
}

.target-health-head {
    align-items: end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.target-health-head div {
    display: grid;
    gap: 6px;
}

.target-health-head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.target-health-head strong {
    color: var(--primary-dark);
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

.target-health-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    text-align: right;
}

.target-health-track {
    background: #e8eef5;
    border-radius: 999px;
    height: 16px;
    overflow: hidden;
    position: relative;
}

.target-health-fill {
    border-radius: inherit;
    height: 100%;
    min-width: 0;
    transition: width 480ms ease;
}

.target-health-fill.is-danger {
    background: linear-gradient(90deg, #dc2626, #ef4444);
}

.target-health-fill.is-warning {
    background: linear-gradient(90deg, #f97316, #facc15);
}

.target-health-fill.is-healthy {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.dashboard-card {
    align-items: flex-start;
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 14px;
    box-shadow: none;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font: inherit;
    gap: 18px;
    justify-content: flex-start;
    min-height: 124px;
    padding: 24px 28px;
    text-align: left;
    transition: background 420ms ease, border-color 420ms ease, box-shadow 420ms ease, transform 420ms ease;
    width: 100%;
}

.dashboard-card span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.dashboard-card strong {
    color: var(--primary-dark);
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.target-summary-cards {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-card-slide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    perspective: 1400px;
}

.target-card-slide-grid .target-card {
    animation: targetCardSideSlide 6s cubic-bezier(0.22, 0.78, 0.26, 1) infinite both;
    grid-row: 1;
    min-height: 152px;
    overflow: hidden;
    pointer-events: none;
    transform-origin: center left;
    will-change: opacity, transform;
}

.target-card-slide-grid .target-card:nth-child(odd) {
    grid-column: 1;
}

.target-card-slide-grid .target-card:nth-child(even) {
    grid-column: 2;
}

.target-card-slide-grid .target-card:nth-child(1),
.target-card-slide-grid .target-card:nth-child(2) {
    animation-delay: 0s;
}

.target-card-slide-grid .target-card:nth-child(3),
.target-card-slide-grid .target-card:nth-child(4) {
    animation-delay: -3s;
}

@keyframes targetCardSideSlide {
    0%,
    42% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) rotateY(0deg) scale(1);
    }

    50%,
    92% {
        opacity: 0;
        visibility: hidden;
        transform: translateX(32px) rotateY(10deg) scale(0.98);
    }

    100% {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) rotateY(0deg) scale(1);
    }
}

.target-card small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
}

.target-settings-panel {
    display: grid;
    gap: 28px;
    overflow: hidden;
    padding: 30px;
}

.target-lab-tabs {
    display: grid;
    gap: 0;
    margin-top: 12px;
    min-width: 0;
}

.target-lab-tab-list {
    align-items: flex-end;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(80, 48, 120, 0.08);
    display: flex;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    padding: 8px;
    scrollbar-width: thin;
}

.target-lab-tab {
    background: linear-gradient(135deg, #eef7ff, #d8ecff);
    border: 1px solid rgba(42, 32, 64, 0.12);
    border-radius: 999px;
    color: #12324a;
    cursor: pointer;
    flex: 0 0 auto;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    min-height: 38px;
    min-width: 148px;
    padding: 9px 18px;
    position: relative;
    text-align: center;
    transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease, color 220ms ease, transform 220ms ease;
}

.target-lab-tab:nth-child(2) {
    background: linear-gradient(135deg, #ecfff3, #ccf3dc);
    color: #123d26;
}

.target-lab-tab:nth-child(3) {
    background: linear-gradient(135deg, #fff7e8, #ffe2ae);
    color: #5b3711;
}

.target-lab-tab:nth-child(4) {
    background: linear-gradient(135deg, #f4edff, #dfccff);
    color: #351d5b;
}

.target-lab-tab:hover,
.target-lab-tab.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary);
    box-shadow: 0 10px 22px rgba(42, 32, 64, 0.22);
    color: #ffffff;
    transform: translateY(-1px);
    z-index: 1;
}

.target-lab-panel {
    background: transparent;
    border: 0;
    border-top: 0;
    border-radius: 0;
    display: grid;
    gap: 18px;
    padding: 18px 0 0;
}

.target-lab-panel[hidden] {
    display: none;
}

.target-lab-panel-head {
    align-items: center;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-bottom: 14px;
}

.target-lab-panel-head span,
.target-lab-metrics span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.target-lab-panel-head h3 {
    color: var(--primary-dark);
    font-size: 20px;
    line-height: 1.2;
    margin: 4px 0 0;
}

.target-lab-panel-head strong {
    color: var(--primary);
    font-size: 14px;
    text-align: right;
}

.target-lab-charts {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-visual-grid {
    align-items: stretch;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.68fr);
}

.target-lab-charts-stack {
    grid-template-columns: 1fr;
}

.target-chart-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    grid-template-columns: auto minmax(0, 1fr);
    min-width: 0;
    padding: 16px;
}

.target-pie-chart {
    --target-chart-color: #2563eb;
    --target-chart-track: #e8edf5;
    align-items: center;
    aspect-ratio: 1;
    background: conic-gradient(var(--target-chart-color) var(--target-chart-value), var(--target-chart-track) 0);
    border-radius: 50%;
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    position: relative;
    width: 118px;
}

.target-pie-chart::after {
    background: #ffffff;
    border-radius: inherit;
    content: "";
    height: 68%;
    position: absolute;
    width: 68%;
}

.target-pie-chart span {
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 900;
    position: relative;
    z-index: 1;
}

.sample-target-chart {
    --target-chart-color: #2563eb;
    --target-chart-track: #dbeafe;
}

.revenue-target-chart {
    --target-chart-color: #16a34a;
    --target-chart-track: #dcfce7;
}

.target-chart-card div:last-child {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.target-chart-card div:last-child span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.target-chart-card div:last-child strong {
    color: var(--primary-dark);
    font-size: clamp(18px, 2vw, 25px);
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.target-chart-card div:last-child small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.target-progress-graph {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 18px;
    padding: 18px;
}

.target-spline-card {
    min-width: 0;
}

.target-graph-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.target-graph-head div {
    display: grid;
    gap: 4px;
}

.target-graph-head span,
.target-graph-label span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.target-graph-head strong {
    color: var(--primary-dark);
    font-size: 20px;
    font-weight: 900;
}

.target-graph-head small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.target-spline-area {
    display: grid;
    gap: 14px;
    min-width: 0;
}

.target-spline-svg {
    background: linear-gradient(180deg, #fbfdff 0%, #ffffff 100%);
    border: 1px solid #eef2f7;
    border-radius: 8px;
    display: block;
    min-height: 260px;
    overflow: visible;
    width: 100%;
}

.target-spline-grid line {
    stroke: #e7edf5;
    stroke-dasharray: 6 8;
    stroke-width: 1.5;
}

.target-spline-fill {
    pointer-events: none;
}

.target-spline-line {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 7;
}

.sample-spline-line {
    stroke: #2563eb;
}

.revenue-spline-line {
    stroke: #16a34a;
}

.sample-spline-point,
.revenue-spline-point {
    stroke: #ffffff;
    stroke-width: 4;
}

.sample-spline-point {
    fill: #2563eb;
}

.revenue-spline-point {
    fill: #16a34a;
}

.target-spline-summary {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.target-spline-summary article {
    background: #f8fafc;
    border: 1px solid #edf2f7;
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-width: 0;
    padding: 12px 14px;
}

.target-spline-summary span {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 11px;
    font-weight: 900;
    gap: 8px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.target-spline-summary i {
    border-radius: 999px;
    display: inline-block;
    height: 10px;
    width: 10px;
}

.sample-spline-dot {
    background: #2563eb;
}

.revenue-spline-dot {
    background: #16a34a;
}

.target-spline-summary strong {
    color: var(--primary-dark);
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 900;
    line-height: 1;
}

.target-spline-summary small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.target-graph-row {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(150px, 0.8fr) minmax(180px, 2fr) auto;
}

.target-graph-label {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.target-graph-label strong {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.target-graph-track {
    background: #edf1f7;
    border-radius: 999px;
    height: 22px;
    overflow: hidden;
    position: relative;
}

.target-graph-fill {
    border-radius: inherit;
    height: 100%;
    min-width: 0;
    transition: width 520ms ease;
}

.sample-graph-fill {
    background: linear-gradient(90deg, #1d4ed8, #60a5fa);
}

.revenue-graph-fill {
    background: linear-gradient(90deg, #15803d, #4ade80);
}

.target-graph-percent {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
    min-width: 52px;
    text-align: right;
}

.target-lab-metrics {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.target-lab-metrics article {
    background: #fbfaff;
    border: 1px solid #eee9f4;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 16px;
}

.target-lab-metrics strong {
    color: var(--primary-dark);
    display: block;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 900;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.target-lab-metrics small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.target-settings-head {
    align-items: center;
    border-bottom: 1px solid #e2e8f0;
    margin: -4px 0 2px;
    padding-bottom: 22px;
}

.target-settings-head > div {
    display: grid;
    gap: 12px;
}

.target-settings-head h2 {
    margin: 0;
}

.target-settings-head p {
    align-self: start;
    background: #f8fafc;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    color: var(--muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0;
    padding: 9px 12px;
    width: fit-content;
}

.target-settings-form {
    display: grid;
    align-items: end;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    width: 100%;
}

.target-settings-form label {
    background: #f8fafc;
    border: 1px solid #d8e0ea;
    border-radius: 10px;
    display: grid;
    gap: 10px;
    min-width: 0;
    padding: 14px;
}

.target-settings-form span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.target-settings-form input {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    font-size: 16px;
    min-height: 48px;
    min-width: 0;
    padding: 11px 12px;
    width: 100%;
}

.target-settings-submit {
    grid-column: 1 / -1;
    justify-content: center;
    justify-self: end;
    min-height: 46px;
    min-width: 170px;
    white-space: nowrap;
}

.target-settings-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.target-settings-summary span {
    background: #f8fafc;
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    color: var(--muted);
    flex: 1 1 180px;
    font-size: 13px;
    font-weight: 800;
    padding: 11px 12px;
    text-align: center;
}

.signature-auth-popup {
    align-items: center;
    background: rgba(15, 23, 42, 0.46);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 20px;
    position: fixed;
    z-index: 1200;
}

.signature-auth-popup[hidden] {
    display: none;
}

.signature-auth-card {
    background: #fff;
    border: 1px solid #d8e0ea;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.25);
    display: grid;
    gap: 18px;
    max-width: 430px;
    padding: 28px;
    position: relative;
    width: min(100%, 430px);
}

.signature-auth-card span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.signature-auth-card h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin: 6px 0;
}

.signature-auth-card p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.signature-auth-card label {
    color: var(--primary-dark);
    display: grid;
    font-weight: 800;
    gap: 8px;
}

.signature-auth-card input {
    border: 1px solid #d8e0ea;
    border-radius: 8px;
    font: inherit;
    min-height: 46px;
    padding: 10px 12px;
}

.service-page .profile-section {
    display: grid;
    gap: 16px;
    max-width: 1280px;
}

.service-page .profile-hero,
.service-page .profile-card {
    background: #ffffff;
    border: 1px solid var(--primary-secondary);
    border-radius: 14px;
    box-shadow: 0 12px 26px rgba(23, 35, 58, 0.06);
    color: var(--primary-dark);
}

.service-page .profile-hero {
    align-items: center;
    border-left: 6px solid var(--primary);
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 22px;
}

.service-page .profile-hero span,
.service-page .profile-card-head span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.12em;
    line-height: 1.2;
    text-transform: uppercase;
}

.service-page .profile-hero h1 {
    color: var(--primary-dark);
    font-size: 28px;
    line-height: 1.15;
    margin: 6px 0;
}

.service-page .profile-hero p {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
    margin: 0;
    max-width: 760px;
}

.service-page .profile-hero .button-link {
    flex: 0 0 auto;
    width: auto;
}

.service-page .profile-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1.15fr;
}

.service-page .profile-card {
    padding: 18px;
}

.service-page .profile-wide-card {
    width: 100%;
}

.service-page .profile-card-head {
    align-items: center;
    border-bottom: 1px solid rgba(23, 35, 58, 0.08);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
}

.service-page .profile-card-head strong {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 7px 11px;
    text-align: center;
}

.service-page .profile-details {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.service-page .profile-details div {
    background: var(--primary-soft);
    border: 1px solid rgba(23, 35, 58, 0.08);
    border-radius: 10px;
    padding: 12px;
}

.service-page .profile-details dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 6px;
    text-transform: uppercase;
}

.service-page .profile-details dd {
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 900;
    line-height: 1.25;
    margin: 0;
    overflow-wrap: anywhere;
}

.service-page .profile-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-page .profile-metrics dd {
    font-size: 28px;
    line-height: 1;
}

.service-page .profile-permissions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.service-page .profile-permissions span {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 900;
    padding: 9px 12px;
}

.service-page .profile-section-flat .profile-hero {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 8px;
}

.service-page .profile-section-flat .profile-plain-section {
    display: grid;
    gap: 12px;
    padding: 8px 0 18px;
}

.service-page .profile-section-flat .profile-plain-section + .profile-plain-section {
    border-top: 1px solid rgba(23, 35, 58, 0.1);
    padding-top: 18px;
}

.service-page .profile-section-flat .profile-details div {
    background: transparent;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(23, 35, 58, 0.08);
    padding: 0 0 10px;
}

.service-page .profile-section-flat .profile-permissions span {
    background: transparent;
    border-color: rgba(23, 35, 58, 0.16);
    border-radius: 6px;
}

.service-page .profile-credentials-actions {
    justify-content: flex-start;
    margin-top: 4px;
}

.service-page .password-toggle-field {
    display: block;
    position: relative;
}

.service-page .password-toggle-field input {
    padding-right: 62px;
    width: 100%;
}

.service-page .password-toggle-button {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--primary-dark);
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    height: 36px;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
}

.service-page .password-toggle-button:hover {
    color: var(--primary);
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-head-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.notification-head-actions form {
    margin: 0;
}

.notification-clear-button {
    min-height: 32px;
}

.notification-item {
    align-items: flex-start;
    background: var(--primary-soft);
    border: 1px solid rgba(23, 35, 58, 0.10);
    border-radius: 10px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 14px;
}

.notification-item.is-unread {
    background: #ffffff;
    border-color: var(--primary-secondary);
    box-shadow: 0 10px 20px rgba(23, 35, 58, 0.06);
}

.notification-item-head {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.notification-item-head strong {
    color: var(--primary-dark);
    font-size: 15px;
    font-weight: 900;
}

.notification-item-head span {
    background: var(--primary);
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    padding: 5px 8px;
}

.notification-item.is-read .notification-item-head span {
    background: #7d8997;
}

.notification-item p {
    color: #334155;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.45;
    margin: 8px 0;
}

.notification-item small {
    color: var(--muted);
    font-weight: 800;
}

.notification-actions {
    align-items: stretch;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notification-actions form {
    margin: 0;
}

.service-page .profile-activity-list {
    display: grid;
    gap: 9px;
}

.service-page .profile-activity-list .empty-state {
    margin: 0;
}

.service-page .profile-activity-board {
    background: #ffffff;
    border: 1px solid rgba(23, 35, 58, 0.08);
    border-radius: 8px;
    box-shadow: 0 14px 34px rgba(23, 35, 58, 0.07);
    margin-top: 2px;
    overflow: hidden;
}

.service-page .profile-activity-filter {
    align-items: center;
    display: flex;
    gap: 8px;
}

.service-page .profile-activity-filter span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.service-page .profile-activity-filter select {
    background: #ffffff;
    border: 1px solid rgba(23, 35, 58, 0.14);
    border-radius: 7px;
    color: var(--primary-dark);
    font-weight: 800;
    min-width: 180px;
    padding: 8px 10px;
}

.service-page .profile-activity-filter button {
    background: var(--primary-dark);
    border: 0;
    border-radius: 7px;
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    padding: 8px 12px;
}

.service-page .profile-snapshot-filter select {
    min-width: 160px;
}

.service-page .profile-activity-cards {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    padding: 14px;
}

.service-page .profile-activity-card {
    background: var(--primary-soft);
    border: 1px solid rgba(23, 35, 58, 0.08);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
}

.service-page .profile-activity-card-head {
    align-items: flex-start;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.service-page .profile-activity-card strong,
.service-page .profile-activity-card span,
.service-page .profile-activity-card small {
    display: block;
}

.service-page .profile-activity-card strong {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.service-page .profile-activity-card span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.service-page .profile-activity-card small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    margin-top: 5px;
    overflow-wrap: anywhere;
}

.service-page .profile-activity-number {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(23, 35, 58, 0.08);
    border-radius: 999px;
    color: var(--muted);
    display: inline-flex !important;
    flex: 0 0 auto;
    font-weight: 900;
    height: 30px;
    justify-content: center;
    margin: 0 !important;
    width: 30px;
}

.service-page .profile-activity-subject span {
    color: var(--primary-secondary);
    font-weight: 900;
}

.service-page .profile-activity-lab-pill {
    background: var(--primary-dark);
    border-radius: 999px;
    color: #ffffff !important;
    display: inline-block !important;
    font-size: 11px !important;
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 6px !important;
    padding: 6px 9px;
}

.service-page .profile-activity-details {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.service-page .profile-activity-details div {
    min-width: 0;
}

.service-page .profile-activity-details dt,
.service-page .profile-activity-details dd {
    margin: 0;
}

.service-page .profile-activity-details dt {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.service-page .profile-activity-details dd {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.service-page .profile-activity-card em {
    background: #ffffff;
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-block;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.2;
    max-width: 210px;
    padding: 7px 9px;
    text-align: center;
    white-space: normal;
}

.service-page .profile-activity-footer {
    align-items: center;
    background: var(--primary-soft);
    border-top: 1px solid rgba(23, 35, 58, 0.08);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 12px;
}

.service-page .profile-activity-footer p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 0;
}

.service-page .profile-activity-pagination {
    align-items: center;
    display: flex;
    gap: 8px;
}

.service-page .profile-activity-pagination button {
    background: #ffffff;
    border: 1px solid var(--primary-secondary);
    border-radius: 7px;
    color: var(--primary-dark);
    cursor: pointer;
    font-weight: 900;
    padding: 8px 12px;
}

.service-page .profile-activity-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.service-page .profile-activity-pagination span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
}

.invoice-summary-cards {
    margin-bottom: 18px;
}

.all-samples-summary-cards {
    margin-bottom: 18px;
}

.invoice-summary-card strong {
    font-size: clamp(28px, 3vw, 42px);
}

.invoice-filter-result-card {
    border-color: var(--primary-secondary);
}

.invoice-filter-result-card p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    margin: 0;
}

.invoice-filter-panel {
    background: #ffffff;
    border: 1px solid #d8e4f1;
    border-radius: 8px;
    box-shadow: 0 10px 24px rgba(10, 58, 115, 0.10);
    display: grid;
    gap: 12px;
    margin-bottom: 18px;
    padding: 14px 16px 16px;
}

.catalog-management-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 18px;
}

.catalog-form {
    align-content: start;
    border: 0;
    margin-bottom: 0;
}

.catalog-form .section-head {
    align-items: start;
    background: transparent;
    border: 0;
    box-shadow: none;
    margin-bottom: 2px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    padding: 0;
}

.catalog-form > .section-head {
    border-bottom: 0;
}

.catalog-section .section-head,
.catalog-section .dashboard-table-panel .section-head,
.catalog-section .records-table th,
.catalog-section .records-table td {
    border-bottom: 0;
}

.catalog-form label {
    color: #4f5b6d;
    display: grid;
    font-size: 14px;
    font-weight: 850;
    gap: 6px;
}

.catalog-form label.full {
    grid-column: 1 / -1;
}

.catalog-form input,
.catalog-form select,
.catalog-form textarea {
    background: #f8fbff;
    border: 1px solid #cbd9e8;
    border-radius: 8px;
    color: #152235;
    font: inherit;
    min-height: 42px;
    padding: 10px 12px;
    width: 100%;
}

.catalog-form textarea {
    resize: vertical;
}

.catalog-table-stack {
    margin-top: 18px;
}

.invoice-filter-controls {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: 145px 155px minmax(260px, 1fr) minmax(180px, 0.75fr) auto;
    margin-bottom: 0;
}

.invoice-filter-controls .datatable-filter {
    align-items: stretch;
    display: grid;
    gap: 5px;
    margin: 0;
}

.invoice-filter-controls .datatable-filter span {
    color: #4f5b6d;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.invoice-filter-controls input,
.invoice-filter-controls select {
    background: #ffffff;
    border: 1px solid #d7e3f1;
    border-radius: 8px;
    color: #17233a;
    font-size: 15px;
    font-weight: 750;
    max-width: none;
    min-height: 42px;
    padding: 7px 10px;
    width: 100%;
}

.catalog-search-controls {
    align-items: end;
    display: grid;
    grid-template-columns: minmax(240px, 1fr) auto;
}

.catalog-search-controls .datatable-filter-search {
    min-width: 0;
    width: 100%;
}

.catalog-search-controls .invoice-filter-search {
    min-width: 100px;
}

.invoice-filter-actions {
    align-items: end;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    justify-content: flex-start;
}

.invoice-filter-search,
.invoice-filter-reset,
.invoice-filter-export {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 8px 12px;
    white-space: nowrap;
    width: auto;
}

.invoice-filter-search {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
    min-width: 94px;
}

.invoice-filter-search:hover {
    background: var(--primary-dark);
}

.invoice-filter-reset {
    background: #ffffff;
    border: 1px solid #7d8997;
    color: #687386;
    min-width: 78px;
}

.invoice-filter-reset:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.invoice-filter-export {
    min-width: 122px;
}

.invoice-filter-export:hover {
    background: #ffffff;
}

#invoiceExportPdf {
    background: #ffffff;
    border: 1px solid var(--primary);
    color: var(--primary);
}

#invoiceExportPdf:hover {
    background: var(--primary-soft);
}

#invoiceExportExcel {
    background: var(--primary);
    border: 1px solid var(--primary);
    color: #ffffff;
}

#invoiceExportExcel:hover {
    background: var(--primary-dark);
}

.dashboard-card:hover,
.dashboard-card.active {
    background: var(--primary-soft);
    border-color: var(--primary);
    box-shadow: none;
    transform: translateY(-2px);
}

.dashboard-table-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(80, 48, 120, 0.10);
    margin-top: 20px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.dashboard-message,
.dashboard-detail-panel {
    margin-top: 24px;
}

.dashboard-detail-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(80, 48, 120, 0.08);
    overflow: hidden;
}

.customer-details {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
    padding: clamp(16px, 4vw, 30px);
}

.customer-details div {
    min-width: 0;
}

.customer-details dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.customer-details dd {
    color: var(--text);
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}

.modal-backdrop {
    align-items: flex-start;
    background: rgba(38, 20, 61, 0.52);
    display: none;
    inset: 0;
    justify-content: center;
    overflow-x: hidden;
    overflow-y: auto;
    padding: clamp(10px, 2.5vw, 30px);
    position: fixed;
    z-index: 50;
    -webkit-overflow-scrolling: touch;
}

.modal-backdrop.is-visible {
    display: flex;
}

.modal-backdrop.is-visible.modal-page-scroll {
    display: block;
}

.modal-page-scroll .customer-modal {
    margin: 0 auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    overflow: hidden;
}

.modal-page-scroll .desk-officer-view-modal .modal-content {
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.hod-report-review-backdrop {
    align-items: flex-start;
}

.hod-view-backdrop .desk-officer-view-modal,
.hod-view-backdrop .workflow-tracking-modal,
.director-view-backdrop .desk-officer-view-modal {
    max-width: min(1180px, calc(100vw - 20px));
}

.hod-view-backdrop .desk-officer-view-modal,
.director-view-backdrop .desk-officer-view-modal {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    min-height: 0;
    overflow: hidden;
}

.hod-view-backdrop .desk-officer-view-modal .section-head,
.director-view-backdrop .desk-officer-view-modal .section-head {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
}

.hod-view-backdrop .desk-officer-view-modal .modal-content,
.director-view-backdrop .desk-officer-view-modal .modal-content {
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.hod-view-backdrop .desk-officer-review-actions,
.hod-view-backdrop .hod-review-report-actions,
.hod-view-backdrop .workflow-tracking-actions,
.director-view-backdrop .desk-officer-review-actions {
    flex-wrap: wrap;
}

.hod-report-review-backdrop .desk-officer-view-modal {
    width: min(100%, 1220px);
}

.hod-view-backdrop.modal-page-scroll .desk-officer-view-modal,
.director-view-backdrop.modal-page-scroll .desk-officer-view-modal {
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
}

.hod-view-backdrop.modal-page-scroll .desk-officer-view-modal .modal-content,
.director-view-backdrop.modal-page-scroll .desk-officer-view-modal .modal-content {
    max-height: none;
    overflow: visible;
}

.hod-report-review-backdrop .desk-officer-view-modal .modal-content,
.director-report-review-backdrop .desk-officer-view-modal .modal-content {
    max-height: none;
    overflow: visible;
}

.modal-backdrop[hidden] {
    display: none !important;
}

.customer-modal {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(38, 20, 61, 0.24);
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    max-width: 1060px;
    overflow: hidden;
    width: min(100%, 1060px);
}

.customer-modal .section-head {
    flex-shrink: 0;
    margin: 0;
}

.modal-content {
    display: grid;
    gap: 24px;
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(16px, 4vw, 30px);
}

.modal-content h3 {
    color: var(--primary-dark);
    font-size: 18px;
    margin: 0 0 14px;
}

.report-preview-frame {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: block;
    height: min(78vh, 860px);
    min-height: 560px;
    overflow: auto;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.hod-report-review-backdrop .report-preview-frame {
    height: 900px;
    min-height: min(560px, 70vh);
    overflow: hidden;
}

.hod-review-report-panel {
    background: #f8fbff;
    border: 1px solid rgba(23, 35, 58, 0.12);
    border-radius: 8px;
    display: grid;
    gap: 16px;
    padding: 16px;
}

.hod-review-report-head {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin-bottom: 0;
}

.hod-review-report-head h3 {
    margin-bottom: 4px;
}

.hod-review-report-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
}

.hod-review-report-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.hod-signature-status {
    background: #e7f5ec;
    border: 1px solid #b9dfc6;
    border-radius: 999px;
    color: #246b3d;
    font-size: 12px;
    font-weight: 900;
    padding: 8px 12px;
    text-transform: uppercase;
}

.hod-review-decision-panel {
    background: #ffffff;
    border: 1px solid rgba(23, 35, 58, 0.12);
    border-radius: 8px;
    padding: 16px;
}

.modal-details {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.desk-officer-view-modal {
    border: 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    flex: 0 1 auto;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    max-width: 1180px;
    min-height: 0;
    overflow: hidden;
    width: min(100%, 1180px);
}

.desk-officer-view-modal .section-head {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    display: flex;
    flex: 0 0 auto;
    gap: 14px;
    justify-content: space-between;
    padding: 18px 22px;
}

.desk-officer-view-modal .section-head h2 {
    color: #ffffff;
    font-size: 22px;
    line-height: 1.2;
    margin: 3px 0 0;
}

.view-modal-eyebrow {
    color: rgba(255, 255, 255, 0.78);
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.desk-officer-view-modal .compact-link {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.42);
    color: #ffffff;
}

.desk-officer-view-modal .compact-link:hover {
    background: #ffffff;
    color: var(--primary);
}

.desk-officer-view-modal .modal-content {
    background: #f8f6fb;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    gap: 16px;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 18px;
    -webkit-overflow-scrolling: touch;
}

.hod-view-backdrop .desk-officer-view-modal .modal-content {
    max-height: 100%;
}

.view-modal-section,
.customer-modal .modal-content > section {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    padding: 18px;
}

.desk-officer-view-modal .modal-content h3 {
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    margin: 0 0 14px;
    padding-bottom: 10px;
}

.desk-officer-view-modal .modal-content h3:not(:first-child) {
    margin-top: 20px;
}

.desk-officer-view-modal .modal-details {
    border: 0;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    padding: 0;
}

.desk-officer-view-modal .modal-details div {
    background: #fbfaff;
    border: 1px solid #eee9f4;
    border-radius: 8px;
    min-width: 0;
    padding: 11px 12px;
}

.desk-officer-view-modal .modal-details dt {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.desk-officer-view-modal .modal-details dd {
    color: var(--primary-dark);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.desk-officer-view-modal .table-wrap,
.desk-officer-view-modal .metallic-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    margin: 0 0 16px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.desk-officer-view-modal .records-table,
.desk-officer-view-modal .metallic-input-table {
    min-width: 760px;
    width: max-content;
}

.desk-officer-view-modal .records-table th,
.desk-officer-view-modal .records-table td,
.desk-officer-view-modal .metallic-input-table th,
.desk-officer-view-modal .metallic-input-table td {
    padding: 10px 12px;
    white-space: nowrap;
}

.desk-officer-view-modal .records-table td:last-child,
.desk-officer-view-modal .metallic-input-table td:last-child {
    white-space: normal;
}

.desk-officer-review-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 10px 28px var(--primary-shadow);
    margin-bottom: 18px;
    padding: 18px;
}

.desk-officer-review-panel-visible {
    border-color: #6f42a5;
    box-shadow: 0 12px 32px rgba(86, 48, 125, 0.2);
    isolation: isolate;
    pointer-events: auto;
    position: relative;
    scroll-margin-top: 18px;
    z-index: 3;
}

.desk-officer-review-panel-visible > .hod-review-report-head {
    align-items: flex-start;
}

.desk-officer-review-panel .hod-review-report-head {
    margin-bottom: 14px;
}

.desk-officer-review-panel .hod-review-report-head h3 {
    margin: 0 0 5px;
}

.desk-officer-review-panel .hod-review-report-head p {
    color: var(--muted);
    font-weight: 800;
    margin: 0;
}

.desk-officer-review-form {
    background: #fffaf2;
    border: 1px solid #f0d9b4;
    border-radius: 10px;
    display: grid;
    gap: 14px;
    padding: 16px;
}

.desk-officer-review-form label {
    color: var(--primary-dark);
    font-weight: 900;
}

.desk-officer-review-form textarea {
    background: #ffffff;
    margin-top: 7px;
    resize: vertical;
}

.desk-officer-review-form input,
.desk-officer-review-form select {
    margin-top: 7px;
}

.desk-signature-pin-field {
    background: #ffffff;
    border: 2px solid #6f42a5;
    border-radius: 10px;
    padding: 14px;
}

.desk-signature-pin-field input {
    background: #ffffff !important;
    border: 1px solid #6f42a5 !important;
    color: #17233a !important;
    font-size: 18px;
    min-height: 48px;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 4;
}

.desk-signature-pin-field small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 7px;
}

.desk-officer-review-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.desk-officer-review-actions button {
    width: auto;
}

.desk-officer-review-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.desk-officer-review-actions .reject-report-button {
    background: #ffffff;
    border-color: #bd4b4b;
    color: #a13030;
}

.desk-officer-review-actions .reject-report-button:hover {
    background: #a13030;
    color: #ffffff;
}

.workflow-arrow-action {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 20px;
    font-weight: 900;
    height: 34px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 34px;
}

.workflow-sheet-table {
    min-width: 980px;
}

.workflow-sheet-table th:last-child,
.workflow-sheet-table td:last-child {
    background: #ffffff;
    position: sticky;
    right: 0;
    z-index: 2;
}

.workflow-sheet-table th:last-child {
    background: var(--primary-soft);
}

.workflow-status-badge {
    background: #e7f0fb;
    border: 1px solid #b8cce5;
    border-radius: 999px;
    color: #294c74;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
    padding: 7px 10px;
    white-space: nowrap;
}

.workflow-status-assigned-to-technician,
.workflow-status-under-analysis {
    background: #dceaff;
    border-color: #9fbff0;
    color: #245795;
}

.workflow-status-awaiting-hod-approval,
.workflow-status-awaiting-director-approval {
    background: #fff0c7;
    border-color: #e8c35f;
    color: #765000;
}

.workflow-status-awaiting-customer-service-review,
.workflow-status-received-at-customer-service {
    background: #eee3ff;
    border-color: #c8aef0;
    color: #563487;
}

.workflow-status-awaiting-desk-officer-review,
.workflow-status-rejected-by-desk-officer {
    background: #ffe1e1;
    border-color: #e49a9a;
    color: #9a2f2f;
}

.workflow-status-completed,
.workflow-status-hod-approved {
    background: #d9f4e2;
    border-color: #91d3a6;
    color: #216a38;
}

.workflow-tracking-modal {
    background: var(--bg);
    border-radius: 8px;
    box-shadow: 0 26px 76px var(--primary-shadow);
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 32px);
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    width: min(100%, 1180px);
}

.workflow-tracking-header {
    align-items: flex-start;
    background: var(--primary);
    color: #ffffff;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: space-between;
    padding: 26px 30px;
}

.workflow-header-brand {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.workflow-header-brand img {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.16);
    height: 70px;
    object-fit: contain;
    padding: 8px;
    width: 70px;
}

.workflow-tracking-header span {
    color: var(--primary-secondary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.workflow-tracking-header h2 {
    color: #ffffff;
    font-size: 30px;
    margin: 8px 0;
}

.workflow-tracking-header p {
    color: var(--primary-secondary);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 18px;
    font-weight: 900;
    margin: 0;
}

.workflow-header-actions {
    align-items: center;
    display: flex;
    flex-shrink: 0;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
}

.workflow-header-export {
    background: #ffffff;
    border: 0;
    border-radius: 8px;
    color: var(--primary);
    cursor: pointer;
    font-weight: 900;
    padding: 10px 14px;
}

.workflow-header-export:hover {
    background: var(--primary-secondary);
}

.workflow-close-button {
    color: var(--primary-secondary);
    font-size: 40px;
    line-height: 1;
    text-decoration: none;
}

.workflow-tracking-content {
    display: grid;
    gap: 24px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 28px;
}

.workflow-tracking-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
    min-width: 0;
}

.workflow-card-panel,
.workflow-progress-panel,
.workflow-timeline-panel,
.workflow-audit-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 10px 28px var(--primary-shadow);
    min-width: 0;
    padding: 22px 24px;
}

.workflow-card-panel h3,
.workflow-progress-panel h3,
.workflow-timeline-panel h3,
.workflow-audit-panel h3,
.workflow-location-panel > span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.12em;
    margin: 0 0 18px;
    text-transform: uppercase;
}

.workflow-particulars {
    display: grid;
    gap: 14px;
    margin: 0;
}

.workflow-particulars div {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 180px 1fr;
}

.workflow-particulars dt {
    color: var(--muted);
    font-weight: 850;
}

.workflow-particulars dd {
    color: var(--text);
    font-size: 17px;
    font-weight: 900;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.workflow-location-panel {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 14px;
    color: var(--text);
    min-width: 0;
    overflow: hidden;
    padding: 24px;
}

.workflow-location-panel p {
    color: var(--muted);
    font-weight: 850;
    margin: 10px 0 0;
}

.workflow-location-panel h3 {
    color: var(--primary-dark);
    font-size: 30px;
    margin: 8px 0 2px;
    overflow-wrap: anywhere;
}

.workflow-location-panel > strong {
    color: var(--primary);
    display: block;
    font-size: 17px;
    margin-bottom: 20px;
}

.workflow-location-details {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.workflow-location-details div {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 16px;
}

.workflow-location-details .wide {
    grid-column: 1 / -1;
}

.workflow-location-details span {
    color: var(--muted);
    display: block;
    font-weight: 850;
    margin-bottom: 8px;
}

.workflow-location-details strong {
    color: var(--primary-dark);
    display: block;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.workflow-location-details p {
    margin: 8px 0 0;
}

.workflow-panel-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.workflow-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.workflow-legend span {
    align-items: center;
    color: var(--muted);
    display: inline-flex;
    font-weight: 850;
    gap: 6px;
}

.workflow-legend i {
    border: 2px solid var(--line);
    border-radius: 999px;
    display: inline-block;
    height: 14px;
    width: 14px;
}

.workflow-legend .done {
    background: var(--accent);
    border-color: var(--accent);
}

.workflow-legend .current {
    background: var(--primary);
    border-color: var(--primary);
}

.workflow-stage-strip {
    align-items: stretch;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
    margin-top: 26px;
}

.workflow-stage {
    align-items: center;
    background: #fbfaff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    display: grid;
    gap: 8px;
    justify-items: center;
    min-width: 0;
    padding: 12px 8px;
    text-align: center;
}

.workflow-stage.completed {
    background: #f1fbf4;
    border-color: #b9e4c6;
}

.workflow-stage.current {
    background: var(--primary-soft);
    border-color: var(--primary-secondary);
}

.workflow-stage span {
    align-items: center;
    background: #ffffff;
    border: 3px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    font-weight: 900;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.workflow-stage.completed span {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.workflow-stage.current span {
    background: var(--primary);
    border-color: var(--primary-secondary);
    box-shadow: 0 0 0 5px var(--primary-shadow);
    color: #ffffff;
}

.workflow-stage.completed strong,
.workflow-stage.current strong {
    color: var(--primary-dark);
}

.workflow-stage strong {
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.workflow-stage em {
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.workflow-completion {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 10px;
    grid-template-columns: 1fr auto;
    margin-top: 26px;
    padding-top: 18px;
}

.workflow-completion div {
    background: var(--primary-soft);
    border-radius: 999px;
    grid-column: 1 / -1;
    height: 10px;
    overflow: hidden;
}

.workflow-completion i {
    background: var(--primary);
    display: block;
    height: 100%;
}

.workflow-completion b {
    color: var(--primary-dark);
    font-size: 18px;
    justify-self: end;
}

.workflow-timeline {
    border-left: 2px solid var(--line);
    display: grid;
    gap: 24px;
    margin-left: 14px;
    padding-left: 28px;
}

.workflow-timeline-item {
    display: grid;
    gap: 10px;
    position: relative;
}

.workflow-timeline-dot {
    align-items: center;
    background: #ffffff;
    border: 4px solid var(--line);
    border-radius: 999px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    left: -43px;
    position: absolute;
    top: 0;
    width: 28px;
}

.workflow-timeline-item.completed .workflow-timeline-dot {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.workflow-timeline-item.current .workflow-timeline-dot {
    background: var(--primary);
    border-color: var(--primary-secondary);
}

.workflow-timeline-item h4 {
    color: var(--primary-dark);
    font-size: 18px;
    margin: 0;
}

.workflow-timeline-item h4 em {
    color: var(--muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-style: normal;
    margin-left: 8px;
}

.workflow-timeline-item p {
    color: var(--muted);
    font-weight: 850;
    margin: 4px 0;
}

.workflow-timeline-item blockquote {
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    margin: 10px 0 0;
    padding: 12px 14px;
}

.workflow-audit-panel {
    padding: 0;
}

.workflow-audit-panel h3 {
    padding: 22px 24px 0;
}

.workflow-audit-panel .table-wrap {
    margin: 0;
}

.workflow-tracking-actions {
    align-items: center;
    background: #ffffff;
    border-top: 1px solid var(--line);
    display: flex;
    flex-shrink: 0;
    gap: 12px;
    justify-content: flex-end;
    padding: 18px 22px;
}

.workflow-close-primary {
    background: var(--primary);
    color: #ffffff;
}

.mrl-comparison-panel {
    background: #f8fbff;
    border: 1px solid #cfe1f5;
    border-radius: 10px;
    display: grid;
    gap: 14px;
    margin-top: 20px;
    padding: 16px;
}

.mrl-comparison-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.mrl-comparison-head span {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mrl-comparison-head h3 {
    margin: 4px 0 0;
}

.mrl-comparison-head a,
.mrl-comparison-summary a {
    color: #1f5f9f;
    font-weight: 900;
}

.mrl-comparison-form {
    display: grid;
    gap: 12px;
}

.mrl-comparison-form label {
    color: var(--primary-dark);
    font-weight: 900;
}

.mrl-comparison-form input,
.mrl-comparison-form select {
    margin-top: 7px;
}

.compact-link {
    min-height: 38px;
    padding: 8px 14px;
}

.edit-customer-form {
    padding: clamp(16px, 4vw, 30px);
}

.customer-modal .edit-customer-form {
    min-width: 0;
    padding: 0;
}

.records-update-modal {
    max-width: 1360px;
    width: min(100%, 1360px);
}

.records-update-modal .modal-content,
.records-update-modal .edit-customer-form,
.records-update-modal .technician-report-fields,
.records-update-modal .metallic-worksheet,
.records-update-modal .metallic-worksheet-card {
    min-width: 0;
}

.records-update-modal .modal-content {
    padding: clamp(14px, 2.5vw, 24px);
}

.mh-method-report-context {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-soft), #ffffff);
    border: 1px solid var(--primary);
    border-left: 5px solid var(--primary);
    border-radius: 12px;
    display: grid;
    gap: 3px 16px;
    grid-template-columns: auto 1fr;
    margin-bottom: 20px;
    padding: 14px 16px;
}

.mh-method-report-context > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    grid-column: 1;
    text-transform: uppercase;
}

.mh-method-report-context > strong {
    color: var(--primary-dark);
    font-size: 17px;
    grid-column: 2;
    grid-row: 1 / span 2;
}

.mh-method-report-context > small {
    color: var(--muted);
    font-weight: 700;
    grid-column: 1;
}

.records-update-modal .technician-report-fields {
    overflow: hidden;
}

.records-update-modal .metallic-table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.records-update-modal .metallic-input-table {
    min-width: 920px;
    width: max-content;
}

.records-update-modal .metallic-worksheet-card .metallic-input-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.records-update-modal .metallic-input-table th,
.records-update-modal .metallic-input-table td {
    white-space: nowrap;
}

.records-update-modal .metallic-worksheet-card .metallic-input-table th,
.records-update-modal .metallic-worksheet-card .metallic-input-table td {
    padding: 5px;
    white-space: normal;
}

.records-update-modal .metallic-worksheet-card .metallic-input-table input,
.records-update-modal .metallic-worksheet-card .metallic-input-table select {
    font-size: 12px;
    min-height: 34px;
    padding: 6px;
    width: 100%;
}

.records-update-modal .metallic-worksheet-card .metallic-input-table input[type="date"] {
    min-width: 118px;
}

.records-update-modal .metallic-worksheet-card .metallic-input-table th:last-child,
.records-update-modal .metallic-worksheet-card .metallic-input-table td:last-child {
    background: #fff;
    position: sticky;
    right: 0;
    width: 92px;
    z-index: 2;
}

.records-update-modal .metallic-worksheet-card .metallic-input-table th:last-child {
    background: #f8f6fb;
}

.records-update-modal .metallic-worksheet-card .metallic-row-remove {
    min-height: 32px;
    padding: 5px 8px;
    width: 100%;
}

.records-update-modal .technician-report-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, max-content));
    justify-content: start;
}

.records-update-modal .technician-report-actions button {
    width: 100%;
}

.service-sample-modal {
    max-width: 1320px;
    width: min(100%, 1320px);
}

.service-sample-modal .modal-content {
    gap: 18px;
    padding: clamp(16px, 3vw, 24px);
}

.service-sample-form .form-grid {
    align-items: start;
    gap: 16px;
}

.parameter-multiselect-field {
    display: grid;
    gap: 8px;
    grid-column: 1 / -1;
    min-width: 0;
}

.parameter-multiselect-label {
    color: var(--text);
    font-size: 13px;
    font-weight: 850;
}

.parameter-multiselect {
    position: relative;
}

.parameter-multiselect summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
    color: var(--text);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 750;
    justify-content: space-between;
    list-style: none;
    min-height: 48px;
    padding: 11px 42px 11px 13px;
    position: relative;
}

.parameter-multiselect summary::-webkit-details-marker {
    display: none;
}

.parameter-multiselect summary::after {
    border-bottom: 2px solid var(--primary);
    border-right: 2px solid var(--primary);
    content: "";
    height: 8px;
    position: absolute;
    right: 17px;
    top: 16px;
    transform: rotate(45deg);
    transition: transform 160ms ease;
    width: 8px;
}

.parameter-multiselect[open] summary {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-soft);
}

.parameter-multiselect[open] summary::after {
    top: 20px;
    transform: rotate(225deg);
}

.parameter-multiselect-panel {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 20px 44px rgba(20, 30, 45, 0.16);
    display: grid;
    gap: 10px;
    left: 0;
    margin-top: 7px;
    padding: 12px;
    position: absolute;
    right: 0;
    z-index: 30;
}

.parameter-multiselect-search {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-height: 42px;
    padding: 9px 11px;
    width: 100%;
}

.parameter-multiselect-options {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-height: 280px;
    overflow-y: auto;
    padding: 2px;
}

.parameter-multiselect-options label {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    font-size: 13px;
    font-weight: 750;
    gap: 9px;
    line-height: 1.35;
    min-height: 46px;
    padding: 10px;
}

.parameter-multiselect-options label:has(input:checked) {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.parameter-multiselect-options input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    height: 18px;
    margin-top: 0;
    min-height: 0;
    width: 18px;
}

.parameter-multiselect-field > small {
    color: var(--muted);
    font-size: 12px;
}

.service-sample-form .choice-field[data-parameter-group],
.service-sample-form .choice-field[data-method-group] {
    background: #fbfaff;
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding: 16px;
}

.service-sample-form .choice-field[data-parameter-group] {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
    padding: 18px;
}

.service-sample-form .choice-field[data-parameter-group] legend,
.service-sample-form .choice-field[data-method-group] legend {
    color: var(--primary-dark);
    font-size: 14px;
    grid-column: 1 / -1;
    padding: 0 6px;
}

.parameter-filter {
    grid-column: 1 / -1;
    min-width: 100%;
    width: 100%;
}

.parameter-filter input {
    font-size: 17px;
    min-height: 64px;
    padding: 16px 18px;
    width: 100%;
}

.service-sample-form .choice-field[data-parameter-group] .parameter-filter input {
    max-width: none;
}

.service-sample-form .choice-field[data-method-group] label {
    background: #ffffff;
    border: 1px solid #e3d8ee;
    border-radius: 8px;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    min-height: 42px;
    padding: 9px 10px;
}

.service-sample-form .choice-field[data-parameter-group] label {
    align-items: flex-start;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(20, 30, 45, 0.05);
    color: var(--text);
    display: flex;
    font-size: 14px;
    font-weight: 850;
    gap: 11px;
    line-height: 1.35;
    min-height: 58px;
    padding: 13px 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-sample-form .choice-field[data-parameter-group] label:hover {
    border-color: var(--primary);
    box-shadow: 0 12px 24px var(--primary-shadow);
    transform: translateY(-1px);
}

.service-sample-form [data-parameter-option][hidden] {
    display: none !important;
}

.service-sample-form [data-method-option][hidden] {
    display: none !important;
}

.service-sample-form .choice-field[data-parameter-group] label:has(input:checked),
.service-sample-form .choice-field[data-method-group] label:has(input:checked) {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.service-sample-form .choice-field[data-method-group] input {
    accent-color: var(--primary);
    flex: 0 0 auto;
}

.service-sample-form .choice-field[data-parameter-group] input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    height: 22px;
    margin-top: 0;
    min-height: 0;
    width: 22px;
}

.service-sample-form .readonly-choice-field {
    align-items: center;
    gap: 10px;
}

.service-sample-form .recommended-parameter-field {
    transform: translateY(-5px);
}

.sync-payment-field {
    align-items: center;
    background: #fbfaff;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--primary-dark);
    display: flex;
    gap: 10px;
    padding: 12px 14px;
}

.sync-payment-field input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    height: 18px;
    min-height: 0;
    width: 18px;
}

.sync-payment-field span {
    min-width: 0;
}

.autosave-status {
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    margin-right: auto;
    min-height: 18px;
}

.autosave-clear-button {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
}

.autosave-clear-button:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.sample-preview-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.sample-preview-head {
    background: #fbfaff;
    margin: 0;
    padding: 14px 16px;
}

.sample-preview-head h3 {
    margin: 0 0 4px;
}

.sample-preview-head p {
    font-size: 13px;
    margin: 0;
}

.sample-preview-table-wrap {
    margin: 0;
    max-height: 260px;
    overflow: auto;
}

.sample-preview-table {
    min-width: 780px;
}

.sample-preview-table th {
    background: #fbfaff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.sample-preview-table th,
.sample-preview-table td {
    padding: 12px 16px;
}

.sample-preview-edit-link {
    min-width: 54px;
}

.sample-preview-delete-button {
    border-color: #e7b9b6 !important;
    color: #a61b16 !important;
}

.sample-preview-delete-button:hover {
    background: #a61b16 !important;
    border-color: #a61b16 !important;
    color: #ffffff !important;
}

.sample-preview-empty {
    margin: 0;
    padding: 16px;
}

.sample-view-list {
    display: grid;
    gap: 18px;
}

.sample-view-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
}

.sample-view-card-head {
    align-items: center;
    background: #fbfaff;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    padding: 14px 16px;
}

.sample-view-card-head h4 {
    color: var(--primary-dark);
    font-size: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}

.sample-view-card .modal-details {
    border: 0;
    border-radius: 0;
}

.readonly-sample-fields,
.technician-report-fields {
    border: 1px solid var(--line);
    border-radius: 14px;
    margin: 0 0 18px;
    padding: 14px;
}

.readonly-sample-fields legend,
.technician-report-fields legend {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
    padding: 0 6px;
}

.readonly-sample-fields[disabled] {
    background: #f8f6fb;
    opacity: 0.82;
}

.form-help {
    color: var(--muted);
    font-size: 13px;
    margin: 0 0 14px;
}

.technician-rejection-notice {
    background: #fff3f3;
    border: 1px solid #e7b4b4;
    border-radius: 9px;
    color: #8f2e2e;
    margin-bottom: 14px;
    padding: 12px;
}

.technician-rejection-notice p {
    line-height: 1.45;
    margin: 5px 0 0;
}

.technician-report-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.technician-handoff-panel {
    background: #f7fbff;
    border: 1px solid #cfe1f5;
    border-radius: 10px;
    margin-top: 18px;
    padding: 16px;
}

.technician-handoff-panel .section-head {
    margin-bottom: 12px;
    padding: 0;
}

.technician-handoff-panel .section-head h3 {
    font-size: 18px;
    margin: 4px 0 0;
}

.test-record-title,
.additional-test-record h4 {
    color: var(--primary-dark);
    font-size: 14px;
    margin: 16px 0 10px;
}

.additional-test-record {
    background: #faf7ff;
    border: 1px solid var(--line);
    border-radius: 10px;
    margin-top: 16px;
    padding: 14px;
}

.additional-test-record-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.additional-test-record-head h4 {
    margin: 0 0 10px;
}

.mh-bg-report-layout {
    display: grid;
    gap: 18px;
    margin-top: 16px;
}

.mh-report-common-card,
.mh-specification-header-card,
.additional-test-record.mh-bg-test-card {
    background: #ffffff;
    border: 1px solid #d9cbe8;
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(66, 43, 91, 0.06);
    margin: 0;
    padding: 18px;
}

.mh-report-common-card {
    background: #faf8fd;
}

.mh-specification-header-card {
    background: #f4eef9;
}

.mh-shared-report-fields {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mh-shared-report-fields .mh-shared-loq-field {
    grid-column: 1 / -1;
}

.mh-shared-loq-field textarea {
    line-height: 1.55;
    min-height: 180px;
    resize: vertical;
}

.mh-specification-header-card label {
    color: var(--primary-dark);
    display: grid;
    font-weight: 900;
    gap: 8px;
}

.mh-specification-header-card .form-help {
    margin: 8px 0 0;
}

.mh-report-common-head {
    align-items: center;
    border-bottom: 1px solid #e8dfef;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.mh-report-common-head span,
.mh-bg-test-card .additional-test-record-head h4 {
    color: var(--primary-dark);
    font-size: 16px;
    font-weight: 900;
    margin: 0;
}

.mh-report-common-head strong,
.mh-bg-test-code {
    background: var(--primary-soft);
    border: 1px solid #d9cbe8;
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    padding: 6px 10px;
}

.mh-report-common-card .form-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mh-bg-test-card .additional-test-record-head {
    border-bottom: 1px solid #e8dfef;
    margin-bottom: 16px;
    padding-bottom: 12px;
}

.mh-bg-test-card .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .mh-report-common-card .form-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .mh-report-common-card .form-grid,
    .mh-bg-test-card .form-grid,
    .mh-shared-report-fields {
        grid-template-columns: 1fr;
    }

    .mh-report-common-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

.metallic-worksheet {
    display: grid;
    gap: 16px;
    margin-top: 18px;
    min-width: 0;
}

.metallic-worksheet-head {
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 14px;
}

.metallic-worksheet-head span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 900;
    margin-bottom: 4px;
}

.metallic-worksheet-head h4 {
    color: var(--primary-dark);
    margin: 0;
}

.metallic-worksheet-head p {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    margin: 6px 0 0;
}

.metallic-worksheet-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 10px;
    display: grid;
    gap: 12px;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
}

.metallic-worksheet-card:not([open]) {
    background: #fbfaff;
    padding-bottom: 0;
}

.metallic-worksheet-card summary {
    align-items: center;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    font-size: 14px;
    font-weight: 900;
    justify-content: space-between;
    list-style: none;
    margin: -14px;
    padding: 14px;
}

.metallic-worksheet-card summary::-webkit-details-marker {
    display: none;
}

.metallic-worksheet-card summary::after {
    border: solid currentColor;
    border-width: 0 2px 2px 0;
    content: "";
    height: 7px;
    transform: rotate(45deg);
    transition: transform 160ms ease;
    width: 7px;
}

.metallic-worksheet-card[open] summary {
    border-bottom: 1px solid var(--line);
    margin-bottom: 12px;
}

.metallic-worksheet-card[open] summary::after {
    transform: rotate(225deg);
}

.metallic-worksheet-card.sample-mineralization-card {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-shadow);
}

.metallic-worksheet-card.sample-mineralization-card summary {
    background: linear-gradient(90deg, var(--primary-soft), #ffffff);
    border-radius: 10px 10px 0 0;
}

.sample-mineralization-card .metallic-table-wrap {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: inset 0 0 0 1px rgba(27, 45, 67, 0.02);
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.sample-mineralization-card .metallic-input-table {
    min-width: 760px;
    table-layout: fixed;
    width: 100%;
}

.sample-mineralization-card .metallic-input-table th,
.sample-mineralization-card .metallic-input-table td {
    padding: 6px;
    white-space: normal;
}

.sample-mineralization-card .metallic-input-table th:nth-child(1),
.sample-mineralization-card .metallic-input-table td:nth-child(1) {
    width: 92px;
}

.sample-mineralization-card .metallic-input-table th:nth-child(2),
.sample-mineralization-card .metallic-input-table td:nth-child(2),
.sample-mineralization-card .metallic-input-table th:nth-child(3),
.sample-mineralization-card .metallic-input-table td:nth-child(3),
.sample-mineralization-card .metallic-input-table th:nth-child(4),
.sample-mineralization-card .metallic-input-table td:nth-child(4),
.sample-mineralization-card .metallic-input-table th:nth-child(5),
.sample-mineralization-card .metallic-input-table td:nth-child(5) {
    width: 112px;
}

.sample-mineralization-card .metallic-input-table th:nth-child(6),
.sample-mineralization-card .metallic-input-table td:nth-child(6) {
    width: 145px;
}

.sample-mineralization-card .metallic-input-table th:nth-child(7),
.sample-mineralization-card .metallic-input-table td:nth-child(7) {
    width: 88px;
}

.sample-mineralization-card .metallic-input-table input {
    font-size: 12px;
    min-height: 34px;
    padding: 6px 8px;
    width: 100%;
}

.sample-mineralization-card .metallic-input-table input[type="date"] {
    min-width: 128px;
}

.sample-mineralization-card .metallic-row-remove {
    border-radius: 8px;
    min-height: 34px;
    padding: 6px 8px;
    width: 100%;
}

.sample-mineralization-card > [data-add-support-row] {
    justify-self: start;
    margin-top: 0;
}

.sample-mineralization-card > label {
    max-width: 460px;
}

.mh-batch-section {
    display: grid;
    gap: 22px;
}

.mh-batch-section > .section-head {
    background: linear-gradient(135deg, #ffffff, #f4eefb);
    border: 1px solid #d9cde8;
    border-radius: 16px;
    padding: 22px 24px;
}

.mh-batch-section .section-head p {
    color: #59687a;
    font-size: 15px;
    line-height: 1.5;
    margin: 6px 0 0;
}

.mh-batch-create-panel,
.mh-batch-run-panel {
    border-color: #c9d7e6;
    overflow: hidden;
}

.mh-batch-create-panel {
    background: #ffffff;
    padding: 0;
}

.mh-batch-create-panel > .section-head {
    background: #f3edf9;
    border-bottom: 1px solid #ddd1ea;
    margin: 0;
    padding: 20px 24px;
}

.mh-batch-form {
    gap: 18px;
}

.mh-batch-create-panel .mh-batch-form {
    padding: 22px 24px 24px;
}

.mh-batch-form .form-grid,
.mh-batch-create-grid {
    align-items: start;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.mh-batch-field {
    grid-column: span 3;
    align-content: start;
    min-width: 0;
}

.mh-batch-field-wide {
    grid-column: span 4;
}

.mh-batch-team-field {
    grid-column: span 4;
}

.mh-batch-notes-field {
    grid-column: 1 / -1;
}

.mh-batch-create-grid .mh-batch-number-field {
    grid-column: span 3;
}

.mh-batch-create-grid .mh-batch-capacity-field {
    grid-column: span 2;
}

.mh-batch-create-grid .mh-batch-field-wide {
    grid-column: span 4;
}

.mh-batch-create-grid .mh-batch-instrument-field {
    grid-column: span 3;
}

.mh-batch-create-grid .mh-batch-date-field,
.mh-batch-create-grid .mh-batch-team-field {
    grid-column: span 3;
}

.mh-batch-field input,
.mh-batch-field select,
.mh-batch-field textarea {
    border-radius: 12px;
    min-height: 48px;
}

.mh-batch-field > input:not([type="checkbox"]):not([type="radio"]),
.mh-batch-field > select:not([multiple]) {
    height: 48px;
}

.mh-batch-field select[multiple] {
    min-height: 104px;
    padding: 8px 10px;
}

.mh-batch-field select[multiple] option {
    padding: 5px 7px;
}

.mh-batch-field textarea {
    min-height: 78px;
}

.mh-batch-create-actions {
    background: #f8f5fb;
    border-top: 1px solid #e5ddee;
    justify-content: flex-end;
    margin: 0 -24px -24px;
    padding: 16px 24px;
}

.mh-batch-create-actions button {
    min-width: 190px;
}

.mh-batch-summary-cards {
    margin-top: 0;
}

.mh-batch-summary-cards .dashboard-card strong {
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.mh-batch-run-head {
    align-items: flex-start;
    background: linear-gradient(135deg, #17233a, #2b2140);
    color: #ffffff;
    gap: 16px;
    margin: 0;
    padding: 22px 24px;
}

.mh-batch-run-head .accounts-eyebrow,
.mh-batch-run-head h2,
.mh-batch-run-head p {
    color: #ffffff;
}

.mh-batch-run-head p {
    opacity: 0.78;
}

.mh-batch-pill {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 800;
    justify-content: center;
    letter-spacing: 0.08em;
    min-width: 96px;
    padding: 8px 14px;
    text-transform: uppercase;
}

.mh-batch-draft-form {
    padding: 22px 24px 24px;
}

.mh-batch-draft-grid {
    background: #f8f6fb;
    border: 1px solid #e3dcec;
    border-radius: 14px;
    gap: 14px;
    padding: 16px;
}

.mh-batch-mini-field {
    grid-column: span 2;
}

.mh-batch-draft-grid .mh-batch-field input,
.mh-batch-draft-grid .mh-batch-field select,
.mh-batch-draft-grid .mh-batch-field textarea {
    background: #ffffff;
    min-height: 42px;
    padding: 8px 10px;
}

.mh-batch-draft-grid .mh-batch-field select[multiple] {
    min-height: 104px;
}

.mh-batch-draft-grid .mh-batch-field textarea {
    min-height: 62px;
}

.mh-batch-instrumentation-summary {
    display: grid;
    gap: 14px;
}

.mh-batch-instrumentation-summary dl {
    background: #f8f6fb;
    border: 1px solid #e3dcec;
    border-radius: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 16px;
}

.mh-batch-instrumentation-summary dl div {
    background: #ffffff;
    border: 1px solid #e7dfef;
    border-radius: 12px;
    min-width: 0;
    padding: 12px;
}

.mh-batch-instrumentation-summary dt {
    color: #6f617f;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.mh-batch-instrumentation-summary dd {
    color: #17233a;
    font-size: 0.92rem;
    font-weight: 850;
    margin: 0;
    overflow-wrap: anywhere;
}

.mh-submitted-batch-lock {
    align-items: start;
    background: linear-gradient(135deg, #f1fbf6, #ffffff);
    border: 1px solid #b8dfca;
    border-radius: 16px;
    display: grid;
    gap: 18px;
    grid-template-columns: auto 1fr;
    margin: 22px 24px 24px;
    padding: 22px;
}

.mh-submitted-batch-lock-icon {
    align-items: center;
    background: #16825d;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    font-size: 1.25rem;
    font-weight: 900;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.mh-submitted-batch-lock h3 {
    color: #153c2e;
    margin: 3px 0 5px;
}

.mh-submitted-batch-lock p {
    color: #526a61;
    line-height: 1.5;
    margin: 0;
}

.mh-submitted-batch-lock dl {
    display: grid;
    gap: 10px;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
}

.mh-submitted-batch-lock dl div {
    background: #ffffff;
    border: 1px solid #d7e9df;
    border-radius: 11px;
    padding: 11px 12px;
}

.mh-submitted-batch-lock dt {
    color: #668074;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.mh-submitted-batch-lock dd {
    color: #17382c;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.mh-submitted-batch-lock .mh-submitted-batch-lock-note {
    background: #e4f5eb;
    border-radius: 10px;
    color: #27634d;
    font-weight: 750;
    grid-column: 1 / -1;
    padding: 11px 13px;
}

.mh-batch-instrumentation-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mh-slot-section-head {
    align-items: center;
    background: #ffffff;
    border: 1px solid #dce6ef;
    border-radius: 14px 14px 0 0;
    border-bottom: 0;
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
    padding: 16px 18px;
}

.mh-slot-section-head h3 {
    color: #17233a;
    font-size: 1.1rem;
    margin: 2px 0 0;
}

.mh-slot-section-head p {
    background: #eef4fb;
    border: 1px solid #c9d7e6;
    border-radius: 999px;
    color: #17233a;
    font-size: 0.82rem;
    font-weight: 850;
    margin: 0;
    padding: 8px 12px;
}

.mh-aflatoxin-view-toolbar {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #c9dcef;
    border-bottom: 0;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 12px 14px;
}

.mh-aflatoxin-view-toolbar strong,
.mh-aflatoxin-view-toolbar span {
    display: block;
}

.mh-aflatoxin-view-toolbar strong {
    color: #17233a;
    font-size: 0.9rem;
}

.mh-aflatoxin-view-toolbar span {
    color: #64758a;
    font-size: 0.78rem;
    margin-top: 2px;
}

.mh-aflatoxin-sample-list {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.mh-aflatoxin-sample-card {
    background: #ffffff;
    border: 1px solid #cbd9e8;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(30, 50, 76, 0.06);
    overflow: hidden;
}

.mh-aflatoxin-sample-card-head {
    align-items: end;
    background: linear-gradient(135deg, #edf4fc, #f7f2fb);
    border-bottom: 1px solid #d8e1ec;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 16px 18px;
}

.mh-aflatoxin-sample-card-head span {
    color: #6c7788;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mh-aflatoxin-sample-card-head h4 {
    color: #17233a;
    font-size: 1.2rem;
    margin: 3px 0;
}

.mh-aflatoxin-sample-card-head p {
    color: #657287;
    margin: 0;
}

.mh-aflatoxin-sample-card-head label {
    color: #29364d;
    font-size: 0.78rem;
    font-weight: 850;
    min-width: 180px;
}

.mh-aflatoxin-sample-card-head select {
    background: #ffffff;
    margin-top: 6px;
    min-height: 42px;
}

.mh-aflatoxin-prep-summary {
    border-bottom: 1px solid #e0e7ef;
    padding: 10px 18px;
}

.mh-aflatoxin-prep-summary summary {
    color: var(--primary);
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 850;
}

.mh-aflatoxin-prep-summary dl {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 12px 0 2px;
}

.mh-aflatoxin-prep-summary dl div {
    background: #f7f9fc;
    border: 1px solid #e0e7ef;
    border-radius: 9px;
    padding: 9px 10px;
}

.mh-aflatoxin-prep-summary dt {
    color: #6c7788;
    font-size: 0.67rem;
    font-weight: 850;
    text-transform: uppercase;
}

.mh-aflatoxin-prep-summary dd {
    color: #26344a;
    font-weight: 750;
    margin: 4px 0 0;
}

.mh-aflatoxin-result-wrap {
    border: 0;
    border-radius: 0;
    margin: 0;
}

.records-table.mh-aflatoxin-result-table {
    min-width: 1080px;
}

.mh-aflatoxin-result-table th,
.mh-aflatoxin-result-table td {
    padding: 10px;
    text-align: left;
    vertical-align: middle;
}

.mh-aflatoxin-result-table thead th {
    background: #2d2142;
    color: #ffffff;
    font-size: 0.7rem;
    white-space: normal;
}

.mh-aflatoxin-result-table tbody th {
    background: #f2eef7;
    color: #2d2142;
    font-size: 0.82rem;
    min-width: 90px;
}

.mh-aflatoxin-result-table input {
    background: #ffffff;
    border: 1px solid #bfcddd;
    border-radius: 8px;
    min-width: 130px;
    padding: 9px 10px;
}

.mh-aflatoxin-result-table input:not([readonly]) {
    border-color: #6f55a0;
    box-shadow: inset 0 0 0 1px rgba(111, 85, 160, 0.12);
}

.mh-aflatoxin-result-table input[readonly] {
    background: #edf2f7;
}

.mh-aflatoxin-totals {
    background: #f5f8fc;
    border-top: 1px solid #d8e1ec;
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(2, minmax(0, 260px));
    justify-content: end;
    padding: 14px 18px;
}

.mh-aflatoxin-totals label {
    color: #344158;
    font-size: 0.75rem;
    font-weight: 850;
}

.mh-aflatoxin-totals input {
    background: #ffffff;
    margin-top: 5px;
}

.mh-aflatoxin-instrumentation-table.is-results-focused thead tr:first-child > :nth-child(2),
.mh-aflatoxin-instrumentation-table.is-results-focused thead tr:first-child > :nth-child(n+4):nth-child(-n+12),
.mh-aflatoxin-instrumentation-table.is-results-focused tbody tr > :nth-child(2),
.mh-aflatoxin-instrumentation-table.is-results-focused tbody tr > :nth-child(n+4):nth-child(-n+12) {
    display: none;
}

.mh-aflatoxin-instrumentation-table.is-results-focused thead tr:first-child > :nth-child(3),
.mh-aflatoxin-instrumentation-table.is-results-focused tbody tr > :nth-child(3) {
    background: #f5f8fc;
    left: 78px;
    min-width: 150px;
    position: sticky;
    z-index: 3;
}

.mh-batch-slot-wrap {
    background: #fff;
    border: 1px solid #c9d7e6;
    border-radius: 0 0 14px 14px;
    overflow-x: auto;
}

.records-table.mh-batch-slot-table {
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1680px;
}

.records-table.mh-prep-worksheet-table {
    min-width: 2240px;
}

.records-table.mh-instrumentation-table {
    min-width: 5600px;
}

.mh-batch-slot-table .mh-group-heading {
    background: #e7dff0;
    color: #2b1b46;
    font-size: 0.76rem;
    text-align: center;
}

.mh-prep-readonly-empty {
    color: #6f617f;
    font-weight: 850;
    padding: 18px !important;
    text-align: center !important;
}

.mh-batch-slot-table th,
.mh-batch-slot-table td {
    border-right: 1px solid #d5c8e4;
    padding: 10px 8px;
    vertical-align: middle;
    white-space: nowrap;
}

.mh-batch-slot-table th:last-child,
.mh-batch-slot-table td:last-child {
    border-right: 0;
}

.mh-batch-slot-table th {
    background: #eef4fb;
    border-bottom: 1px solid #c9d7e6;
    font-size: 0.74rem;
    position: sticky;
    top: 0;
    z-index: 2;
}

.mh-batch-slot-table tbody tr:nth-child(even) {
    background: #fbfdff;
}

.mh-batch-slot-table thead tr:first-child th:first-child,
.mh-batch-slot-table tbody td:first-child {
    border-right: 2px solid #9fb0c4;
    box-shadow: 8px 0 14px rgba(23, 35, 58, 0.08);
    left: 0;
    position: sticky;
    text-align: center;
    width: 64px;
}

.mh-batch-slot-table thead tr:first-child th:first-child {
    background: #eef4fb;
    z-index: 5;
}

.mh-batch-slot-table tbody td:first-child {
    background: #ffffff;
    z-index: 4;
}

.mh-batch-slot-table tbody tr:nth-child(even) td:first-child {
    background: #fbfdff;
}

.mh-instrumentation-table .mh-group-end {
    border-right: 3px solid #8fa2b8;
}

.mh-instrumentation-table .mh-final-total-heading {
    background: #dfe8f2;
    color: #17233a;
}

.mh-instrumentation-table .mh-final-total-cell {
    background: #f4f8fc;
}

.mh-batch-slot-table select,
.mh-batch-slot-table input {
    background: #fff;
    border: 1px solid #d8c9ec;
    border-radius: 10px;
    color: #17233a;
    font-size: 0.82rem;
    font: inherit;
    min-height: 38px;
    min-width: 120px;
    padding: 7px 9px;
    width: 100%;
}

.mh-batch-slot-table [data-mh-sample-select] {
    min-width: 180px;
}

.mh-prep-worksheet-table [data-mh-sample-select] {
    min-width: 155px;
}

.mh-prep-worksheet-table [name="mh_prep_sample_name[]"] {
    min-width: 190px;
}

.mh-prep-worksheet-table input[type="date"] {
    min-width: 150px;
}

.mh-batch-slot-table [name="mh_slot_remarks[]"] {
    min-width: 180px;
}

.mh-prep-worksheet-footer {
    margin-top: 14px;
}

.mh-prep-row-actions {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 12px;
}

.mh-prep-row-actions span {
    color: #59687a;
    font-size: 0.82rem;
    font-weight: 850;
}

.mh-row-action-button {
    background: #fff5f5;
    border: 1px solid #f1b8b8;
    border-radius: 999px;
    color: #9b1c1c;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 850;
    min-height: 34px;
    padding: 6px 12px;
}

.mh-row-action-button:hover {
    background: #ffe8e8;
}

.mh-batch-slot-table [data-mh-recovery] {
    background: #eef4fb;
    font-weight: 800;
}

.mh-slot-readonly {
    background: #f5f8fb;
    border: 1px solid #dce6ef;
    border-radius: 10px;
    color: #17233a;
    display: block;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.3;
    min-width: 120px;
    padding: 8px 9px;
    white-space: normal;
}

.mh-batch-draft-actions {
    background: #f8f5fb;
    border: 1px solid #e5ddee;
    border-radius: 14px;
    justify-content: flex-end;
    padding: 14px;
}

.mh-batch-draft-actions button {
    min-width: 150px;
}

.mh-batch-draft-actions .mh-batch-delete-button {
    background: #ffffff;
    border-color: #bd4b4b;
    color: #a13030;
}

.mh-batch-draft-actions .mh-batch-delete-button:hover {
    background: #a13030;
    color: #ffffff;
}

@media (max-width: 900px) {
    .mh-batch-form .form-grid,
    .mh-batch-create-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-batch-field,
    .mh-batch-field-wide,
    .mh-batch-mini-field,
    .mh-batch-team-field,
    .mh-batch-notes-field,
    .mh-batch-create-grid .mh-batch-number-field,
    .mh-batch-create-grid .mh-batch-capacity-field,
    .mh-batch-create-grid .mh-batch-field-wide,
    .mh-batch-create-grid .mh-batch-instrument-field,
    .mh-batch-create-grid .mh-batch-date-field,
    .mh-batch-create-grid .mh-batch-team-field {
        grid-column: span 2;
    }

    .mh-batch-run-head {
        flex-direction: column;
    }

    .mh-slot-section-head {
        align-items: stretch;
        flex-direction: column;
    }

    .mh-aflatoxin-view-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .mh-aflatoxin-sample-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .mh-aflatoxin-prep-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-batch-instrumentation-summary dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-submitted-batch-lock dl {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mh-batch-instrumentation-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .mh-batch-section > .section-head,
    .mh-batch-create-panel > .section-head,
    .mh-batch-create-panel .mh-batch-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mh-batch-form .form-grid,
    .mh-batch-create-grid {
        grid-template-columns: 1fr;
    }

    .mh-batch-field,
    .mh-batch-field-wide,
    .mh-batch-mini-field,
    .mh-batch-team-field,
    .mh-batch-notes-field,
    .mh-batch-create-grid .mh-batch-number-field,
    .mh-batch-create-grid .mh-batch-capacity-field,
    .mh-batch-create-grid .mh-batch-field-wide,
    .mh-batch-create-grid .mh-batch-instrument-field,
    .mh-batch-create-grid .mh-batch-date-field,
    .mh-batch-create-grid .mh-batch-team-field {
        grid-column: 1 / -1;
    }

    .mh-batch-create-actions {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .mh-batch-create-actions button {
        width: 100%;
    }

    .mh-batch-draft-form {
        padding-left: 16px;
        padding-right: 16px;
    }

    .mh-batch-draft-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .mh-batch-draft-actions button {
        width: 100%;
    }

    .mh-batch-instrumentation-summary dl,
    .mh-batch-instrumentation-grid,
    .mh-submitted-batch-lock dl {
        grid-template-columns: 1fr;
    }

    .mh-submitted-batch-lock {
        grid-template-columns: 1fr;
        margin: 16px;
        padding: 17px;
    }
}

.worksheet-section-note {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 10px;
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 850;
    margin: 0;
    padding: 10px 12px;
}

.metallic-worksheet-card.record-section-missing {
    border-color: #c62828;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.12);
}

.record-field-missing {
    border-color: #c62828 !important;
    box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.14) !important;
}

.record-validation-message {
    line-height: 1.55;
    margin-bottom: 16px;
}

.report-inline-field-error {
    display: block;
    margin-top: 6px;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 700;
}

.metallic-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.metallic-sample-list {
    display: grid;
    gap: 14px;
    margin-top: 14px;
    min-width: 0;
}

.metallic-sample-block {
    border: 1px solid var(--line);
    border-radius: 8px;
    min-width: 0;
    overflow: hidden;
    padding: 12px;
}

.metallic-sample-head {
    align-items: end;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.metallic-sample-head label {
    margin: 0;
    max-width: 320px;
}

.metallic-input-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.metallic-input-table th,
.metallic-input-table td {
    border: 1px solid var(--line);
    padding: 7px;
    vertical-align: top;
}

.metallic-input-table th {
    background: #f8f6fb;
    color: var(--primary-dark);
    font-size: 12px;
    text-align: left;
}

.metallic-input-table .grouped-table-head {
    text-align: center;
}

.metallic-input-table input,
.metallic-input-table select {
    border-color: #e0d6eb;
    min-height: 36px;
    min-width: 0;
    padding: 7px 8px;
}

.remove-test-record,
.add-test-record-button {
    min-height: 36px;
    padding: 7px 12px;
    width: auto;
}

.remove-test-record {
    background: #ffffff;
    border-color: #bd4b4b;
    color: #a13030;
}

.add-test-record-button {
    margin-top: 14px;
}

.assign-modal {
    border-radius: 14px;
    max-width: 520px;
    width: min(100%, 520px);
}

.assign-modal .section-head {
    align-items: flex-start;
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
    padding: 18px 20px;
}

.assign-modal .section-head h2 {
    color: var(--primary-dark);
    font-size: 20px;
    line-height: 1.2;
    margin: 3px 0 0;
}

.assign-modal-eyebrow {
    color: var(--primary);
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.assign-modal-close {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 22px;
    height: 34px;
    justify-content: center;
    line-height: 1;
    min-height: 0;
    padding: 0 0 2px;
    width: 34px;
}

.assign-modal-close:hover {
    background: var(--primary);
    color: #ffffff;
}

.assign-modal .modal-content {
    gap: 16px;
    padding: 20px;
}

.assign-modal-intro {
    color: var(--muted);
    font-size: 14px;
    margin: 0;
}

.assign-modal form {
    display: grid;
    gap: 18px;
}

.assign-lab-choice {
    background: #faf7ff;
    padding: 10px;
}

.assign-lab-choice label {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    padding: 13px;
    width: 100%;
}

.assign-lab-choice label:hover {
    border-color: var(--primary);
}

.assign-lab-choice strong,
.assign-lab-choice small {
    display: block;
}

.assign-lab-choice strong {
    color: var(--primary-dark);
    font-size: 14px;
}

.assign-lab-choice small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 2px;
}

.assign-modal-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.assign-modal-actions button {
    min-height: 38px;
    padding: 8px 14px;
    width: auto;
}

.assign-modal-actions .button-link {
    min-height: 38px;
    padding: 8px 14px;
    width: auto;
}

.assign-modal-cancel {
    background: #ffffff;
    border-color: var(--line);
    color: var(--primary);
}

.technician-select-field {
    background: #faf7ff;
    border: 1px solid var(--line);
    border-radius: 9px;
    gap: 7px;
    padding: 13px;
}

.technician-select-field span {
    color: var(--primary-dark);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.assign-modal-cancel:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.dashboard-table-panel .section-head {
    background: linear-gradient(180deg, #ffffff 0%, var(--primary-soft) 100%);
    margin: 0;
    padding: 12px 14px;
}

.dashboard-table-panel .section-head h2 {
    background: var(--primary);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 14px;
    line-height: 1.2;
    margin-bottom: 0;
    min-height: 34px;
    padding: 8px 14px;
}

.dashboard-table-panel .section-head p {
    font-size: 12px;
}

.dashboard-table-panel .table-wrap {
    margin: 0;
    max-height: min(62vh, 620px);
    max-width: 100%;
    overflow: auto;
    scrollbar-color: var(--line) transparent;
    scrollbar-width: thin;
    width: 100%;
}

.dashboard-table-panel .table-wrap::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.dashboard-table-panel .table-wrap::-webkit-scrollbar-thumb {
    background: var(--line);
    border-radius: 999px;
}

.datatable-controls,
.datatable-footer {
    align-items: center;
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 10px 14px;
}

.datatable-controls {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

.datatable-controls label {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    flex-direction: row;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.datatable-controls select {
    min-height: 34px;
    padding: 5px 8px;
    width: 72px;
}

.datatable-controls .datatable-filter select {
    min-width: 0;
    width: clamp(155px, 17vw, 210px);
}

.datatable-controls input {
    min-height: 34px;
    padding: 5px 8px;
    width: clamp(190px, 22vw, 260px);
}

.datatable-footer {
    background: var(--primary-soft);
    border-top: 1px solid var(--line);
}

.datatable-footer p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 0;
}

.datatable-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.datatable-pagination button {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    min-height: 32px;
    padding: 5px 10px;
}

.datatable-pagination button:hover,
.datatable-pagination button.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
}

.datatable-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.dashboard-data-table td[colspan] {
    color: var(--muted);
    padding-bottom: 24px;
    padding-top: 24px;
    text-align: center;
}

.records-table.dashboard-data-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 1040px;
}

.records-table.all-customers-table {
    min-width: 1380px;
}

.records-table.report-data-table {
    min-width: 1680px;
}

.report-filter-controls {
    grid-template-columns: repeat(4, minmax(180px, 1fr));
}

.report-filter-controls .report-filter-actions {
    grid-column: 1 / -1;
}

.records-table.mh-samples-table {
    min-width: 980px;
}

.records-table.dashboard-data-table th,
.records-table.dashboard-data-table td {
    font-size: 13px;
    padding: 12px 13px;
    white-space: nowrap;
}

.records-table.dashboard-data-table td:has(.table-actions) {
    min-width: 210px;
    white-space: normal;
}

.all-samples-datatable-controls {
    align-items: end;
    display: grid;
    column-gap: 24px;
    row-gap: 18px;
    grid-template-columns: 100px minmax(320px, 1.65fr) repeat(3, minmax(210px, 1fr)) minmax(96px, auto);
    justify-content: stretch;
    margin-bottom: 0;
    min-width: 1180px;
    overflow-x: auto;
    padding: 18px 20px;
    -webkit-overflow-scrolling: touch;
}

.all-samples-datatable-controls .datatable-filter {
    align-items: stretch;
    display: grid;
    gap: 9px;
    min-width: 0;
}

.all-samples-datatable-controls .datatable-filter span {
    color: #4f5b6d;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0;
    text-transform: none;
}

.all-samples-datatable-controls input,
.all-samples-datatable-controls select {
    border: 1px solid #d7e3f1;
    border-radius: 8px;
    max-width: none;
    min-height: 42px;
    min-width: 0;
    padding: 7px 10px;
    width: 100%;
}

.all-samples-datatable-controls .datatable-filter-entries select {
    width: 76px;
}

.hod-clean-filter-controls {
    column-gap: 32px;
    grid-template-columns: 120px minmax(210px, 0.85fr) minmax(230px, 1fr) minmax(250px, 1.1fr) minmax(340px, 1.45fr);
    min-width: 1180px;
    overflow-x: auto;
    row-gap: 22px;
}

.hod-clean-filter-controls .datatable-filter {
    gap: 10px;
}

.hod-clean-filter-controls .datatable-filter span {
    display: block;
    line-height: 1.25;
    min-height: 18px;
}

.hod-clean-filter-controls input,
.hod-clean-filter-controls select {
    height: 44px;
    line-height: 1.25;
    padding: 9px 14px;
}

.hod-clean-filter-controls .datatable-filter-entries {
    max-width: 120px;
}

.hod-clean-filter-controls .datatable-filter-entries select {
    width: 100%;
}

.dispatch-datatable-controls {
    grid-template-columns: 110px minmax(260px, 1fr) minmax(180px, 0.85fr) minmax(190px, 0.85fr) minmax(200px, 0.9fr) minmax(170px, 0.75fr) auto;
}

.dispatch-datatable-controls .dispatch-search-button {
    align-self: end;
}

.datatable-filter-go {
    min-height: 34px;
    padding: 6px 12px;
    width: 58px;
}

.all-samples-search-button {
    align-items: center;
    background: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 8px;
    color: #ffffff;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 8px 16px;
    width: auto;
}

.all-samples-search-button:hover {
    background: var(--primary-dark);
}

.invoice-filter-controls.datatable-controls label {
    align-items: stretch;
    display: grid;
    flex-direction: initial;
}

.invoice-filter-controls.datatable-controls input,
.invoice-filter-controls.datatable-controls select {
    max-width: none;
    min-height: 48px;
    width: 100%;
}

.desk-invoice-filter-controls {
    align-items: end;
    column-gap: 28px;
    grid-template-columns: 110px 280px 190px 190px 150px 170px 170px max-content;
    max-width: 100%;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    row-gap: 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.hod-invoice-filter-controls {
    column-gap: 28px;
    grid-template-columns: 110px 210px 220px 230px 300px 150px 170px 170px max-content;
    max-width: 100%;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    row-gap: 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.director-invoice-filter-controls {
    column-gap: 24px;
    grid-template-columns: 110px 180px 200px 200px 260px 140px 170px 170px max-content;
    max-width: 100%;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    row-gap: 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.director-reports-filter-controls,
.director-dashboard-filter-controls {
    column-gap: 32px;
    grid-template-columns: 110px 190px 230px 230px minmax(280px, 1fr);
    max-width: 100%;
    min-width: 1070px;
    overflow-x: auto;
    padding-left: 24px;
    padding-right: 24px;
    row-gap: 20px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.desk-invoice-filter-controls .datatable-filter,
.hod-invoice-filter-controls .datatable-filter,
.director-reports-filter-controls .datatable-filter,
.director-dashboard-filter-controls .datatable-filter {
    min-width: 0;
}

.hod-invoice-filter-actions {
    align-self: end;
}

.desk-invoice-filter-actions {
    gap: 14px;
}

.hod-invoice-filter-actions .invoice-filter-export {
    min-height: 44px;
    white-space: nowrap;
}

.desk-invoice-filter-controls .datatable-filter-search {
    grid-column: auto;
    min-width: 0;
}

.desk-invoice-filter-actions {
    align-items: end;
    display: flex;
    gap: 14px;
    grid-column: auto;
    justify-content: flex-start;
    min-width: 0;
}

.desk-invoice-filter-actions .all-samples-search-button,
.desk-invoice-filter-actions .invoice-filter-export {
    min-height: 48px;
    white-space: nowrap;
}

.desk-report-filter-controls {
    align-items: end;
    grid-template-columns: 110px minmax(220px, 1.25fr) 145px 145px minmax(150px, 1fr) minmax(150px, 1fr) minmax(170px, 1fr) auto;
    overflow-x: auto;
}

.desk-report-filter-controls .desk-invoice-filter-actions {
    min-width: 360px;
}

.dashboard-data-table td:nth-child(4) {
    min-width: 190px;
}

.mh-samples-table td:nth-child(4) {
    min-width: 130px;
}

.dashboard-data-table th:last-child,
.dashboard-data-table td:last-child {
    min-width: 246px;
}

.dashboard-data-table thead th {
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 11px;
    letter-spacing: 0.04em;
    position: sticky;
    top: 0;
    z-index: 2;
}

.dashboard-data-table tbody tr {
    transition: background 160ms ease, box-shadow 160ms ease;
}

.dashboard-data-table tbody tr:hover {
    background: #faf7ff;
    box-shadow: inset 5px 0 0 var(--primary);
}

.table-actions {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(94px, 1fr));
    min-width: 0;
    width: min(100%, 230px);
}

.table-actions a,
.table-actions button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--primary);
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 30px;
    min-width: 0;
    padding: 5px 9px;
    text-decoration: none;
    white-space: nowrap;
    width: 100%;
}

.table-actions a:nth-child(3):last-child,
.table-actions button:nth-child(3):last-child {
    grid-column: 1 / -1;
}

.table-actions .generate-record-action {
    background: #eef4fb;
    border-color: #bfd0e4;
    border-radius: 8px;
    color: var(--primary-dark);
    grid-column: 1 / -1;
    min-height: 36px;
    padding-left: 12px;
    padding-right: 12px;
}

.records-action-stack {
    align-items: stretch;
    display: grid;
    gap: 7px;
    grid-template-columns: 1fr;
    position: relative;
    width: 124px;
    z-index: 3;
}

.records-action-stack a,
.records-action-stack button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    justify-content: center;
    min-height: 30px;
    padding: 6px 10px;
    pointer-events: auto;
    text-decoration: none;
    width: 100%;
}

.records-action-stack .records-view-action {
    background: #ffffff;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.records-action-stack .generate-record-action {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    grid-column: auto;
    min-height: 32px;
}

.mh-samples-table td:last-child {
    min-width: 150px;
}

.records-table.dashboard-data-table td.records-action-cell {
    min-width: 150px;
    width: 150px;
    white-space: normal;
}

.table-actions a:hover,
.table-actions button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    text-decoration: none;
}

.table-actions form {
    margin: 0;
}

.pickup-collection-action,
.pickup-collected-summary {
    grid-column: 1 / -1;
    width: 100%;
}

.pickup-collection-action {
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
}

.pickup-collection-action summary {
    background: #f7f2fc;
    color: var(--primary);
    cursor: pointer;
    font-size: 12px;
    font-weight: 900;
    list-style-position: inside;
    padding: 8px 10px;
    text-align: center;
}

.pickup-collection-action form {
    display: grid;
    gap: 9px;
    padding: 10px;
}

.pickup-collection-action label {
    color: var(--muted);
    display: grid;
    font-size: 11px;
    font-weight: 800;
    gap: 4px;
    text-align: left;
}

.pickup-collection-action input,
.pickup-collection-action textarea {
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--text);
    font: inherit;
    min-width: 0;
    padding: 7px 8px;
    resize: vertical;
    width: 100%;
}

.pickup-collection-action button {
    background: var(--primary);
    color: #ffffff;
}

.pickup-collected-summary {
    background: #effaf4;
    border: 1px solid #aedbc0;
    border-radius: 10px;
    color: #24633d;
    display: grid;
    font-size: 11px;
    gap: 3px;
    padding: 9px 10px;
}

.pickup-collected-summary strong {
    font-size: 12px;
}

.table-actions.dispatch-pack-actions {
    align-items: stretch;
    display: grid;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr);
    min-width: 210px;
    width: 210px;
}

.dispatch-pack-actions > * {
    grid-column: 1 / -1;
}

.dispatch-pack-actions > a:only-child {
    grid-column: 1 / -1;
    white-space: normal;
}

.dispatch-print-form {
    margin: 0;
}

.dispatch-print-form button {
    background: var(--primary);
    border: 0;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1.2;
    min-height: 38px;
    padding: 8px 10px;
    text-align: center;
    white-space: normal;
    width: 100%;
}

.dispatch-print-form button:disabled {
    background: #c9d0da;
    color: #667181;
    cursor: not-allowed;
}

.dispatch-print-status,
.dispatch-awaiting-pack,
.dispatch-pack-ready {
    border-radius: 7px;
    display: block;
    font-size: 0.68rem;
    font-weight: 750;
    line-height: 1.3;
    padding: 6px 8px;
    text-align: center;
}

.dispatch-print-status {
    background: #f0f3f7;
    color: #637083;
}

.dispatch-print-status.is-complete,
.dispatch-pack-ready {
    background: #e5f4e9;
    color: #22633a;
}

.dispatch-awaiting-pack {
    background: #fff7df;
    color: #795a0b;
}

.table-wrap {
    margin: 0 calc(clamp(16px, 4vw, 30px) * -1) calc(clamp(16px, 4vw, 30px) * -1);
    overflow-x: auto;
}

.sample-preview-panel {
    display: flex;
    flex-direction: column;
    max-height: min(42vh, 360px);
}

.table-wrap.sample-preview-table-wrap {
    flex: 1 1 auto;
    margin: 0;
    max-height: none;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

.sample-view-list {
    max-height: min(58vh, 680px);
    overflow-y: auto;
    padding-right: 4px;
}

.records-table {
    border-collapse: collapse;
    min-width: 920px;
    width: 100%;
}

.records-table th,
.records-table td {
    border-bottom: 1px solid var(--line);
    padding: 16px clamp(18px, 4vw, 34px);
    text-align: left;
    vertical-align: top;
}

.records-table th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
}

.records-table td span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.records-table td .mh-row-method {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    margin-top: 5px;
    white-space: normal;
}

.records-table .active-row {
    background: var(--primary-soft);
}

.tabs {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.sidebar-user {
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    color: #ffffff;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.3;
    margin-top: auto;
    overflow-wrap: anywhere;
    padding: 14px 8px 2px;
}

.service-sidebar.is-collapsed .sidebar-user {
    display: none;
}

.tab {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    display: flex;
    font-size: 14px;
    font-weight: 800;
    gap: 11px;
    min-height: 52px;
    padding: 7px;
    text-decoration: none;
    white-space: nowrap;
}

.tab-icon {
    background: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-sizing: content-box;
    fill: none;
    flex: 0 0 20px;
    height: 20px;
    padding: 9px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
    width: 20px;
}

.tab-icon path:first-child {
    vector-effect: non-scaling-stroke;
}

.service-sidebar.is-collapsed .tab {
    justify-content: center;
    padding: 6px 0;
}

.service-sidebar.is-collapsed .tab-label {
    display: none;
}

.tab:hover,
.tab.active {
    background: rgba(255, 255, 255, 0.20);
    box-shadow: inset 4px 0 0 var(--accent);
    color: #ffffff;
    text-decoration: none;
}

.tab:hover .tab-icon,
.tab.active .tab-icon {
    background: var(--accent);
}

@media (max-width: 1100px) {
    .service-page {
        padding-left: 16px;
        padding-right: 16px;
    }

    .dashboard-cards {
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-user-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-filter-banner {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        min-width: 980px;
    }

    .activity-search-filter {
        grid-column: span 2;
    }

    .dashboard-card {
        min-height: 104px;
        padding: 14px 18px;
    }

    .target-settings-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-lab-tab-list,
    .target-lab-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-visual-grid {
        grid-template-columns: 1fr;
    }

    .target-lab-charts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-lab-charts-stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-settings-submit {
        grid-column: 1 / -1;
    }

    .all-samples-datatable-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 980px;
        overflow-x: auto;
    }

    .director-reports-filter-controls,
    .director-dashboard-filter-controls {
        grid-template-columns: 110px 190px 230px 230px minmax(280px, 1fr);
        min-width: 1070px;
        overflow-x: auto;
    }

    .hod-clean-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 980px;
        overflow-x: auto;
    }

    .all-samples-datatable-controls .datatable-filter-search,
    .all-samples-datatable-controls .datatable-filter-purpose {
        grid-column: span 2;
    }

    .director-reports-filter-controls .datatable-filter-search,
    .director-dashboard-filter-controls .datatable-filter-search {
        grid-column: auto;
    }

    .hod-clean-filter-controls .datatable-filter-search {
        grid-column: span 2;
    }

    .all-samples-search-button {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .page {
        padding-bottom: 40px;
    }

    .intro {
        margin-bottom: 16px;
    }

    .form-grid {
        gap: 15px;
        grid-template-columns: 1fr;
    }

    button {
        width: 100%;
    }

    .target-lab-tab-list,
    .target-lab-charts,
    .target-lab-charts-stack,
    .target-lab-metrics {
        grid-template-columns: 1fr;
    }

    .target-spline-summary {
        grid-template-columns: 1fr;
    }

    .target-spline-svg {
        min-height: 220px;
    }

    .target-chart-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .target-graph-head,
    .target-graph-row {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .target-graph-head {
        display: grid;
    }

    .target-graph-percent {
        text-align: left;
    }

    .target-lab-panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .target-lab-panel-head strong {
        text-align: left;
    }

    .table-actions button {
        width: auto;
    }

    .service-brand {
        min-width: 0;
    }

    .button-link {
        width: 100%;
    }

    .service-shell {
        display: block;
        min-height: 100vh;
    }

    .service-sidebar {
        flex-basis: 208px;
        left: 0;
        padding: 12px 8px;
        position: fixed;
        top: 0;
        width: 208px;
        z-index: 30;
    }

    .service-sidebar.is-collapsed {
        flex-basis: 64px;
        width: 64px;
    }

    .service-page {
        margin-left: 64px;
        min-width: 0;
        padding-left: 12px;
        padding-right: 12px;
        width: calc(100% - 64px);
    }

    .dashboard-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-user-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-filter-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .activity-search-filter {
        grid-column: 1 / -1;
    }

    .service-page .profile-hero {
        align-items: flex-start;
        flex-direction: column;
        padding: 20px;
    }

    .service-page .profile-grid,
    .service-page .profile-details,
    .service-page .profile-metrics {
        grid-template-columns: 1fr;
    }

    .service-page .profile-activity-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .service-page .profile-activity-pagination {
        justify-content: space-between;
    }

    .service-page .profile-activity-filter {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .service-page .profile-activity-filter select,
    .service-page .profile-activity-filter button {
        min-width: 0;
        width: 100%;
    }

    .service-page .profile-activity-details {
        grid-template-columns: 1fr;
    }

    .hod-review-report-head {
        align-items: stretch;
        flex-direction: column;
    }

    .hod-review-report-actions {
        justify-content: flex-start;
    }

    .workflow-tracking-grid {
        grid-template-columns: 1fr;
    }

    .workflow-stage-strip {
        grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    }

    .workflow-particulars div,
    .workflow-location-details {
        grid-template-columns: 1fr;
    }

    .workflow-particulars dd {
        text-align: left;
    }

    .workflow-tracking-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .datatable-controls,
    .datatable-footer {
        align-items: stretch;
        flex-direction: column;
        padding: 9px 10px;
    }

    .datatable-controls label {
        gap: 8px;
        justify-content: space-between;
    }

    .datatable-controls select {
        max-width: 100%;
    }

    .datatable-controls .datatable-filter select {
        min-width: 0;
        width: 100%;
    }

    .datatable-controls input {
        width: 100%;
    }

    .all-samples-datatable-controls {
        display: grid;
        gap: 14px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 920px;
        overflow-x: auto;
    }

    .hod-clean-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 920px;
        overflow-x: auto;
    }

    .invoice-filter-controls {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .desk-invoice-filter-controls {
        grid-template-columns: 110px 280px 190px 190px 150px 170px 170px max-content;
        overflow-x: auto;
    }

    .hod-invoice-filter-controls {
        grid-template-columns: 110px 210px 220px 230px 300px 150px 170px 170px max-content;
        overflow-x: auto;
    }

    .director-invoice-filter-controls {
        grid-template-columns: 110px 180px 200px 200px 260px 140px 170px 170px max-content;
        overflow-x: auto;
    }

    .director-reports-filter-controls,
    .director-dashboard-filter-controls {
        grid-template-columns: 110px 190px 230px 230px minmax(280px, 1fr);
        overflow-x: auto;
    }

    .catalog-search-controls {
        grid-template-columns: 1fr;
    }

    .catalog-search-controls .invoice-filter-search {
        width: 100%;
    }

    .catalog-management-grid {
        grid-template-columns: 1fr;
    }

    .invoice-filter-actions {
        flex-wrap: wrap;
    }

    .datatable-filter-go {
        align-self: end;
        width: 100%;
    }

    .all-samples-datatable-controls .datatable-filter-search {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .director-reports-filter-controls .datatable-filter-search,
    .director-dashboard-filter-controls .datatable-filter-search {
        grid-column: auto;
        grid-row: auto;
    }

    .hod-clean-filter-controls .datatable-filter-search {
        grid-row: auto;
    }

    .all-samples-datatable-controls .datatable-filter-status {
        grid-column: auto;
    }

    .dashboard-table-panel .table-wrap {
        max-height: 56vh;
    }

    .datatable-pagination {
        justify-content: flex-start;
    }

    .account-credential-grid,
    .account-password-row {
        grid-template-columns: 1fr;
    }

    .account-password-row .assign-modal-actions {
        justify-content: stretch;
    }

    .account-password-row .assign-modal-actions .button-link,
    .account-password-row .assign-modal-actions button {
        flex: 1;
    }
}

@media (max-width: 480px) {
    body {
        background: var(--panel);
    }

    .page {
        padding: 20px 12px 32px;
    }

    .intro p {
        font-size: 15px;
    }

    .panel {
        border-left: 0;
        border-right: 0;
        box-shadow: none;
        margin-left: -12px;
        margin-right: -12px;
        padding: 18px 12px;
    }

    .customer-form {
        gap: 16px;
    }

    label {
        font-size: 12px;
    }

    .agreement {
        padding: 12px;
    }

    .errors,
    .success {
        padding: 12px;
    }

    .errors ul {
        padding-left: 20px;
    }

    .dashboard-cards {
        gap: 12px;
        grid-template-columns: 1fr;
        margin-top: 18px;
    }

    .activity-user-grid {
        grid-template-columns: 1fr;
    }

    .activity-filter-banner {
        grid-template-columns: 1fr;
        min-width: 0;
    }

    .activity-search-filter {
        grid-column: auto;
    }

    .activity-filter-reset {
        width: 100%;
    }

    .activity-log-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-detail-hero {
        align-items: flex-start;
        flex-direction: column;
    }

    .activity-detail-hero strong {
        width: 100%;
    }

    .activity-detail-timeline-item {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        min-height: 92px;
        padding: 16px 22px;
    }

    .target-health-head {
        align-items: flex-start;
        display: grid;
    }

    .target-health-head p {
        text-align: left;
    }

    .target-summary-cards,
    .target-settings-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .target-settings-submit {
        grid-column: auto;
    }

    .dashboard-table-panel {
        border-radius: 9px;
        margin-top: 14px;
    }

    .dashboard-table-panel .section-head {
        padding: 10px;
    }

    .dashboard-table-panel .section-head h2 {
        font-size: 12px;
        min-height: 30px;
        padding: 7px 10px;
    }

    .all-samples-datatable-controls {
        grid-template-columns: 1fr;
        gap: 12px;
        min-width: 760px;
        overflow-x: auto;
    }

    .director-reports-filter-controls,
    .director-dashboard-filter-controls {
        grid-template-columns: 110px 190px 230px 230px minmax(280px, 1fr);
        min-width: 1070px;
        overflow-x: auto;
    }

    .hod-clean-filter-controls {
        grid-template-columns: 1fr;
        min-width: 760px;
        overflow-x: auto;
    }

    .all-samples-datatable-controls .datatable-filter-search {
        grid-column: auto;
        grid-row: auto;
    }

    .datatable-filter-go {
        width: 100%;
    }

    .assign-modal .section-head,
    .assign-modal .modal-content {
        padding: 15px;
    }

    .assign-modal-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .assign-modal-actions button {
        width: 100%;
    }

    .assign-modal-actions .button-link {
        width: 100%;
    }

    .service-sample-modal {
        border-radius: 8px;
    }

    .service-sample-modal .section-head,
    .service-sample-modal .modal-content {
        padding: 14px;
    }

    .service-sample-form .choice-field[data-parameter-group],
    .service-sample-form .choice-field[data-method-group] {
        gap: 8px;
        grid-template-columns: 1fr;
        padding: 13px;
    }

    .service-sample-form .choice-field[data-parameter-group] label,
    .service-sample-form .choice-field[data-method-group] label {
        min-height: 48px;
        padding: 11px 12px;
    }

    .service-sample-form .recommended-parameter-field {
        transform: none;
    }

    .customer-details {
        grid-template-columns: 1fr;
    }

    .modal-backdrop {
        padding: 8px;
    }

    .customer-modal,
    .workflow-tracking-modal {
        border-radius: 8px;
        width: 100%;
    }

    .desk-officer-view-modal {
        border-radius: 8px;
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
        min-height: 0;
        overflow: hidden;
    }

    .desk-officer-view-modal .section-head,
    .desk-officer-view-modal .modal-content {
        padding: 14px;
    }

    .desk-officer-view-modal .modal-content {
        flex: 1 1 auto;
        max-height: none;
        min-height: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .desk-officer-view-modal .section-head,
    .workflow-tracking-header,
    .workflow-header-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .desk-officer-view-modal .section-head .desk-officer-review-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .desk-officer-view-modal .section-head .button-link {
        justify-content: center;
        width: 100%;
    }

    .workflow-header-brand img {
        height: 54px;
        width: 54px;
    }

    .workflow-tracking-header h2 {
        font-size: 24px;
    }

    .workflow-header-actions {
        justify-content: space-between;
        width: 100%;
    }

    .workflow-tracking-content {
        padding: 14px;
    }

    .workflow-tracking-grid {
        grid-template-columns: 1fr;
    }

    .workflow-stage-strip {
        grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
    }

    .workflow-stage {
        align-content: start;
        min-height: 126px;
    }

    .view-modal-section,
    .desk-officer-view-modal .modal-content > section {
        padding: 13px;
    }

    .desk-officer-review-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .desk-officer-review-actions button {
        width: 100%;
    }

    .service-brand {
        align-items: center;
        font-size: 12px;
    }

    .gsa-logo {
        height: 36px;
        width: 44px;
    }

    .section-head {
        margin-left: -12px;
        margin-right: -12px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .table-wrap {
        margin-left: -12px;
        margin-right: -12px;
    }

    .sample-preview-table-wrap {
        margin-left: 0;
        margin-right: 0;
    }

    .sample-preview-panel {
        max-height: 300px;
    }

    .sample-view-list {
        max-height: 56vh;
    }
}

@media print {
    body.printing-invoice,
    body.printing-report {
        background: #ffffff;
    }

    body.printing-invoice .service-sidebar,
    body.printing-invoice .invoice-filter-panel,
    body.printing-invoice .table-actions,
    body.printing-invoice .feedback-popup,
    body.printing-report .service-sidebar,
    body.printing-report .report-filter-panel,
    body.printing-report .table-actions,
    body.printing-report .feedback-popup {
        display: none !important;
    }

    body.printing-invoice .service-shell,
    body.printing-report .service-shell {
        display: block;
    }

    body.printing-invoice .service-page,
    body.printing-report .service-page {
        padding: 0;
    }

    body.printing-invoice .dashboard-section,
    body.printing-report .dashboard-section {
        padding: 0;
    }

    body.printing-invoice .dashboard-card,
    body.printing-invoice .dashboard-table-panel,
    body.printing-report .dashboard-card,
    body.printing-report .dashboard-table-panel {
        box-shadow: none;
    }

    body.printing-invoice .table-wrap,
    body.printing-report .table-wrap {
        margin: 0;
        overflow: visible;
    }

    body.printing-invoice table,
    body.printing-report table {
        font-size: 11px;
    }
}

/* Customer report portal */
.customer-portal-body {
    --portal-ink: #17251d;
    --portal-muted: #5c6a62;
    --portal-green: #17603a;
    --portal-green-dark: #10492c;
    --portal-line: #d6ded8;
    background: #f4f7f5;
    color: var(--portal-ink);
    min-height: 100vh;
    overflow-x: hidden;
}

.customer-portal-header {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid var(--portal-line);
    display: flex;
    justify-content: space-between;
    min-height: 82px;
    padding: 12px clamp(18px, 5vw, 72px);
    width: 100%;
}

.customer-portal-header .button-link {
    flex: 0 0 auto;
    width: auto;
}

.customer-portal-brand {
    align-items: center;
    color: var(--portal-ink);
    display: inline-flex;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
}

.customer-portal-brand > span {
    min-width: 0;
}

.customer-portal-brand img {
    height: 54px;
    object-fit: contain;
    width: 68px;
}

.customer-portal-brand.is-logo-only img {
    height: 62px;
    width: 100px;
}

.customer-portal-brand.is-signed-in img {
    height: 72px;
    transform: translateY(-5px);
    width: 118px;
}

.customer-portal-brand.is-signed-in {
    align-items: center;
    flex-direction: column;
    gap: 0;
    justify-content: center;
    transform: translateX(-8px);
}

.portal-brand-title strong {
    color: var(--portal-green-dark);
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 0.075em;
    line-height: 1.2;
    max-width: 180px;
    text-align: center;
    white-space: nowrap;
}

.customer-portal-brand strong,
.customer-portal-brand small {
    display: block;
}

.customer-portal-nav {
    align-items: center;
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.portal-header-actions {
    align-items: center;
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
    min-width: 0;
}

.portal-header-greeting {
    border-left: 1px solid var(--portal-line);
    min-width: 0;
    padding-left: 18px;
    text-align: right;
}

.portal-header-greeting span,
.portal-header-greeting strong {
    display: block;
}

.portal-header-greeting span {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.portal-header-greeting strong {
    font-size: 14px;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-portal-signed-in .portal-header-greeting {
    align-items: center;
    background: linear-gradient(135deg, rgba(231, 242, 235, 0.94), rgba(255, 255, 255, 0.94));
    border: 1px solid rgba(164, 194, 174, 0.7);
    border-radius: 999px;
    box-shadow: 0 7px 20px rgba(32, 77, 52, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    gap: 9px;
    padding: 6px 12px 6px 6px;
    text-align: left;
}

.portal-greeting-avatar {
    align-items: center;
    background: linear-gradient(145deg, #397153, #17492e);
    border: 2px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(20, 73, 43, 0.2);
    color: #fff !important;
    display: flex !important;
    flex: 0 0 auto;
    font-size: 14px !important;
    font-weight: 900 !important;
    height: 36px;
    justify-content: center;
    text-transform: uppercase;
    width: 36px;
}

.portal-greeting-copy {
    min-width: 0;
}

.portal-greeting-copy > span {
    align-items: center;
    color: #557064;
    display: flex;
    font-size: 9px;
    gap: 5px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.portal-greeting-copy i {
    background: #38a169;
    border-radius: 50%;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.13);
    height: 6px;
    width: 6px;
}

.portal-greeting-copy strong {
    color: #183d29;
    font-size: 12px;
    margin-top: 2px;
    max-width: 170px;
}

@media (max-width: 520px) {
    .customer-portal-brand.is-signed-in {
        gap: 0;
    }

    .customer-portal-brand.is-signed-in img {
        height: 60px;
        transform: translateY(-3px);
        width: 94px;
    }

    .customer-portal-brand.is-signed-in {
        transform: translateX(-4px);
    }

    .portal-brand-title strong {
        font-size: 7px;
        letter-spacing: 0.045em;
        max-width: 110px;
    }

    .customer-portal-signed-in .portal-header-greeting {
        gap: 6px;
        padding: 5px 8px 5px 5px;
    }

    .portal-greeting-avatar {
        font-size: 12px !important;
        height: 30px;
        width: 30px;
    }

    .portal-greeting-copy > span {
        font-size: 7px;
    }

    .portal-greeting-copy strong {
        font-size: 10px;
        max-width: 88px;
    }
}

.customer-portal-nav a {
    align-items: center;
    border-radius: 6px;
    color: var(--portal-muted);
    display: inline-flex;
    font-size: 13px;
    font-weight: 800;
    gap: 7px;
    min-height: 44px;
    padding: 8px 11px;
    position: relative;
    white-space: nowrap;
    text-decoration: none;
}

.customer-portal-nav a:hover,
.customer-portal-nav a.is-active {
    background: #e8f1eb;
    color: var(--portal-green-dark);
}

.customer-portal-nav .portal-signout-link:hover {
    background: #f8e9e7;
    color: #9f4038;
}

.customer-portal-nav svg {
    fill: none;
    flex: 0 0 auto;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 20px;
}

.portal-notification-link > strong {
    align-items: center;
    background: #b3261e;
    border: 2px solid #ffffff;
    border-radius: 50%;
    color: #ffffff;
    display: flex;
    font-size: 9px;
    height: 18px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 4px;
    top: 2px;
    width: 18px;
}

.customer-portal-brand strong {
    font-size: 15px;
}

.customer-portal-brand small {
    color: var(--portal-muted);
    font-size: 13px;
}

.customer-portal-body .button-link,
.customer-portal-body button {
    background: var(--portal-green);
    border-color: var(--portal-green);
}

.customer-portal-body .button-link:hover,
.customer-portal-body button:hover {
    background: var(--portal-green-dark);
}

.customer-portal-auth {
    align-items: center;
    display: grid;
    gap: clamp(36px, 7vw, 100px);
    grid-template-columns: minmax(0, 1fr) minmax(340px, 460px);
    margin: 0 auto;
    max-width: 1180px;
    min-height: calc(100vh - 82px);
    padding: 52px 28px;
    width: 100%;
}

.customer-portal-auth > *,
.portal-auth-panel,
.portal-access-form,
.portal-access-form label {
    max-width: 100%;
    min-width: 0;
    width: 100%;
}

.portal-auth-copy h1 {
    font-size: clamp(38px, 6vw, 68px);
    line-height: 1.04;
    max-width: 760px;
}

.portal-auth-copy p {
    color: var(--portal-muted);
    font-size: 18px;
    max-width: 560px;
}

.customer-portal-body .accounts-eyebrow {
    color: var(--portal-green);
}

.portal-auth-copy .accounts-eyebrow,
.portal-auth-copy h1,
.portal-auth-copy p {
    animation: portal-auth-copy-rise .85s ease both;
    will-change: transform, opacity;
}

.portal-auth-copy h1 {
    animation-delay: .12s;
}

.portal-auth-copy p {
    animation-delay: .24s;
}

@keyframes portal-auth-copy-rise {
    0% {
        opacity: 0;
        transform: translateY(16px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.portal-auth-panel {
    background: #ffffff;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(24, 50, 34, 0.10);
    padding: 24px;
}

.portal-auth-tabs {
    border-bottom: 1px solid var(--portal-line);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -4px 0 24px;
}

.portal-auth-tabs a {
    border-bottom: 3px solid transparent;
    color: var(--portal-muted);
    font-size: 14px;
    font-weight: 800;
    padding: 13px 8px;
    text-align: center;
    text-decoration: none;
}

.portal-auth-tabs a.is-active {
    border-bottom-color: var(--portal-green);
    color: var(--portal-green);
}

.portal-auth-note {
    background: rgba(23, 96, 58, 0.07);
    border: 1px solid rgba(23, 96, 58, 0.14);
    border-radius: 14px;
    color: var(--portal-muted);
    display: grid;
    gap: 4px;
    line-height: 1.45;
    padding: 14px 15px;
}

.portal-auth-note strong {
    color: var(--portal-ink);
    font-size: 15px;
}

.portal-auth-note span {
    font-size: 13px;
}

.portal-auth-linkline {
    color: var(--portal-muted);
    font-size: 14px;
    margin: 16px 0 0;
    text-align: center;
}

.portal-auth-linkline a {
    color: var(--portal-green);
    font-weight: 800;
    text-decoration: none;
}

.portal-auth-linkline a:hover {
    color: var(--portal-green-dark);
    text-decoration: underline;
}

.portal-mobile-intake {
    color: var(--portal-muted);
    display: none;
    font-size: 14px;
    margin: 20px 0 0;
    text-align: center;
}

.portal-mobile-intake a {
    color: var(--portal-green);
    font-weight: 800;
}

.portal-access-form input:focus {
    border-color: var(--portal-green);
    box-shadow: 0 0 0 3px rgba(23, 96, 58, 0.14);
}

.customer-portal-login-link {
    color: var(--muted);
    font-size: 14px;
    margin: 22px 0 0;
}

.customer-portal-login-link a {
    color: var(--primary);
    font-weight: 800;
}

.portal-assistant-card {
    margin-bottom: 1.25rem;
    padding: 1.15rem 1.2rem 1.35rem;
    border: 1px solid rgba(214, 222, 216, 0.95);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(23, 96, 58, 0.05), rgba(255,255,255,0.98) 14%, rgba(255,255,255,0.98)),
        linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,250,248,0.98));
    box-shadow: 0 18px 40px rgba(20, 55, 37, 0.08);
}

.portal-assistant-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .65rem;
}

.portal-assistant-title-group {
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.portal-assistant-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 18px;
    background: linear-gradient(135deg, #17603a, #2a7d54);
    color: #fff;
    box-shadow: 0 12px 24px rgba(23, 96, 58, 0.24);
    flex-shrink: 0;
}

.portal-assistant-icon svg {
    width: 1.35rem;
    height: 1.35rem;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-assistant-head h2 {
    margin: 0;
    font-size: 1.08rem;
    color: #17352d;
    letter-spacing: -.01em;
}

.portal-assistant-badge {
    display: inline-flex;
    align-items: center;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: #e9f3ec;
    color: #17603a;
    font-size: .78rem;
    font-weight: 700;
    border: 1px solid rgba(23, 96, 58, 0.12);
}

.portal-assistant-copy {
    margin: 0 0 .9rem;
    color: #5c6a62;
    max-width: none;
}

.portal-assistant-form label {
    display: block;
    margin-bottom: .45rem;
    font-weight: 700;
    color: #17352d;
}

.portal-assistant-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.portal-assistant-input-row {
    display: flex;
    gap: .65rem;
    align-items: stretch;
    padding: .6rem;
    border-radius: 22px;
    border: 1px solid rgba(214, 222, 216, 0.95);
    background: rgba(255,255,255,0.98);
    box-shadow: 0 12px 28px rgba(20, 55, 37, 0.06);
}

.portal-assistant-input-row input {
    flex: 1;
    min-width: 0;
    min-height: 3.2rem;
    padding: .85rem 1rem;
    border-radius: 16px;
    border: 0;
    background: transparent;
    font-size: .98rem;
    color: #17352d;
}

.portal-assistant-input-row input:focus {
    outline: none;
    box-shadow: none;
}

.portal-assistant-input-row input::placeholder {
    color: #6e7b74;
}

.portal-assistant-input-row button {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 3.1rem;
    min-width: 3.1rem;
    padding: 0;
    border-radius: 16px;
    white-space: nowrap;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #17603a, #2a7d54);
    color: #fff;
    border: 0;
    box-shadow: 0 12px 20px rgba(23, 96, 58, 0.22);
}

.portal-assistant-input-row button svg {
    width: 1.1rem;
    height: 1.1rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-assistant-suggestions {
    display: flex;
    gap: .45rem;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .1rem .1rem .2rem;
    margin-top: .15rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(23, 96, 58, 0.35) transparent;
}

.portal-assistant-suggestions form {
    margin: 0;
    flex: 0 0 auto;
}

.portal-assistant-suggestions button {
    width: auto;
    max-width: 168px;
    display: inline-flex;
    align-items: center;
    gap: .32rem;
    text-align: left;
    padding: .3rem .45rem;
    border-radius: 999px;
    border: 1px solid #dfe7e1;
    background: rgba(255,255,255,0.98);
    color: #17352d;
    cursor: pointer;
    font-size: .68rem;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.portal-assistant-suggestions button:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(189, 203, 194, 0.95);
    box-shadow: 0 10px 18px rgba(20, 55, 37, 0.06);
}

.portal-assistant-suggestions form.is-featured button {
    background: rgba(255,255,255,0.98);
    border-color: #dfe7e1;
}

.portal-assistant-suggestion-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.22rem;
    height: 1.22rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #17603a, #2a7d54);
    color: #fff;
    box-shadow: none;
    flex: 0 0 auto;
}

.portal-assistant-suggestion-icon svg {
    width: .5rem;
    height: .5rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.portal-assistant-suggestion-copy {
    display: block;
    min-width: 0;
}

.portal-assistant-suggestion-copy strong {
    color: #17352d;
    font-size: .68rem;
    line-height: 1.15;
    font-weight: 700;
}

.portal-assistant-suggestion-copy small {
    display: none;
}

.portal-assistant-suggestion-arrow {
    display: none;
}

.portal-assistant-response {
    margin-top: 1rem;
    padding: 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,247,0.96));
    border: 1px solid rgba(214, 222, 216, 0.95);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.75);
}

.portal-assistant-response strong {
    display: block;
    margin-bottom: .35rem;
    color: #17352d;
}

.portal-assistant-response p {
    margin: 0;
    color: #33443d;
    line-height: 1.6;
}

.portal-assistant-card-public {
    margin-top: 1.15rem;
    max-width: 34rem;
}

.portal-assistant-dashboard {
    margin-bottom: 1.4rem;
}

.portal-assistant-card.portal-assistant-page {
    padding: 0;
    border: 0;
    border-radius: 32px;
    background: linear-gradient(180deg, #eef5f1 0%, #f7faf8 100%);
    box-shadow: none;
    overflow: hidden;
}

.portal-assistant-page {
    max-width: none;
    width: 100%;
    min-height: calc(100vh - 170px);
    display: flex;
    flex-direction: column;
}

.portal-assistant-chat-shell {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: .9rem;
    padding: 0 1rem 1rem;
    border-radius: 0;
    background:
        radial-gradient(circle at top center, rgba(23, 96, 58, 0.07), transparent 30%),
        linear-gradient(180deg, #f7faf8 0%, #f2f7f4 100%);
}

.portal-assistant-chat-log {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 1rem;
    min-height: 0;
    padding: 1rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-y: auto;
    max-height: none;
}

.portal-assistant-chat-log.is-empty {
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    padding: 3rem 0 1rem;
}

.portal-assistant-intro {
    width: min(100%, 31rem);
    margin: auto auto 0;
    padding: 1rem 0;
}

.portal-assistant-intro-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5rem;
    height: 2rem;
    padding: 0 .95rem;
    margin-bottom: 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #17603a, #2a7d54);
    color: #fff;
    font-size: .74rem;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(23, 96, 58, 0.18);
}

.portal-assistant-intro h2 {
    margin: 0 0 .65rem;
    color: #17352d;
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}

.portal-assistant-intro p {
    margin: 0 auto;
    max-width: 28rem;
    color: #617069;
    font-size: clamp(1rem, 2vw, 1.08rem);
    line-height: 1.6;
}

.portal-chat-message {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    max-width: min(100%, 48rem);
}

.portal-chat-message-user {
    justify-content: flex-end;
    margin-left: auto;
    align-self: flex-end;
}

.portal-chat-message-assistant {
    margin-right: auto;
    align-self: flex-start;
}

.portal-chat-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 12px;
    flex: 0 0 auto;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    line-height: 1;
}

.portal-chat-message-assistant .portal-chat-avatar {
    background: linear-gradient(135deg, #17603a, #2a7d54);
    color: #fff;
    box-shadow: 0 10px 18px rgba(23, 96, 58, 0.2);
}

.portal-chat-message-user .portal-chat-avatar {
    background: #eef2ef;
    color: #284536;
    border: 1px solid rgba(193, 206, 198, 0.9);
}

.portal-chat-bubble {
    max-width: 100%;
    padding: 1rem 1.05rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(214, 222, 216, 0.98);
    box-shadow: 0 10px 22px rgba(17, 24, 22, 0.04);
}

.portal-chat-message-user .portal-chat-bubble {
    background: linear-gradient(135deg, #1f6a42, #2b7a50);
    border-color: rgba(23, 96, 58, 0.16);
    color: #fff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 6px;
}

.portal-chat-message-assistant .portal-chat-bubble {
    border-bottom-left-radius: 6px;
}

.portal-chat-bubble-answer {
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,250,247,0.96));
}

.portal-chat-bubble.is-thinking {
    min-width: 5rem;
}

.portal-chat-bubble strong {
    display: block;
    margin-bottom: .38rem;
    color: #17352d;
    font-size: .78rem;
    letter-spacing: .01em;
}

.portal-chat-message-user .portal-chat-bubble strong,
.portal-chat-message-user .portal-chat-bubble p {
    color: #fff;
}

.portal-chat-bubble p {
    margin: 0;
    color: #33443d;
    line-height: 1.58;
    font-size: .95rem;
    white-space: pre-wrap;
}

.portal-chat-thinking {
    display: inline-flex;
    gap: .28rem;
    align-items: center;
    min-height: 1.1rem;
}

.portal-chat-thinking span {
    width: .42rem;
    height: .42rem;
    border-radius: 50%;
    background: #8ea098;
    animation: portal-chat-thinking 1.1s infinite ease-in-out;
}

.portal-chat-thinking span:nth-child(2) {
    animation-delay: .15s;
}

.portal-chat-thinking span:nth-child(3) {
    animation-delay: .3s;
}

@keyframes portal-chat-thinking {
    0%, 80%, 100% {
        opacity: .35;
        transform: translateY(0);
    }
    40% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.portal-assistant-form {
    position: sticky;
    bottom: 0;
    margin-top: auto;
    padding: .25rem 0 0;
    background: linear-gradient(180deg, rgba(242,247,244,0), rgba(242,247,244,0.92) 25%, rgba(242,247,244,1));
}

.portal-assistant-form.is-loading .portal-assistant-input-row button {
    opacity: .75;
}

.portal-assistant-subtitle {
    display: inline-block;
    margin-top: .2rem;
    color: #6b7972;
    font-size: .86rem;
}

.portal-assistant-form.is-loading .portal-assistant-input-row {
    box-shadow: 0 12px 28px rgba(20, 55, 37, 0.1);
}

.portal-assistant-head {
    margin: 0;
    padding: 1.15rem 1.25rem .85rem;
}

.portal-assistant-suggestions-empty {
    display: flex;
    gap: .65rem;
    margin: 2rem auto 0;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: .15rem .15rem .35rem;
    justify-content: center;
    scrollbar-width: none;
}

.portal-assistant-suggestions-empty form {
    width: auto;
    flex: 0 0 auto;
}

.portal-assistant-suggestions-empty button {
    width: auto;
    min-width: 180px;
    max-width: 220px;
    justify-content: flex-start;
    gap: .6rem;
    padding: .78rem .9rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.96);
    border-color: rgba(214, 222, 216, 0.98);
    box-shadow: 0 10px 22px rgba(17, 24, 22, 0.04);
}

.portal-assistant-suggestions-empty .portal-assistant-suggestion-icon {
    width: 1.8rem;
    height: 1.8rem;
}

.portal-assistant-suggestions-empty .portal-assistant-suggestion-icon svg {
    width: .72rem;
    height: .72rem;
}

.portal-assistant-suggestions-empty .portal-assistant-suggestion-copy strong {
    font-size: .82rem;
    line-height: 1.28;
}

.portal-assistant-suggestions-empty::-webkit-scrollbar {
    display: none;
}

.portal-assistant-input-row {
    gap: .8rem;
    padding: .7rem;
    border-radius: 28px;
    border: 1px solid rgba(23, 96, 58, 0.08);
    background: linear-gradient(180deg, #1a3428, #1b2d24);
    box-shadow: 0 18px 38px rgba(18, 41, 30, 0.18);
}

.portal-assistant-input-row input {
    min-height: 3.35rem;
    padding: .95rem 1rem;
    color: #f2f7f4;
}

.portal-assistant-input-row::placeholder,
.portal-assistant-input-row input::placeholder {
    color: rgba(230, 240, 234, 0.62);
}

.portal-assistant-input-row button {
    min-height: 3.25rem;
    min-width: 3.25rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #2d8a59, #17603a);
    box-shadow: none;
}

.portal-assistant-page.is-empty-state .portal-assistant-form {
    padding-top: .5rem;
}

.portal-assistant-suggestions::-webkit-scrollbar {
    height: 8px;
}

.portal-assistant-suggestions::-webkit-scrollbar-thumb {
    background: rgba(23, 96, 58, 0.28);
    border-radius: 999px;
}

.portal-assistant-suggestions::-webkit-scrollbar-track {
    background: transparent;
}

@media (min-width: 760px) {
    .portal-assistant-suggestions button {
        max-width: 148px;
    }

    .portal-assistant-page.has-conversation .portal-assistant-chat-log {
        padding-inline: clamp(1rem, 5vw, 7rem);
    }

    .portal-assistant-page.has-conversation .portal-assistant-suggestions,
    .portal-assistant-page.has-conversation .portal-assistant-form {
        margin-inline: clamp(1rem, 5vw, 7rem);
    }
}

@media (max-width: 759px) {
    .portal-page-heading {
        display: none;
    }

    .portal-assistant-card {
        border-radius: 0;
        border-left: 0;
        border-right: 0;
        margin-left: -18px;
        margin-right: -18px;
        padding: 0;
    }

    .portal-assistant-chat-shell {
        padding: 0 .8rem .8rem;
    }

    .portal-assistant-head {
        padding: 1rem .95rem .35rem;
        border-bottom: 0;
    }
}

@media (max-width: 720px) {
    .portal-assistant-head,
    .portal-assistant-title-group {
        flex-direction: column;
        align-items: stretch;
    }

    .portal-chat-message,
    .portal-chat-message-user {
        justify-content: flex-start;
        max-width: 100%;
    }

    .portal-chat-message-user {
        margin-left: 0;
    }

    .portal-chat-bubble {
        max-width: 100%;
    }

    .portal-chat-avatar {
        width: 1.85rem;
        height: 1.85rem;
        border-radius: 12px;
    }

    .portal-assistant-chat-log {
        min-height: calc(100vh - 280px);
        max-height: none;
        padding: .85rem 0 0;
    }

    .portal-assistant-input-row {
        padding: .55rem;
    }

    .portal-assistant-input-row button {
        min-width: 3rem;
        width: 3rem;
    }

    .portal-assistant-icon {
        width: 2.5rem;
        height: 2.5rem;
    }

    .portal-assistant-badge {
        align-self: flex-start;
    }

    .portal-assistant-intro {
        width: 100%;
    }

    .portal-assistant-suggestions-empty {
        justify-content: flex-start;
        margin-top: 1.5rem;
        padding-bottom: .2rem;
    }
}

.customer-portal-main {
    margin: 0 auto;
    max-width: 1320px;
    padding: 42px clamp(18px, 5vw, 72px) 72px;
}

.customer-portal-signed-in .customer-portal-main {
    padding-top: 30px;
}

.portal-welcome {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 38px;
}

.portal-welcome h1 {
    font-size: clamp(30px, 5vw, 46px);
    margin-bottom: 8px;
}

.portal-welcome p,
.portal-section-heading p {
    color: var(--portal-muted);
    margin-bottom: 0;
}

.portal-report-count {
    align-items: baseline;
    display: flex;
    gap: 9px;
    white-space: nowrap;
}

.portal-report-count strong {
    color: var(--portal-green);
    font-size: 34px;
}

.portal-report-count span {
    color: var(--portal-muted);
    font-size: 14px;
    font-weight: 700;
}

.portal-report-search {
    margin-bottom: 24px;
    max-width: 760px;
}

.portal-report-search > label {
    color: var(--portal-ink);
    font-size: 13px;
    margin-bottom: 7px;
}

.portal-report-search > div {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    display: flex;
    min-width: 0;
    padding: 4px;
}

.portal-report-search > div:focus-within {
    border-color: var(--portal-green);
    box-shadow: 0 0 0 3px rgba(23, 96, 58, 0.12);
}

.portal-search-button svg {
    fill: none;
    flex: 0 0 auto;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 2;
    width: 19px;
}

.portal-report-search input {
    border: 0;
    box-shadow: none;
    flex: 1 1 auto;
    min-height: 46px;
    min-width: 0;
    outline: 0;
    padding: 9px 12px;
}

.portal-report-search input:focus {
    box-shadow: none;
}

.portal-report-search a {
    align-items: center;
    border-radius: 50%;
    color: var(--portal-muted);
    display: flex;
    flex: 0 0 auto;
    font-size: 22px;
    height: 40px;
    justify-content: center;
    text-decoration: none;
    width: 40px;
}

.portal-search-button {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 7px;
    justify-content: center;
    min-height: 46px;
    padding: 8px 16px;
}

.portal-reference-values,
.portal-reference-values span,
.portal-reference-values small {
    display: block;
}

.portal-sample-status {
    background: #eef1ef;
    border: 1px solid #d6ded8;
    border-radius: 999px;
    color: #4d5d53;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.3;
    padding: 6px 9px;
    white-space: nowrap;
}

.portal-sample-status.is-approved {
    background: #e8f1eb;
    border-color: #bcd6c5;
    color: var(--portal-green-dark);
}

.portal-sample-status.is-final-review {
    background: #e9eff8;
    border-color: #c6d4e8;
    color: #244f7d;
}

.portal-sample-status.is-under-review {
    align-items: center;
    background: #fff4d8;
    border-color: #ead7a5;
    color: #75520b;
    gap: 6px;
}

.portal-sample-status.is-under-review::before {
    background: #c88a12;
    border-radius: 50%;
    content: "";
    flex: 0 0 auto;
    height: 7px;
    width: 7px;
}

.portal-dashboard-samples {
    background: transparent;
    border: 0;
    overflow: visible;
}

.portal-sample-card-list {
    display: grid;
    gap: 18px;
    max-width: 800px;
}

.portal-sample-card {
    background: #ffffff;
    border: 1px solid #d2ddd5;
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(24, 50, 34, 0.08);
    padding: 21px;
}

.portal-sample-card-top {
    align-items: center;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1fr) auto 44px;
}

.portal-sample-card-id {
    min-width: 0;
}

.portal-sample-card-id span,
.portal-sample-card-id strong {
    display: block;
}

.portal-sample-card-id span {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.portal-sample-card-id strong {
    color: var(--portal-ink);
    font-size: 16px;
    overflow-wrap: anywhere;
}

.portal-sample-arrow {
    align-items: center;
    align-self: stretch;
    border-left: 1px solid #e2e8e3;
    color: var(--portal-green);
    display: flex;
    justify-content: flex-end;
    min-width: 44px;
    text-decoration: none;
}

.portal-sample-arrow svg {
    fill: none;
    height: 24px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 24px;
}

.portal-sample-arrow:hover {
    color: var(--portal-green-dark);
}

.portal-sample-name {
    font-size: 19px;
    line-height: 1.3;
    margin: 18px 0 14px;
    overflow-wrap: anywhere;
}

.portal-sample-meta {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.portal-sample-meta > div {
    min-width: 0;
}

.portal-sample-meta > div:last-child {
    text-align: right;
}

.portal-sample-meta span,
.portal-sample-meta strong {
    display: block;
}

.portal-sample-meta span {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.portal-sample-meta strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.portal-sample-company strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.portal-sample-date {
    align-items: center;
    display: flex;
    gap: 10px;
}

.portal-sample-date-copy {
    min-width: 0;
}

.portal-sample-date .portal-calendar-icon {
    align-items: center;
    background: #e8f1eb;
    border: 1px solid #c9dccf;
    border-radius: 6px;
    display: flex;
    flex: 0 0 auto;
    height: 36px;
    justify-content: center;
    margin: 0;
    width: 36px;
}

.portal-calendar-icon svg {
    fill: none;
    height: 19px;
    stroke: var(--portal-green-dark);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 19px;
}

.portal-review-progress {
    --portal-progress-color: var(--portal-green);
    border-top: 1px solid #e5ebe7;
    margin-top: 18px;
    padding-top: 15px;
}

.portal-review-progress > div:first-child {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.portal-review-progress > div:first-child span,
.portal-review-progress > div:first-child strong {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-review-progress > div:first-child span {
    color: var(--portal-muted);
}

.portal-review-progress > div:first-child strong {
    color: var(--portal-progress-color);
}

.portal-review-track {
    background: #e3e9e5;
    border-radius: 999px;
    height: 9px;
    overflow: hidden;
}

.portal-review-track span {
    background: var(--portal-progress-color);
    border-radius: inherit;
    display: block;
    height: 100%;
}

.portal-review-progress.is-stage-one {
    --portal-progress-color: #b42318;
}

.portal-review-progress.is-stage-two {
    --portal-progress-color: #c25a0a;
}

.portal-review-progress.is-early-stage {
    --portal-progress-color: #a87808;
}

.portal-review-progress.is-middle-stage {
    --portal-progress-color: #2368a2;
}

.portal-review-progress.is-final-stage {
    --portal-progress-color: #6b4c8a;
}

.portal-review-progress.is-complete {
    --portal-progress-color: #17603a;
}

.portal-card-report-action {
    border-top: 1px solid #e5ebe7;
    margin-top: 15px;
    padding-top: 13px;
}

.portal-card-report-action > a,
.portal-card-report-action > span {
    align-items: center;
    border: 1px solid #d6dfd9;
    border-radius: 6px;
    display: flex;
    font-size: 12px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    width: 100%;
}

.portal-card-report-action > a {
    background: #286540;
    border-color: #286540;
    color: #ffffff;
}

.portal-card-report-action > a:hover {
    background: #194e30;
    border-color: #194e30;
}

.portal-card-report-action .is-pickup {
    background: #e0f0e5;
    border-color: #a9ceb5;
    color: #175332;
}

.portal-card-report-action .is-disabled {
    background: rgba(239, 243, 240, 0.7);
    color: #758078;
}

.portal-card-report-action svg {
    fill: none;
    flex: 0 0 auto;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.portal-sample-detail {
    max-width: 800px;
}

.portal-sample-detail-head {
    align-items: center;
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.portal-sample-detail-head > a {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--portal-line);
    border-radius: 50%;
    color: var(--portal-green);
    display: flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    text-decoration: none;
    width: 44px;
}

.portal-sample-detail-head svg,
.portal-download-icon svg {
    fill: none;
    height: 22px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 22px;
}

.portal-sample-detail-head span,
.portal-sample-detail-head strong {
    display: block;
}

.portal-sample-detail-head span {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-sample-detail-head strong {
    font-size: 17px;
}

.portal-sample-detail-list {
    display: grid;
    gap: 18px;
}

.portal-sample-detail-card {
    background: #ffffff;
    border: 1px solid #d2ddd5;
    border-radius: 8px;
    box-shadow: 0 7px 20px rgba(24, 50, 34, 0.07);
    min-height: 126px;
    padding: 20px;
}

.portal-detail-status-card.is-under-review {
    background: #f3dda0;
    border-color: #c99f3d;
}

.portal-detail-status-card.is-final-review {
    background: #d2e0f1;
    border-color: #86a4ca;
}

.portal-detail-status-card.is-approved {
    background: #cfe5d6;
    border-color: #7eaf8d;
}

.portal-detail-status-card .portal-sample-status.is-under-review {
    background: #8a5b00;
    border-color: #8a5b00;
    color: #ffffff;
}

.portal-detail-status-card .portal-sample-status.is-under-review::before {
    background: #ffffff;
}

.portal-detail-status-card .portal-sample-status.is-final-review {
    background: #244f7d;
    border-color: #244f7d;
    color: #ffffff;
}

.portal-detail-status-card .portal-sample-status.is-approved {
    background: #17603a;
    border-color: #17603a;
    color: #ffffff;
}

.portal-detail-status-head {
    min-width: 0;
}

.portal-detail-status-head > div,
.portal-detail-sample-name,
.portal-detail-category {
    min-width: 0;
}

.portal-detail-status-head > strong,
.portal-detail-sample-name > strong,
.portal-detail-category > span,
.portal-detail-category > strong {
    display: block;
}

.portal-detail-category > span {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.portal-detail-status-head > strong {
    font-size: 16px;
    overflow-wrap: anywhere;
}

.portal-detail-sample-name {
    margin-top: 18px;
}

.portal-detail-sample-name > strong {
    font-size: 19px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.portal-detail-category {
    margin-top: 16px;
}

.portal-detail-category > strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.portal-detail-status-footer {
    align-items: center;
    display: flex;
    justify-content: flex-start;
    margin-top: 16px;
}

.portal-sample-information-card h2 {
    align-items: center;
    display: flex;
    font-size: 15px;
    gap: 9px;
    margin: 0 0 18px;
}

.portal-information-icon {
    align-items: center;
    background: #e8f1eb;
    border: 1px solid #c9dccf;
    border-radius: 6px;
    color: var(--portal-green-dark);
    display: flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.portal-information-icon svg {
    fill: none;
    height: 19px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 19px;
}

.portal-sample-information-list {
    display: grid;
    gap: 16px;
    margin: 0;
}

.portal-sample-information-list > div {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    min-width: 0;
}

.portal-sample-information-list dt {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.portal-sample-information-list dd {
    color: var(--portal-ink);
    font-size: 14px;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
    text-align: right;
}

.portal-current-status-card h2 {
    align-items: center;
    display: flex;
    font-size: 15px;
    gap: 9px;
    margin: 0 0 18px;
}

.portal-review-workflow-card h2 {
    align-items: center;
    display: flex;
    font-size: 15px;
    gap: 9px;
    margin: 0 0 20px;
}

.portal-workflow-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    color: var(--portal-green-dark);
    display: flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.portal-workflow-icon svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.portal-review-workflow-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.portal-review-workflow-list li {
    display: grid;
    gap: 12px;
    grid-template-columns: 26px minmax(0, 1fr);
    min-height: 58px;
    padding-bottom: 14px;
    position: relative;
}

.portal-review-workflow-list li:last-child {
    min-height: 26px;
    padding-bottom: 0;
}

.portal-review-workflow-list li:not(:last-child)::before {
    background: #d8e1db;
    content: "";
    height: calc(100% - 20px);
    left: 12px;
    position: absolute;
    top: 24px;
    width: 2px;
}

.portal-review-workflow-list li.is-complete:not(:last-child)::before {
    background: #5f9470;
}

.portal-workflow-marker {
    align-items: center;
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid #c8d2cc;
    border-radius: 50%;
    display: flex;
    height: 26px;
    justify-content: center;
    position: relative;
    width: 26px;
    z-index: 1;
}

.portal-review-workflow-list .is-complete .portal-workflow-marker {
    background: #39734d;
    border-color: #39734d;
    color: #ffffff;
}

.portal-review-workflow-list .is-current .portal-workflow-marker {
    background: #fff3c8;
    border-color: #d99a24;
    box-shadow: 0 0 0 4px rgba(217, 154, 36, 0.13);
}

.portal-workflow-marker svg {
    fill: none;
    height: 15px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.5;
    width: 15px;
}

.portal-review-workflow-list li > div {
    min-width: 0;
    padding-top: 2px;
}

.portal-review-workflow-list strong,
.portal-review-workflow-list time,
.portal-review-workflow-list li > div > span {
    display: block;
}

.portal-review-workflow-list strong {
    color: var(--portal-ink);
    font-size: 13px;
    line-height: 1.35;
}

.portal-review-workflow-list time,
.portal-review-workflow-list li > div > span {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.4;
    margin-top: 3px;
}

.portal-review-workflow-list .is-complete time {
    color: #39734d;
    font-weight: 700;
}

.portal-review-workflow-list .is-current > div > span {
    color: #9a6413;
}

.portal-current-status-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 6px;
    color: var(--portal-green-dark);
    display: flex;
    flex: 0 0 auto;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.portal-current-status-icon svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.portal-current-status-box {
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 16px;
}

.portal-current-status-box strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.portal-current-status-box p {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.portal-current-status-box.is-under-review {
    background: #f3dda0;
    border-color: #c99f3d;
    color: #493000;
}

.portal-current-status-box.is-final-review {
    background: #d2e0f1;
    border-color: #86a4ca;
    color: #183b61;
}

.portal-current-status-box.is-approved {
    background: #cfe5d6;
    border-color: #7eaf8d;
    color: #10492c;
}

.portal-report-download-container {
    align-items: center;
    background: #edf5ef;
    border: 1px solid #c7dacd;
    border-radius: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    min-height: 76px;
    padding: 13px 15px;
}

.portal-download-icon {
    align-items: center;
    background: #ffffff;
    border: 1px solid #c7dacd;
    border-radius: 6px;
    color: var(--portal-green-dark);
    display: flex;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.portal-report-download-container > div > span,
.portal-report-download-container > div > strong {
    display: block;
}

.portal-report-download-container > div > span {
    color: var(--portal-muted);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.portal-report-download-container > div > strong {
    font-size: 15px;
}

.portal-report-download-container > a {
    background: var(--portal-green);
    border-radius: 6px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    min-height: 40px;
    padding: 11px 13px;
    text-decoration: none;
}

.portal-download-pending {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 800;
}

.portal-pickup-ready {
    background: #17603a;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    padding: 7px 10px;
}

.portal-report-download-container.is-pending {
    background: #f3f5f3;
    border-color: #d9e0db;
}

.portal-report-pending {
    color: var(--portal-muted);
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    max-width: 160px;
}

.portal-reference-values small {
    color: var(--portal-muted);
    font-size: 12px;
    margin-top: 3px;
}

.portal-report-section {
    background: #ffffff;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    overflow: hidden;
}

.portal-section-heading {
    border-bottom: 1px solid var(--portal-line);
    padding: 22px 24px;
}

.portal-section-heading h2 {
    font-size: 20px;
    margin-bottom: 3px;
}

.portal-report-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.portal-report-table {
    border-collapse: collapse;
    min-width: 980px;
    width: 100%;
}

.portal-report-table th,
.portal-report-table td {
    border-bottom: 1px solid #e6ebe7;
    padding: 16px 18px;
    text-align: left;
    vertical-align: middle;
}

.portal-report-table th {
    background: #f7f9f7;
    color: var(--portal-muted);
    font-size: 12px;
    text-transform: uppercase;
}

.portal-report-table td {
    font-size: 14px;
}

.portal-report-table tbody tr:last-child td {
    border-bottom: 0;
}

.portal-report-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    white-space: nowrap;
}

.portal-report-actions a {
    border: 1px solid var(--portal-line);
    border-radius: 6px;
    color: var(--portal-green);
    font-size: 13px;
    font-weight: 800;
    padding: 8px 11px;
    text-decoration: none;
}

.portal-report-actions .portal-download-action {
    background: var(--portal-green);
    border-color: var(--portal-green);
    color: #ffffff;
}

.portal-empty-state {
    padding: 70px 24px;
    text-align: center;
}

.portal-empty-state h3 {
    font-size: 20px;
    margin: 0 0 7px;
}

.portal-empty-state p {
    color: var(--portal-muted);
    margin: 0;
}

.portal-page-heading {
    margin-bottom: 24px;
}

.portal-page-heading h1 {
    font-size: 36px;
    margin-bottom: 0;
}

.portal-account-panel {
    background: #ffffff;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    overflow: hidden;
}

.portal-profile-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0;
}

.portal-profile-details > div {
    border-bottom: 1px solid #e6ebe7;
    min-width: 0;
    padding: 20px 22px;
}

.portal-profile-details > div:nth-child(odd) {
    border-right: 1px solid #e6ebe7;
}

.portal-profile-details dt {
    color: var(--portal-muted);
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.portal-profile-details dd {
    font-size: 15px;
    margin: 0;
    overflow-wrap: anywhere;
}

.portal-profile-details .portal-profile-address {
    border-bottom: 0;
    border-right: 0;
    grid-column: 1 / -1;
}

.portal-profile-details.is-compact {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-profile-details.is-compact > div {
    border-bottom: 0;
    border-right: 1px solid #e6ebe7;
}

.portal-profile-details.is-compact > div:last-child {
    border-right: 0;
}

.portal-profile-feedback,
.portal-profile-editor {
    max-width: 860px;
}

.portal-profile-feedback {
    margin-bottom: 16px;
}

.portal-profile-editor-heading {
    align-items: end;
    border-bottom: 1px solid #e6ebe7;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 22px 24px;
}

.portal-profile-editor-heading h2 {
    font-size: 19px;
    margin: 3px 0 0;
}

.portal-profile-editor-heading p {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.5;
    margin: 0;
    max-width: 310px;
    text-align: right;
}

.portal-profile-form {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 24px;
}

.portal-profile-form label {
    color: var(--portal-muted);
    display: grid;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
}

.portal-profile-form input {
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid #cfdbd3;
    border-radius: 8px;
    color: var(--portal-ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.portal-profile-form input:focus {
    border-color: #4e8665;
    box-shadow: 0 0 0 3px rgba(78, 134, 101, 0.13);
    outline: 0;
}

.portal-profile-form-actions {
    border-top: 1px solid #e6ebe7;
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    padding-top: 18px;
}

.portal-profile-form-actions button {
    border: 1px solid var(--portal-green);
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 850;
    min-height: 42px;
    padding: 9px 18px;
}

@media (max-width: 680px) {
    .portal-profile-editor-heading {
        align-items: start;
        flex-direction: column;
        padding: 18px;
    }

    .portal-profile-editor-heading p {
        max-width: none;
        text-align: left;
    }

    .portal-profile-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .portal-profile-form-actions {
        grid-column: auto;
    }

    .portal-profile-form-actions button {
        width: 100%;
    }
}

.portal-settings-container-list {
    display: grid;
    gap: 18px;
    max-width: 800px;
}

.portal-settings-container {
    min-height: 120px;
    padding: 20px;
}

.portal-settings-feedback {
    margin-bottom: 16px;
    max-width: 800px;
}

.portal-settings-card-header {
    align-items: center;
    display: grid;
    gap: 12px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    margin-bottom: 20px;
}

.portal-settings-card-icon {
    align-items: center;
    background: rgba(229, 240, 233, 0.86);
    border: 1px solid rgba(192, 215, 199, 0.9);
    border-radius: 7px;
    color: var(--portal-green-dark);
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.portal-settings-card-icon svg,
.portal-session-device-icon svg,
.portal-remove-session svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    width: 20px;
}

.portal-settings-card-header h2 {
    font-size: 15px;
    line-height: 1.25;
    margin: 0 0 3px;
}

.portal-settings-card-header p {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.4;
    margin: 0;
}

.portal-security-form {
    display: grid;
    gap: 12px;
}

.portal-security-form label {
    color: var(--portal-muted);
    display: grid;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
}

.portal-security-form input {
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid #cdd8d1;
    border-radius: 6px;
    color: var(--portal-ink);
    font: inherit;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.portal-security-form input:focus {
    border-color: var(--portal-green);
    box-shadow: 0 0 0 3px rgba(39, 104, 65, 0.12);
    outline: 0;
}

.portal-security-form button {
    align-items: center;
    background: #286540;
    border: 1px solid #286540;
    border-radius: 6px;
    color: #ffffff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 42px;
    padding: 9px 14px;
}

.portal-security-form .portal-secondary-security-action {
    background: transparent;
    border-color: #bd655f;
    color: #8f2e28;
}

.portal-security-state {
    background: #edf1ee;
    border-radius: 999px;
    color: #68736b;
    font-size: 10px;
    font-weight: 900;
    padding: 5px 8px;
    text-transform: uppercase;
}

.portal-security-state.is-enabled {
    background: #dceee2;
    color: #17603a;
}

.portal-two-factor-setup-copy,
.portal-two-factor-login-copy span {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.5;
}

.portal-two-factor-setup-copy {
    margin-bottom: 12px;
}

.portal-two-factor-login-copy {
    display: grid;
    gap: 4px;
}

.portal-two-factor-login-copy strong {
    font-size: 15px;
}

.portal-resend-code-form {
    margin-top: 12px;
    text-align: center;
}

.portal-resend-code-form button {
    background: transparent;
    border: 0;
    color: var(--portal-green-dark);
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 6px;
}

.portal-session-list {
    border-top: 1px solid #e2e9e4;
}

.portal-session-item {
    align-items: center;
    border-bottom: 1px solid #e2e9e4;
    display: grid;
    gap: 11px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    padding: 14px 0;
}

.portal-session-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.portal-session-device-icon {
    align-items: center;
    background: rgba(237, 242, 239, 0.9);
    border-radius: 6px;
    color: var(--portal-green-dark);
    display: flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.portal-session-item > div {
    min-width: 0;
}

.portal-session-item strong,
.portal-session-item span,
.portal-session-item small {
    display: block;
}

.portal-session-item strong {
    font-size: 13px;
    overflow-wrap: anywhere;
}

.portal-session-item div span,
.portal-session-item small {
    color: var(--portal-muted);
    font-size: 10px;
    margin-top: 3px;
}

.portal-current-session-label {
    color: #287047;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
}

.portal-remove-session {
    align-items: center;
    background: #356348;
    border: 1px solid #356348;
    border-radius: 999px;
    color: #fff;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-size: 10px;
    font-weight: 850;
    gap: 6px;
    height: 32px;
    justify-content: center;
    padding: 0 11px;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
    white-space: nowrap;
}

.portal-remove-session-form {
    margin: 0;
}

.portal-remove-session svg {
    height: 15px;
    width: 15px;
}

.portal-remove-session:hover {
    background: #a7473f;
    border-color: #a7473f;
    color: #fff;
    transform: translateY(-1px);
}

.portal-remove-session:focus-visible {
    outline: 3px solid rgba(53, 99, 72, 0.2);
    outline-offset: 2px;
}

.portal-notification-list a {
    align-items: center;
    border-bottom: 1px solid #e6ebe7;
    color: var(--portal-ink);
    display: grid;
    gap: 14px;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    padding: 18px 20px;
    text-decoration: none;
}

.portal-notification-list a:last-child {
    border-bottom: 0;
}

.portal-notification-list a:hover {
    background: #f7f9f7;
}

.portal-notification-mark {
    background: var(--portal-green);
    border-radius: 50%;
    height: 8px;
    width: 8px;
}

.portal-notification-list strong,
.portal-notification-list small {
    display: block;
}

.portal-notification-list small,
.portal-notification-list time {
    color: var(--portal-muted);
    font-size: 13px;
}

.portal-notification-layout {
    display: grid;
    gap: 18px;
    max-width: 860px;
}

.portal-notification-hero {
    align-items: center;
    background: linear-gradient(135deg, #244f38 0%, #397153 58%, #6b947a 100%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 16px;
    box-shadow: 0 18px 42px rgba(31, 75, 51, 0.18);
    color: #fff;
    display: grid;
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 230px;
    min-height: 210px;
    overflow: hidden;
    padding: 30px 34px;
    position: relative;
}

.portal-notification-hero::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 68%);
    content: '';
    height: 260px;
    position: absolute;
    right: -70px;
    top: -100px;
    width: 260px;
}

.portal-notification-hero-copy {
    position: relative;
    z-index: 1;
}

.portal-notification-hero .accounts-eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.portal-notification-hero h1 {
    color: #fff;
    font-size: clamp(32px, 5vw, 46px);
    letter-spacing: -0.04em;
    margin: 5px 0 9px;
}

.portal-notification-hero p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
    line-height: 1.65;
    margin: 0;
    max-width: 470px;
}

.portal-notification-infographic {
    height: 154px;
    justify-self: center;
    position: relative;
    width: 190px;
    z-index: 1;
}

.portal-notification-infographic svg,
.portal-notification-channel-icon svg,
.portal-notification-empty svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.portal-notification-bell {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 8px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    box-shadow: 0 16px 30px rgba(17, 53, 34, 0.24);
    color: #2f6849;
    display: flex;
    height: 84px;
    justify-content: center;
    left: 53px;
    position: absolute;
    top: 34px;
    width: 84px;
}

.portal-notification-bell svg {
    height: 38px;
    width: 38px;
}

.portal-notification-orbit {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(21, 57, 37, 0.18);
    color: #397153;
    display: flex;
    height: 40px;
    justify-content: center;
    position: absolute;
    width: 40px;
    z-index: 2;
}

.portal-notification-orbit svg {
    height: 21px;
    width: 21px;
}

.orbit-email {
    left: 6px;
    top: 17px;
    transform: rotate(-7deg);
}

.orbit-sms {
    bottom: 9px;
    right: 5px;
    transform: rotate(7deg);
}

.portal-notification-pulse {
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 50%;
    left: 28px;
    position: absolute;
    top: 9px;
}

.portal-notification-pulse.pulse-one {
    height: 136px;
    width: 136px;
}

.portal-notification-pulse.pulse-two {
    height: 174px;
    left: 9px;
    top: -10px;
    width: 174px;
}

.portal-notification-feedback {
    margin: 0;
}

.portal-notification-card-heading,
.portal-notification-inbox-heading {
    align-items: end;
    border-bottom: 1px solid #e3eae5;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 22px 24px;
}

.portal-notification-card-heading h2,
.portal-notification-inbox-heading h2 {
    font-size: 19px;
    margin: 3px 0 0;
}

.portal-notification-card-heading > p {
    color: var(--portal-muted);
    font-size: 11px;
    line-height: 1.45;
    margin: 0;
    max-width: 290px;
    text-align: right;
}

.portal-notification-preference-row {
    align-items: center;
    border-bottom: 1px solid #e6ebe7;
    display: grid;
    gap: 14px;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    margin: 0;
    padding: 18px 24px;
}

.portal-notification-preference-row:last-child {
    border-bottom: 0;
}

.portal-notification-channel-icon {
    align-items: center;
    background: #edf5f0;
    border: 1px solid #dbe9df;
    border-radius: 11px;
    color: #356348;
    display: flex;
    height: 42px;
    justify-content: center;
    width: 42px;
}

.portal-notification-channel-icon.is-sms {
    background: #f0f2f8;
    border-color: #e0e4ef;
    color: #53627f;
}

.portal-notification-channel-icon svg {
    height: 21px;
    width: 21px;
}

.portal-notification-channel-copy strong,
.portal-notification-channel-copy small {
    display: block;
}

.portal-notification-channel-copy strong {
    color: var(--portal-ink);
    font-size: 14px;
}

.portal-notification-channel-copy small {
    color: var(--portal-muted);
    font-size: 11px;
    margin-top: 3px;
}

.portal-toggle {
    align-items: center;
    cursor: pointer;
    display: grid;
    gap: 8px;
    grid-template-columns: 44px 22px;
}

.portal-toggle input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.portal-toggle > span {
    background: #cbd3ce;
    border-radius: 999px;
    display: block;
    height: 24px;
    position: relative;
    transition: background-color 160ms ease;
    width: 44px;
}

.portal-toggle > span::after {
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 6px rgba(26, 55, 37, 0.25);
    content: '';
    height: 18px;
    left: 3px;
    position: absolute;
    top: 3px;
    transition: transform 160ms ease;
    width: 18px;
}

.portal-toggle input:checked + span {
    background: #397153;
}

.portal-toggle input:checked + span::after {
    transform: translateX(20px);
}

.portal-toggle input:focus-visible + span {
    outline: 3px solid rgba(57, 113, 83, 0.2);
    outline-offset: 2px;
}

.portal-toggle em {
    color: var(--portal-muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 850;
    text-transform: uppercase;
}

.portal-notification-save,
.portal-notification-clear {
    background: transparent;
    border: 0;
    color: #356348;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 850;
    padding: 7px 4px;
}

.portal-notification-clear,
.portal-notification-clear:hover {
    color: #ffffff;
}

.portal-notification-empty {
    align-items: center;
    display: flex;
    gap: 14px;
    padding: 28px 24px;
}

.portal-notification-empty > span {
    align-items: center;
    background: #eef4f0;
    border-radius: 50%;
    color: #5c7867;
    display: flex;
    flex: 0 0 auto;
    height: 44px;
    justify-content: center;
    width: 44px;
}

.portal-notification-empty svg {
    height: 21px;
    width: 21px;
}

.portal-notification-empty h3 {
    font-size: 14px;
    margin: 0 0 3px;
}

.portal-notification-empty p {
    color: var(--portal-muted);
    font-size: 11px;
    margin: 0;
}

@media (max-width: 680px) {
    .portal-notification-layout {
        gap: 14px;
    }

    .portal-notification-hero {
        grid-template-columns: minmax(0, 1fr) 112px;
        min-height: 178px;
        padding: 24px 20px;
    }

    .portal-notification-hero h1 {
        font-size: 32px;
    }

    .portal-notification-hero p {
        font-size: 12px;
    }

    .portal-notification-infographic {
        height: 110px;
        transform: scale(0.72);
        width: 150px;
    }

    .portal-notification-card-heading {
        align-items: start;
        flex-direction: column;
        padding: 18px;
    }

    .portal-notification-card-heading > p {
        max-width: none;
        text-align: left;
    }

    .portal-notification-inbox-heading {
        padding: 18px;
    }

    .portal-notification-preference-row {
        gap: 11px;
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding: 16px 18px;
    }

    .portal-notification-channel-icon {
        height: 38px;
        width: 38px;
    }

    .portal-toggle {
        gap: 5px;
        grid-template-columns: 40px;
        justify-items: center;
    }

    .portal-toggle > span {
        height: 22px;
        width: 40px;
    }

    .portal-toggle > span::after {
        height: 16px;
        width: 16px;
    }

    .portal-toggle input:checked + span::after {
        transform: translateX(18px);
    }

    .portal-notification-empty {
        padding: 22px 18px;
    }
}

@media (max-width: 420px) {
    .portal-notification-hero {
        grid-template-columns: 1fr;
    }

    .portal-notification-infographic {
        display: none;
    }
}

@media (max-width: 800px) {
    .customer-portal-auth {
        align-items: stretch;
        gap: 26px;
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 32px 18px 56px;
    }

    .portal-auth-copy h1 {
        font-size: 36px;
        max-width: 620px;
    }

    .portal-auth-copy p {
        font-size: 16px;
    }

    .portal-welcome {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    .customer-portal-signed-in {
        padding-bottom: 76px;
    }

    .customer-portal-nav {
        background: #ffffff;
        border-top: 1px solid var(--portal-line);
        bottom: 0;
        display: grid;
        gap: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        left: 0;
        padding: 5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        position: fixed;
        right: 0;
        z-index: 50;
    }

    .portal-header-actions {
        margin-left: auto;
    }

    .portal-header-greeting {
        border-left: 0;
        padding-left: 0;
    }

    .portal-header-greeting strong {
        max-width: 210px;
    }

    .customer-portal-nav a {
        flex-direction: column;
        font-size: 10px;
        gap: 2px;
        justify-content: center;
        min-height: 58px;
        padding: 5px 2px;
    }

    .customer-portal-nav svg {
        height: 21px;
        width: 21px;
    }

    .portal-notification-link > strong {
        right: calc(50% - 20px);
        top: 1px;
    }

    .customer-portal-main {
        padding: 18px 14px 52px;
    }

    .portal-report-search {
        margin-bottom: 16px;
        max-width: none;
    }

    .portal-report-search input {
        font-size: 16px;
        padding-left: 10px;
        padding-right: 4px;
    }

    .portal-search-button {
        height: 46px;
        min-height: 46px;
        padding: 0;
        width: 46px;
    }

    .portal-search-button span {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .portal-welcome {
        gap: 14px;
        margin-bottom: 24px;
    }

    .portal-welcome h1 {
        font-size: 30px;
        overflow-wrap: anywhere;
    }

    .portal-report-count strong {
        font-size: 28px;
    }

    .portal-report-count {
        align-items: center;
        background: #e8f1eb;
        border: 1px solid #c9dccf;
        border-radius: 6px;
        display: inline-flex;
        gap: 8px;
        padding: 7px 11px;
    }

    .portal-report-section {
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .portal-section-heading {
        border: 0;
        padding: 0 2px 14px;
    }

    .portal-report-table-wrap {
        overflow: visible;
    }

    .portal-report-table,
    .portal-report-table tbody,
    .portal-report-table tr,
    .portal-report-table td {
        display: block;
        min-width: 0;
        width: 100%;
    }

    .portal-report-table thead {
        border: 0;
        clip: rect(0 0 0 0);
        height: 1px;
        margin: -1px;
        overflow: hidden;
        padding: 0;
        position: absolute;
        width: 1px;
    }

    .portal-report-table tbody {
        display: grid;
        gap: 18px;
    }

    .portal-report-table tr {
        background: #ffffff;
        border: 1px solid #d2ddd5;
        border-radius: 8px;
        box-shadow: 0 7px 20px rgba(24, 50, 34, 0.08);
        overflow: hidden;
        padding: 0 16px 16px;
    }

    .portal-report-table td {
        border-bottom: 1px solid #e6ebe7;
        display: block;
        overflow-wrap: anywhere;
        padding: 11px 0;
        text-align: left;
    }

    .portal-report-table td::before {
        color: var(--portal-muted);
        content: attr(data-label);
        display: block;
        font-size: 11px;
        font-weight: 800;
        margin-bottom: 3px;
        text-align: left;
        text-transform: uppercase;
    }

    .portal-report-table td:first-child {
        background: #f4f8f5;
        border-bottom-color: var(--portal-line);
        margin: 0 -16px;
        padding: 13px 16px;
    }

    .portal-report-table td:first-child strong {
        color: var(--portal-green-dark);
        font-size: 16px;
    }

    .portal-report-table td:last-child {
        border-bottom: 0;
        display: block;
        padding: 16px 0 0;
    }

    .portal-report-table td:last-child::before {
        display: none;
    }

    .portal-report-actions {
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .portal-report-actions a {
        align-items: center;
        display: flex;
        justify-content: center;
        min-height: 48px;
        padding: 10px 12px;
    }

    .portal-empty-state {
        background: #ffffff;
        border: 1px solid var(--portal-line);
        border-radius: 8px;
        padding: 52px 20px;
    }

    .portal-page-heading {
        margin-bottom: 18px;
    }

    .portal-page-heading h1 {
        font-size: 28px;
    }

    .portal-profile-details {
        grid-template-columns: 1fr;
    }

    .portal-profile-details.is-compact {
        grid-template-columns: 1fr;
    }

    .portal-profile-details > div,
    .portal-profile-details > div:nth-child(odd) {
        border-right: 0;
        padding: 16px;
    }

    .portal-profile-details.is-compact > div {
        border-bottom: 1px solid #e6ebe7;
        border-right: 0;
    }

    .portal-profile-details.is-compact > div:last-child {
        border-bottom: 0;
    }

    .portal-profile-details .portal-profile-address {
        grid-column: auto;
    }

    .portal-settings-container-list {
        gap: 14px;
    }

    .portal-settings-container {
        min-height: 108px;
        padding: 17px;
    }

    .portal-settings-card-header {
        align-items: start;
        grid-template-columns: 38px minmax(0, 1fr) auto;
    }

    .portal-settings-card-icon {
        height: 38px;
        width: 38px;
    }

    .portal-notification-list a {
        align-items: start;
        grid-template-columns: 8px minmax(0, 1fr);
        padding: 16px;
    }

    .portal-notification-list time {
        grid-column: 2;
    }
}

@media (max-width: 1200px) {
    .customer-portal-signed-in {
        padding-bottom: 76px;
    }

    .customer-portal-signed-in .customer-portal-nav {
        background: rgba(255, 255, 255, 0.82);
        border-top: 1px solid rgba(255, 255, 255, 0.92);
        bottom: 0;
        box-shadow: 0 -8px 26px rgba(26, 55, 37, 0.09);
        display: grid;
        gap: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        left: 0;
        padding: 5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        position: fixed;
        right: 0;
        top: auto;
        width: auto;
        z-index: 50;
    }

    .customer-portal-signed-in .customer-portal-nav a {
        flex-direction: column;
        font-size: 10px;
        gap: 2px;
        justify-content: center;
        min-height: 58px;
        padding: 5px 2px;
    }

    .customer-portal-signed-in .customer-portal-nav svg {
        height: 21px;
        width: 21px;
    }

    .customer-portal-signed-in .portal-notification-link > strong {
        right: calc(50% - 20px);
        top: 1px;
    }
}

@media (max-width: 900px) {
    .customer-portal-signed-in {
        padding-bottom: 76px;
    }

    .customer-portal-nav {
        background: rgba(255, 255, 255, 0.78);
        border-top: 1px solid rgba(255, 255, 255, 0.9);
        bottom: 0;
        box-shadow: 0 -8px 26px rgba(26, 55, 37, 0.09);
        display: grid;
        gap: 0;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        left: 0;
        padding: 5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        position: fixed;
        right: 0;
        z-index: 50;
    }

    .portal-header-actions {
        margin-left: auto;
    }

    .portal-header-greeting {
        border-left: 0;
        padding-left: 0;
    }

    .customer-portal-nav a {
        flex-direction: column;
        font-size: 10px;
        gap: 2px;
        justify-content: center;
        min-height: 58px;
        padding: 5px 2px;
    }

    .customer-portal-nav svg {
        height: 21px;
        width: 21px;
    }

    .portal-notification-link > strong {
        right: calc(50% - 20px);
        top: 1px;
    }
}

@media (max-width: 520px) {
    .customer-portal-body {
        max-width: 100%;
        width: 100%;
    }

    .customer-portal-header {
        gap: 10px;
        min-height: 72px;
        padding: 10px 14px;
    }

    .customer-portal-brand strong {
        font-size: 12px;
        overflow-wrap: anywhere;
    }

    .customer-portal-brand small {
        font-size: 11px;
    }

    .customer-portal-brand img {
        height: 40px;
        width: 48px;
    }

    .customer-portal-header .portal-signout {
        white-space: nowrap;
    }

    .portal-intake-link,
    .portal-signout {
        flex: 0 0 auto;
        font-size: 12px;
        min-height: 40px;
        padding: 8px 10px;
    }

    .portal-intake-link {
        display: none;
    }

    .portal-mobile-intake {
        display: block;
    }

    .portal-auth-copy h1 {
        font-size: 30px;
        line-height: 1.08;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .customer-portal-auth {
        display: block;
        margin: 0;
        max-width: 100%;
        padding: 28px 16px 48px;
        width: 100%;
    }

    .portal-auth-copy {
        max-width: 100%;
        width: 100%;
    }

    .portal-auth-copy p {
        line-height: 1.45;
        margin-bottom: 0;
    }

    .portal-auth-panel {
        box-shadow: 0 10px 28px rgba(24, 50, 34, 0.08);
        margin-top: 24px;
        max-width: 100%;
        padding: 16px;
        width: 100%;
    }

    .portal-auth-tabs a {
        font-size: 13px;
        min-width: 0;
        overflow-wrap: anywhere;
        padding-left: 4px;
        padding-right: 4px;
    }

    .portal-access-form {
        gap: 16px;
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .portal-access-form label,
    .portal-access-form input {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .portal-access-form button {
        justify-self: stretch;
        width: 100%;
    }

    .customer-portal-main {
        padding-top: 24px;
    }

    .portal-welcome h1 {
        font-size: 27px;
        line-height: 1.12;
    }

    .portal-section-heading h2 {
        font-size: 18px;
    }

    .portal-section-heading p {
        font-size: 14px;
    }

    .portal-report-actions {
        grid-template-columns: 1fr;
    }

    .portal-sample-card {
        padding: 17px;
    }

    .portal-sample-card-top {
        gap: 10px;
        grid-template-columns: minmax(0, 1fr) auto 38px;
    }

    .portal-sample-card-id strong {
        font-size: 15px;
    }

    .portal-sample-status {
        font-size: 11px;
        padding: 5px 8px;
    }

    .portal-sample-arrow {
        min-width: 38px;
    }

    .portal-sample-name {
        font-size: 17px;
        margin-bottom: 13px;
        margin-top: 15px;
    }

    .portal-sample-meta {
        gap: 14px;
    }

    .portal-sample-meta strong {
        font-size: 12px;
    }

    .portal-sample-detail-card {
        min-height: 112px;
        padding: 17px;
    }

    .portal-report-download-container {
        gap: 10px;
        grid-template-columns: 42px minmax(0, 1fr) auto;
        padding: 11px;
    }

    .portal-download-icon {
        height: 40px;
        width: 40px;
    }

    .portal-report-download-container > a {
        padding-left: 10px;
        padding-right: 10px;
    }
}

@media (max-width: 360px) {
    .customer-portal-brand strong {
        max-width: 104px;
    }

    .portal-intake-link {
        max-width: 94px;
        text-align: center;
    }

    .portal-auth-copy h1 {
        font-size: 27px;
    }
}

/* Customer sample portal liquid-glass surface layer */
.customer-portal-body {
    --portal-glass: rgba(255, 255, 255, 0.68);
    --portal-glass-strong: rgba(255, 255, 255, 0.82);
    --portal-glass-border: rgba(255, 255, 255, 0.9);
    --portal-glass-shadow: 0 10px 30px rgba(26, 55, 37, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.78);
    background-color: #e9efeb;
}

.customer-portal-header,
.customer-portal-nav,
.portal-auth-panel,
.portal-report-search > div,
.portal-sample-card,
.portal-sample-detail-head > a,
.portal-sample-detail-card,
.portal-account-panel,
.portal-report-section,
.portal-empty-state,
.portal-report-download-container,
.portal-download-icon,
.portal-information-icon,
.portal-workflow-icon,
.portal-settings-card-icon,
.portal-session-device-icon,
.portal-calendar-icon {
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
}

.customer-portal-header {
    background: rgba(255, 255, 255, 0.74);
    border-bottom-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 24px rgba(28, 56, 39, 0.07);
}

.portal-auth-panel,
.portal-sample-card,
.portal-sample-detail-card,
.portal-account-panel,
.portal-empty-state {
    background: var(--portal-glass);
    border-color: var(--portal-glass-border);
    box-shadow: var(--portal-glass-shadow);
}

.portal-report-search > div {
    background: var(--portal-glass-strong);
    border-color: var(--portal-glass-border);
    box-shadow: 0 7px 22px rgba(26, 55, 37, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.portal-report-search input {
    background: transparent;
}

.portal-sample-card,
.portal-sample-detail-card,
.portal-account-panel,
.portal-report-download-container,
.portal-auth-panel {
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.portal-sample-card:hover,
.portal-sample-detail-card:hover {
    border-color: rgba(255, 255, 255, 1);
    box-shadow: 0 14px 34px rgba(26, 55, 37, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.92);
    transform: translateY(-1px);
}

.portal-detail-status-card.is-under-review {
    background: rgba(243, 221, 160, 0.76);
    border-color: rgba(255, 245, 211, 0.88);
}

.portal-detail-status-card.is-final-review {
    background: rgba(210, 224, 241, 0.78);
    border-color: rgba(240, 246, 255, 0.9);
}

.portal-detail-status-card.is-approved {
    background: rgba(207, 229, 214, 0.8);
    border-color: rgba(240, 255, 245, 0.9);
}

.portal-report-download-container {
    background: rgba(231, 243, 235, 0.74);
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: 0 9px 26px rgba(26, 55, 37, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.portal-report-download-container.is-pending {
    background: rgba(244, 247, 245, 0.7);
    border-color: rgba(255, 255, 255, 0.85);
}

.portal-download-icon,
.portal-information-icon,
.portal-workflow-icon,
.portal-settings-card-icon,
.portal-session-device-icon,
.portal-calendar-icon {
    background: rgba(255, 255, 255, 0.66);
    border-color: rgba(255, 255, 255, 0.88);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

@media (max-width: 680px) {
    .customer-portal-nav {
        background: rgba(255, 255, 255, 0.78);
        border-top-color: rgba(255, 255, 255, 0.9);
        box-shadow: 0 -8px 26px rgba(26, 55, 37, 0.09);
    }

    .portal-dashboard-samples,
    .portal-report-section {
        background: transparent;
        border-color: transparent;
        box-shadow: none;
    }
}

/* Signed-in portal navigation is always a bottom app bar. */
.customer-portal-header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.customer-portal-signed-in {
    padding-bottom: 76px;
}

.customer-portal-signed-in .portal-header-actions {
    margin-left: auto;
}

.customer-portal-signed-in .customer-portal-nav {
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    background: rgba(255, 255, 255, 0.84);
    border-top: 1px solid rgba(255, 255, 255, 0.94);
    bottom: 0 !important;
    box-shadow: 0 -8px 26px rgba(26, 55, 37, 0.10);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    left: 0 !important;
    margin: 0;
    max-width: none;
    padding: 5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    position: fixed !important;
    right: 0 !important;
    top: auto !important;
    transform: none !important;
    width: 100% !important;
    z-index: 100;
}

.customer-portal-signed-in .customer-portal-nav a {
    flex-direction: column;
    font-size: 10px;
    gap: 2px;
    justify-content: center;
    min-height: 58px;
    padding: 5px 2px;
}

.customer-portal-signed-in .customer-portal-nav svg {
    height: 21px;
    width: 21px;
}

.customer-portal-signed-in .portal-notification-link > strong {
    right: calc(50% - 20px);
    top: 1px;
}

.customer-portal-body .portal-report-download-container.is-ready {
    background: rgba(190, 222, 200, 0.9);
    border-color: rgba(111, 164, 127, 0.8);
    box-shadow: 0 10px 28px rgba(23, 96, 58, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.72);
    color: #103f28;
}

.customer-portal-body .portal-report-download-container.is-ready .portal-download-icon {
    background: rgba(255, 255, 255, 0.68);
    border-color: rgba(111, 164, 127, 0.72);
    color: #10492c;
}

/* Accounts and signatory workspace */
.accounts-body {
    background:
        radial-gradient(circle at 8% 0%, rgba(141, 122, 181, 0.13), transparent 28rem),
        linear-gradient(180deg, #f8f7fb 0%, #f3f1f8 100%);
    min-height: 100vh;
}

.accounts-body .accounts-page {
    max-width: 1440px;
    padding: clamp(18px, 3vw, 38px);
}

.accounts-body .accounts-header {
    align-items: center;
    background:
        radial-gradient(circle at 78% 10%, rgba(255, 255, 255, 0.13), transparent 18rem),
        linear-gradient(128deg, #171022 0%, #2a2040 58%, #493768 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 22px;
    box-shadow: 0 22px 55px rgba(31, 22, 48, 0.22);
    display: flex;
    justify-content: space-between;
    min-height: 196px;
    overflow: hidden;
    padding: clamp(24px, 4vw, 40px);
    position: relative;
}

.accounts-body .accounts-header::after {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    content: "";
    height: 260px;
    position: absolute;
    right: -80px;
    top: -130px;
    width: 260px;
}

.accounts-header-copy {
    max-width: 760px;
    position: relative;
    z-index: 1;
}

.accounts-body .accounts-brand {
    gap: 18px;
}

.accounts-body .accounts-logo {
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
    height: 82px;
    padding: 7px;
    width: 96px;
}

.accounts-body .accounts-brand span {
    color: rgba(255, 255, 255, 0.68);
    letter-spacing: .14em;
}

.accounts-body .accounts-brand h1 {
    font-size: clamp(28px, 4vw, 42px);
    letter-spacing: -.025em;
    margin-top: 6px;
}

.accounts-body .accounts-header p {
    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    line-height: 1.65;
    margin: 18px 0 0 116px;
    max-width: 630px;
}

.accounts-lock-page {
    align-items: center;
    background:
        radial-gradient(circle at 50% 28%, rgba(73, 55, 104, 0.12), transparent 22rem),
        radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.9), transparent 18rem);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: clamp(18px, 5vw, 34px);
}

.accounts-lock-card {
    align-items: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
        radial-gradient(circle at 50% 0%, rgba(73, 55, 104, 0.09), transparent 18rem);
    border: 1px solid rgba(73, 55, 104, 0.14);
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(31, 22, 48, 0.14);
    display: flex;
    flex-direction: column;
    max-width: 430px;
    padding: clamp(26px, 4vw, 36px);
    text-align: center;
    width: min(100%, 430px);
}

.accounts-lock-mark {
    align-items: center;
    background: #ffffff;
    border: 1px solid rgba(73, 55, 104, 0.10);
    border-radius: 22px;
    box-shadow: 0 18px 36px rgba(31, 22, 48, 0.10);
    display: flex;
    height: 92px;
    justify-content: center;
    margin-bottom: 18px;
    width: 92px;
}

.accounts-lock-mark img {
    display: block;
    height: 56px;
    object-fit: contain;
    width: 70px;
}

.accounts-lock-kicker {
    color: #786d86;
    display: block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .18em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.accounts-lock-card h1 {
    color: var(--primary-dark);
    font-size: clamp(28px, 5vw, 38px);
    letter-spacing: -0.035em;
    line-height: 1;
    margin: 0 0 24px;
}

.accounts-lock-card > p {
    color: #5f536d;
    font-size: 15px;
    line-height: 1.55;
    margin: 16px 0 22px;
    max-width: 340px;
}

.accounts-lock-form {
    display: grid;
    gap: 14px;
    width: 100%;
}

.accounts-lock-form label {
    color: #4f425d;
    font-size: 13px;
    font-weight: 900;
    text-align: left;
}

.accounts-lock-form input {
    background: #fbfafc;
    border: 1px solid #dacde7;
    border-radius: 16px;
    color: var(--primary-dark);
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .16em;
    min-height: 54px;
    padding: 0 18px;
    text-align: center;
}

.accounts-lock-form input::placeholder {
    color: #9b90a7;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .08em;
}

.accounts-lock-form button,
.accounts-lockout-form button {
    background: linear-gradient(135deg, var(--primary-dark), #493768);
    border: 0;
    border-radius: 16px;
    box-shadow: 0 14px 30px rgba(42, 32, 64, 0.24);
    color: #ffffff;
    cursor: pointer;
    font-weight: 800;
    min-height: 54px;
    padding: 13px 18px;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.accounts-lock-form button:hover {
    box-shadow: 0 18px 36px rgba(42, 32, 64, 0.28);
    transform: translateY(-1px);
}

.accounts-lockout-form {
    margin-top: 18px;
}

.accounts-lockout-form button {
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.24);
    box-shadow: none;
}

.accounts-lockout-form button:hover {
    background: rgba(255, 255, 255, 0.22);
}

.accounts-security-form {
    max-width: 820px;
}

.accounts-header-art {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    display: flex;
    flex: 0 0 270px;
    flex-direction: column;
    margin-left: 32px;
    padding: 20px;
    position: relative;
    text-align: center;
    z-index: 1;
}

.accounts-shield {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    height: 62px;
    justify-content: center;
    margin-bottom: 12px;
    width: 62px;
}

.accounts-shield svg,
.accounts-summary-icon svg,
.accounts-subtabs svg,
.signatory-intro-icon svg,
.signature-empty-mark svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.accounts-shield svg {
    color: #ffffff;
    height: 32px;
    width: 32px;
}

.accounts-header-art > span {
    color: rgba(255, 255, 255, 0.64);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.accounts-header-art > strong {
    color: #ffffff;
    font-size: 15px;
    margin-top: 4px;
}

.accounts-body .accounts-subtabs {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid #e5dfec;
    border-radius: 15px;
    box-shadow: 0 10px 26px rgba(42, 32, 64, 0.08);
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    padding: 7px;
    width: 100%;
}

.accounts-body .accounts-subtabs a {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 10px;
    justify-content: center;
    min-height: 48px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.accounts-body .accounts-subtabs a:hover {
    background: #f1edf6;
    color: var(--primary-dark);
    transform: translateY(-1px);
}

.accounts-body .accounts-subtabs a.is-active,
.accounts-body .accounts-subtabs a.is-active:hover {
    background: linear-gradient(135deg, var(--primary-dark), #493768);
    box-shadow: 0 8px 18px rgba(42, 32, 64, 0.20);
    color: #ffffff;
}

.accounts-body .accounts-subtabs svg {
    height: 21px;
    width: 21px;
}

.accounts-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 18px;
}

.accounts-summary-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e7e1ed;
    border-radius: 16px;
    box-shadow: 0 10px 26px rgba(42, 32, 64, 0.07);
    display: flex;
    gap: 13px;
    min-height: 96px;
    padding: 17px;
}

.accounts-summary-icon {
    align-items: center;
    background: #eee9f5;
    border-radius: 13px;
    color: #493768;
    display: flex;
    flex: 0 0 48px;
    height: 48px;
    justify-content: center;
}

.accounts-summary-icon svg {
    height: 24px;
    width: 24px;
}

.accounts-summary-card.is-success .accounts-summary-icon {
    background: #e7f4ec;
    color: #267247;
}

.accounts-summary-card.is-accent .accounts-summary-icon {
    background: #f8edda;
    color: #986321;
}

.accounts-summary-card > div {
    display: grid;
    gap: 2px;
}

.accounts-summary-card > div span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.accounts-summary-card > div strong {
    color: var(--primary-dark);
    font-size: 27px;
    line-height: 1.1;
}

.accounts-body .accounts-grid {
    gap: 20px;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
}

.accounts-body .accounts-panel {
    border-color: #e5dfec;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(42, 32, 64, 0.08);
    padding: 24px;
}

.accounts-body .accounts-panel h2 {
    font-size: 21px;
    letter-spacing: -.015em;
}

.accounts-body .accounts-form-panel {
    align-self: start;
    border-top: 4px solid #493768;
}

.accounts-body .accounts-form-panel > p {
    line-height: 1.55;
    margin: 0 0 21px;
}

.accounts-body .accounts-form-panel .customer-form {
    gap: 16px;
}

.accounts-body .accounts-form-panel label {
    color: #514660;
    font-size: 12px;
    gap: 6px;
}

.accounts-body .accounts-form-panel input,
.accounts-body .accounts-form-panel select {
    background: #fbfafc;
    border-color: #ded7e7;
    border-radius: 10px;
    min-height: 46px;
}

.accounts-body .accounts-form-panel input:focus,
.accounts-body .accounts-form-panel select:focus {
    background: #ffffff;
    border-color: #6d568d;
    box-shadow: 0 0 0 3px rgba(109, 86, 141, .12);
}

.accounts-body .accounts-form-panel button[type="submit"],
.accounts-body .signature-upload-form button {
    background: linear-gradient(135deg, var(--primary-dark), #493768);
    border: 0;
    border-radius: 10px;
    box-shadow: 0 8px 18px rgba(42, 32, 64, .17);
    color: #ffffff;
    cursor: pointer;
    font-weight: 900;
    min-height: 46px;
    padding: 10px 15px;
}

.accounts-body .accounts-form-panel button[type="submit"]:hover,
.accounts-body .signature-upload-form button:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
}

.accounts-body .accounts-list-panel {
    min-width: 0;
}

.accounts-body .accounts-list-head {
    border-bottom: 1px solid #eee9f2;
    margin-bottom: 16px;
    padding-bottom: 15px;
}

.accounts-body .accounts-list-head strong {
    background: #eee9f5;
    border: 1px solid #ded5e9;
    color: #493768;
}

.accounts-body .accounts-table-controls {
    background: #f8f6fa;
    border-color: #e7e1ed;
    box-shadow: none;
    margin-top: 0;
}

.accounts-body .accounts-table-controls input,
.accounts-body .accounts-table-controls select {
    border-color: #dcd4e5;
}

.accounts-body .accounts-table-wrap {
    border: 1px solid #e8e2ee;
    border-radius: 12px;
}

.accounts-body .accounts-table th {
    background: #f3f0f7;
    border-bottom-color: #ddd5e6;
    color: #4a3d5b;
    padding-bottom: 13px;
    padding-top: 13px;
}

.accounts-body .accounts-table td {
    border-bottom-color: #eeeaf2;
    padding-bottom: 14px;
    padding-top: 14px;
    vertical-align: middle;
}

.accounts-body .accounts-table tbody tr:hover {
    background: #faf8fc;
}

.accounts-body .account-action-button {
    background: #f1edf6;
    border-color: #ded5e9;
    border-radius: 8px;
    color: #3f3152;
    font-size: 12px;
    font-weight: 850;
}

.accounts-body .account-action-button:hover {
    background: #493768;
    border-color: #493768;
    color: #ffffff;
}

.accounts-body .accounts-search-button {
    background: #2a2040;
    border-color: #2a2040;
    color: #ffffff;
}

.accounts-body .accounts-table-footer {
    background: transparent;
    border: 0;
    margin-top: 14px;
    padding: 0;
}

.accounts-body .accounts-pagination span {
    background: #f3f0f7;
    border-color: #e0d8e8;
}

.accounts-body .signatory-assignment-shell {
    gap: 20px;
}

.accounts-body .signatory-intro {
    background: linear-gradient(120deg, #ffffff, #f8f5fb);
    border-left: 4px solid #493768;
}

.signatory-intro-copy {
    align-items: center;
    display: flex;
    gap: 18px;
}

.signatory-intro-icon {
    align-items: center;
    background: #ece6f3;
    border-radius: 15px;
    color: #493768;
    display: flex;
    flex: 0 0 58px;
    height: 58px;
    justify-content: center;
}

.signatory-intro-icon svg {
    height: 29px;
    width: 29px;
}

.accounts-body .signature-format-note {
    background: #fff9ef;
    border-color: #ead8b9;
}

.accounts-body .signatory-grid {
    gap: 20px;
}

.accounts-body .signatory-card {
    border-top: 4px solid #77638f;
    padding: 21px;
    transition: box-shadow 180ms ease, transform 180ms ease;
}

.accounts-body .signatory-card:hover {
    box-shadow: 0 20px 42px rgba(42, 32, 64, .13);
    transform: translateY(-3px);
}

.accounts-body .signatory-card.signatory-role-hod {
    border-top-color: #3d6e80;
}

.accounts-body .signatory-card.signatory-role-director {
    border-top-color: #a06d2d;
}

.accounts-body .signatory-avatar {
    border-radius: 50%;
    box-shadow: 0 6px 14px rgba(42, 32, 64, .17);
}

.accounts-body .signature-preview {
    background:
        linear-gradient(rgba(255,255,255,.91), rgba(255,255,255,.91)),
        repeating-linear-gradient(0deg, transparent, transparent 19px, #e9e2ee 20px);
    border-color: #d8cee3;
    min-height: 160px;
}

.accounts-body .signature-preview.has-signature {
    border-color: #d8d1e0;
    box-shadow: inset 0 0 0 5px #faf8fc;
}

.accounts-body .signature-empty-mark {
    align-items: center;
    background: #eee9f5;
    border-radius: 50%;
    color: #6b587e;
    display: flex;
    height: 48px;
    justify-content: center;
    margin-bottom: 10px;
    width: 48px;
}

.accounts-body .signature-empty-mark svg {
    height: 24px;
    width: 24px;
}

.accounts-body .signatory-meta div {
    border: 1px solid #e5deeb;
}

.accounts-body .signature-upload-form input[type="file"] {
    border-color: #ddd5e6;
    border-radius: 10px;
}

.accounts-body .account-status.is-active {
    background: #e5f4eb;
    border: 1px solid #c6e5d2;
    color: #246b42;
}

.accounts-body .account-status.is-inactive {
    background: #f2eff4;
    border: 1px solid #dfd8e4;
    color: #746a7d;
}

@media (max-width: 1050px) {
    .accounts-header-art {
        flex-basis: 220px;
    }

    .accounts-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounts-body .accounts-grid {
        grid-template-columns: 1fr;
    }

    .accounts-body .accounts-form-panel .customer-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounts-body .accounts-form-panel button[type="submit"] {
        grid-column: 1 / -1;
    }
}

@media (max-width: 760px) {
    .accounts-body .accounts-header {
        min-height: 0;
    }

    .accounts-header-art {
        display: none;
    }

    .accounts-body .accounts-header p {
        margin-left: 0;
    }

    .accounts-body .signatory-intro {
        align-items: stretch;
    }

    .signatory-intro-copy {
        align-items: flex-start;
    }
}

@media (max-width: 560px) {
    .accounts-body .accounts-page {
        padding: 12px;
    }

    .accounts-body .accounts-header {
        border-radius: 16px;
        padding: 20px;
    }

    .accounts-body .accounts-brand {
        align-items: flex-start;
    }

    .accounts-body .accounts-logo {
        height: 64px;
        width: 74px;
    }

    .accounts-body .accounts-brand h1 {
        font-size: 25px;
    }

    .report-position-row {
        grid-template-columns: 1fr;
    }

    .accounts-body .accounts-subtabs span {
        font-size: 12px;
    }

    .accounts-summary {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .accounts-summary-card {
        align-items: flex-start;
        min-height: 108px;
        padding: 13px;
    }

    .accounts-summary-icon {
        flex-basis: 39px;
        height: 39px;
        width: 39px;
    }

    .accounts-summary-card > div strong {
        font-size: 23px;
    }

    .accounts-body .accounts-form-panel .customer-form {
        grid-template-columns: 1fr;
    }

    .signatory-intro-copy {
        display: block;
    }

    .signatory-intro-icon {
        margin-bottom: 14px;
    }
}

/*
 * Unified view, preview and review behaviour.
 * The modal owns vertical scrolling; its content cards must never shrink and
 * silently clip fields or action buttons.
 */
.modal-backdrop .customer-modal .modal-content > section,
.modal-backdrop .customer-modal .modal-content > article,
.modal-backdrop .customer-modal .modal-content > form {
    flex: 0 0 auto;
    min-width: 0;
}

.modal-backdrop .customer-modal .sample-view-list {
    max-height: none;
    overflow: visible;
}

.modal-backdrop .service-sample-modal .sample-preview-panel {
    flex: 0 0 auto;
    max-height: none;
    overflow: visible;
}

.modal-backdrop .service-sample-modal .sample-preview-table-wrap {
    flex: 0 0 auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: visible;
}

/*
 * One scroll owner for every operational View/Review modal.
 * The header stays visible while the content pane handles all vertical
 * scrolling, avoiding the clipped modal/body-scroll conflict.
 */
.record-view-backdrop.is-visible,
.record-view-backdrop.is-visible.modal-page-scroll {
    align-items: flex-start;
    display: flex;
    overflow: hidden;
}

.record-view-backdrop > .customer-modal,
.record-view-backdrop.is-visible.modal-page-scroll > .customer-modal.desk-officer-view-modal {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 24px);
    height: calc(100dvh - 24px);
    margin: 0 auto;
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    min-height: 0;
    overflow: hidden;
}

.record-view-backdrop > .customer-modal > .section-head,
.record-view-backdrop.is-visible.modal-page-scroll > .customer-modal.desk-officer-view-modal > .section-head {
    flex: 0 0 auto;
    position: relative;
    z-index: 3;
}

.record-view-backdrop > .customer-modal > .modal-content,
.record-view-backdrop.is-visible.modal-page-scroll > .customer-modal.desk-officer-view-modal > .modal-content {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    height: 0;
    max-height: none;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: scroll;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.record-view-backdrop > .customer-modal > .modal-content::-webkit-scrollbar {
    width: 10px;
}

.record-view-backdrop > .customer-modal > .modal-content::-webkit-scrollbar-thumb {
    background: rgba(38, 20, 61, 0.35);
    border: 2px solid transparent;
    border-radius: 999px;
    background-clip: padding-box;
}

.leave-history-list {
    margin-top: 18px;
}

.leave-history-list dd {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.inline-action-form {
    display: inline-flex;
    margin: 0;
}

.product-code-page-header {
    align-items: flex-end;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.product-code-page-header h2 {
    color: var(--primary-dark);
    font-size: clamp(30px, 4vw, 38px);
    letter-spacing: -0.035em;
    line-height: 1.1;
    margin: 0 0 8px;
}

.product-code-page-header p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.45;
    margin: 0;
}

.product-code-page-header > span {
    background: var(--primary);
    border-radius: 999px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 950;
    padding: 9px 14px;
}

.product-code-stats-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-code-panel-card,
.product-code-toolbar,
.product-code-table-shell {
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 10px 24px var(--primary-shadow);
}

.product-code-stat-card {
    align-items: flex-start;
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 14px;
    box-shadow: none;
    color: var(--primary-dark);
    display: flex;
    flex-direction: column;
    gap: 18px;
    justify-content: flex-start;
    min-height: 124px;
    padding: 24px 28px;
    text-align: left;
}

.product-code-stat-icon {
    display: none;
}

.product-code-stat-icon svg {
    fill: none;
    height: 24px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.35;
    width: 24px;
}

.product-code-stat-card small {
    color: var(--muted);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.product-code-stat-card strong {
    color: var(--primary-dark);
    display: block;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.product-code-panel-card {
    border-radius: 14px;
    padding: 26px;
}

.product-code-panel-card h3 {
    color: var(--primary-dark);
    font-size: 22px;
    margin: 0 0 22px;
}

.product-code-add-form {
    align-items: end;
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(170px, 0.72fr);
}

.product-code-add-form label {
    color: var(--primary-dark);
    font-size: 14px;
    font-weight: 900;
}

.product-code-add-form input {
    border-color: var(--line);
    border-radius: 9px;
    min-height: 48px;
}

.product-code-add-form button {
    background: var(--primary-dark);
    border: 0;
    border-radius: 9px;
    color: #ffffff;
    cursor: pointer;
    font-size: 16px;
    font-weight: 950;
    min-height: 50px;
    padding: 0 18px;
}

.product-code-toolbar {
    align-items: center;
    border-radius: 14px;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px;
}

.product-code-toolbar select,
.product-code-search-wrap input {
    border-color: var(--line);
    border-radius: 9px;
    min-height: 44px;
}

.product-code-toolbar select {
    flex: 0 0 210px;
}

.product-code-search-wrap {
    flex: 1 1 340px;
    max-width: 430px;
    min-width: 240px;
    position: relative;
}

.product-code-search-wrap svg {
    fill: none;
    height: 20px;
    left: 14px;
    position: absolute;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.7;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
}

.product-code-search-wrap input {
    padding-left: 42px;
}

.product-code-table-shell {
    border-radius: 12px 12px 0 0;
    max-height: 560px;
    overflow: auto;
}

.product-code-table {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 980px;
    width: 100%;
}

.product-code-table thead th {
    background: var(--primary-dark);
    color: #ffffff;
    font-size: 13px;
    font-weight: 950;
    height: 56px;
    letter-spacing: 0.07em;
    padding: 0 18px;
    position: sticky;
    text-align: left;
    text-transform: uppercase;
    top: 0;
    z-index: 2;
}

.product-code-table thead th:first-child {
    border-top-left-radius: 11px;
}

.product-code-table thead th:last-child {
    border-top-right-radius: 11px;
}

.product-code-table tbody td {
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-size: 16px;
    height: 66px;
    padding: 10px 18px;
    vertical-align: middle;
}

.product-code-table tbody tr:nth-child(even) {
    background: var(--primary-soft);
}

.product-code-table tbody tr:hover {
    background: color-mix(in srgb, var(--primary-soft) 70%, #ffffff);
}

.product-code-table-badge {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 12px;
    font-weight: 950;
    min-width: 42px;
    padding: 5px 9px;
    justify-content: center;
}

.product-code-delete-button {
    background: #fff1f0;
    border: 1px solid #f0b8b6;
    border-radius: 8px;
    color: var(--danger);
    cursor: pointer;
    font-size: 12px;
    font-weight: 950;
    min-height: 32px;
    padding: 6px 10px;
}

[data-product-code-empty-row] td {
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

@media (max-width: 1180px) {
    .product-code-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-code-add-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .product-code-add-form button {
        justify-self: start;
        min-width: 190px;
    }

    .product-code-toolbar {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .product-code-search-wrap {
        max-width: none;
    }
}

@media (max-width: 760px) {
    .product-code-page-header {
        align-items: flex-start;
        display: grid;
    }

    .product-code-stats-grid,
    .product-code-add-form {
        grid-template-columns: 1fr;
    }

    .product-code-panel-card {
        padding: 20px;
    }

    .product-code-add-form button,
    .product-code-toolbar select,
    .product-code-search-wrap {
        width: 100%;
    }

    .product-code-toolbar {
        display: grid;
    }
}

.code-tab-page {
    display: grid;
    gap: 22px;
}

.code-tab-hero {
    align-items: center;
    background:
        radial-gradient(circle at 94% 4%, rgba(255, 255, 255, 0.18), transparent 28%),
        linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 22px;
    box-shadow: 0 16px 34px var(--primary-shadow);
    color: #ffffff;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-top: 4px;
    overflow: hidden;
    padding: clamp(18px, 2.3vw, 24px);
    position: relative;
}

.code-tab-hero::after {
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.10)),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
    bottom: 0;
    content: "";
    opacity: 0.5;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    width: 28%;
}

.code-tab-hero-main {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
    position: relative;
    z-index: 1;
}

.code-tab-hero .eyebrow,
.code-tab-hero h2,
.code-tab-hero p {
    color: inherit;
    margin: 0;
}

.code-tab-hero .eyebrow {
    font-size: 12px;
    font-weight: 950;
    letter-spacing: 0.14em;
    opacity: 0.76;
    text-transform: uppercase;
}

.code-tab-hero h2 {
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.035em;
    line-height: 1;
    margin-bottom: 7px;
}

.code-tab-hero p:not(.eyebrow) {
    font-size: 14px;
    line-height: 1.45;
    max-width: 680px;
    opacity: 0.86;
}

.code-tab-hero-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
    flex: 0 0 auto;
    display: flex;
    height: 56px;
    justify-content: center;
    width: 56px;
}

.code-tab-hero-icon svg {
    fill: none;
    height: 30px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    width: 30px;
}

.code-tab-stats {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    max-width: 520px;
    position: relative;
    z-index: 1;
}

.code-tab-stats span {
    align-items: center;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
    display: inline-flex;
    gap: 8px;
    min-height: 36px;
    min-width: 0;
    padding: 7px 12px;
}

.code-tab-stats strong {
    color: #ffffff;
    display: block;
    font-size: 14px;
    font-weight: 950;
    line-height: 1;
    max-width: 190px;
    overflow-wrap: anywhere;
}

.code-tab-stats small {
    color: rgba(255, 255, 255, 0.75);
    display: block;
    font-size: 10px;
    font-weight: 950;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    white-space: nowrap;
}

.code-tab-layout {
    align-items: start;
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(0, 1fr);
}

.code-tab-card {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
        var(--panel);
    border: 1px solid var(--line);
    border-radius: 20px;
    box-shadow: 0 12px 26px var(--primary-shadow);
    min-width: 0;
    overflow: hidden;
    padding: clamp(16px, 2.4vw, 22px);
}

.code-tab-card h3,
.code-tab-card h4,
.code-tab-card p {
    margin: 0;
}

.code-tab-card-head {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.code-tab-card-kicker {
    color: var(--primary) !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    letter-spacing: 0.12em;
    margin-bottom: 6px !important;
    text-transform: uppercase;
}

.code-tab-card-badge {
    align-items: center;
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    flex-shrink: 0;
    font-size: 12px;
    font-weight: 950;
    min-height: 34px;
    padding: 6px 12px;
}

.code-tab-card h3 {
    color: var(--primary-dark);
    font-size: clamp(20px, 2vw, 24px);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.code-tab-card p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 6px;
}

.code-tab-form {
    align-items: end;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.62)),
        var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    gap: 14px;
    grid-template-columns: minmax(180px, 0.9fr) minmax(150px, 0.7fr) minmax(220px, 1.05fr) minmax(260px, 1.2fr) auto;
    margin-top: 18px;
    padding: 14px;
}

.code-tab-form label {
    color: var(--primary-dark);
    font-size: 12px;
    letter-spacing: 0.03em;
}

.code-tab-form input,
.code-tab-form select {
    border-radius: 12px;
    min-height: 46px;
}

.code-tab-form button {
    border-radius: 999px;
    justify-self: stretch;
    min-height: 46px;
    min-width: 140px;
    padding-left: 18px;
    padding-right: 18px;
}

.code-tab-list-card {
    display: grid;
    gap: 20px;
}

.code-tab-list-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.product-code-search {
    align-self: stretch;
    background: var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 18px;
    min-width: min(100%, 360px);
    padding: 10px;
}

.product-code-search span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.product-code-search input {
    border-radius: 999px;
    margin-top: 6px;
    min-height: 42px;
}

.product-code-browser {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
}

.product-code-panel {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.9)),
        var(--primary-soft);
    border: 1px solid var(--line);
    border-radius: 22px;
    min-width: 0;
    padding: clamp(14px, 2vw, 20px);
}

.product-code-panel-head {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.product-code-panel-head h4 {
    color: var(--primary-dark);
    font-size: 13px;
    letter-spacing: 0.08em;
    margin: 0;
    text-transform: uppercase;
}

.product-code-panel-head p {
    color: var(--muted);
    font-size: 12px;
    margin: 3px 0 0;
}

.product-code-panel-head > span {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 30px;
    min-width: 34px;
    padding: 4px 10px;
}

.product-code-mini-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}

.product-code-mini-card {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: grid;
    gap: 10px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 0;
    padding: 10px 11px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.product-code-mini-card:hover {
    border-color: var(--primary-secondary);
    box-shadow: 0 12px 26px var(--primary-shadow);
    transform: translateY(-1px);
}

.product-code-mini-card.is-inactive {
    opacity: 0.58;
}

.product-code-mini-card strong {
    align-items: center;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: 12px;
    color: #ffffff;
    display: inline-flex;
    font-size: 13px;
    font-weight: 950;
    justify-content: center;
    min-height: 38px;
    min-width: 48px;
    padding: 6px 9px;
}

.product-code-mini-card span {
    color: var(--primary-dark);
    display: block;
    font-size: 13px;
    font-weight: 900;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.product-code-mini-card small {
    color: var(--muted);
    display: block;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

.product-code-mini-card .compact-link {
    border-radius: 999px;
    font-size: 11px;
    min-height: 28px;
    padding: 4px 8px;
}

.product-code-category-list {
    display: grid;
    gap: 12px;
}

.product-code-category {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.product-code-category[open] {
    border-color: var(--primary-secondary);
    box-shadow: 0 12px 28px var(--primary-shadow);
}

.product-code-category[hidden],
.product-code-mini-card[hidden] {
    display: none;
}

.product-code-category summary {
    align-items: center;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    list-style: none;
    min-height: 58px;
    padding: 13px 15px;
}

.product-code-category summary::-webkit-details-marker {
    display: none;
}

.product-code-category summary span {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.product-code-category summary strong {
    font-size: 14px;
    line-height: 1.25;
}

.product-code-category summary small,
.product-code-category summary em {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-style: normal;
    font-weight: 900;
    min-height: 26px;
    padding: 4px 9px;
}

.product-code-category summary small {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    color: var(--primary-dark);
    font-size: 11px;
}

.product-code-category summary em {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #ffffff;
    flex-shrink: 0;
    font-size: 12px;
    justify-content: center;
    min-width: 30px;
}

.product-code-category .product-code-mini-grid {
    border-top: 1px solid var(--line);
    background: linear-gradient(180deg, var(--primary-soft), rgba(255, 255, 255, 0.9));
    padding: 14px;
}

.product-code-pagination {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 12px;
    padding-top: 12px;
}

.product-code-pagination[hidden] {
    display: none;
}

.product-code-pagination span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    min-width: 86px;
    text-align: center;
}

.product-code-pagination button {
    border-radius: 999px;
    font-size: 12px;
    min-height: 34px;
    padding: 6px 12px;
}

.product-code-pagination button:disabled {
    cursor: not-allowed;
    opacity: 0.46;
}

.product-code-columns {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-code-group {
    background: linear-gradient(180deg, #ffffff, var(--primary-soft));
    border: 1px solid var(--line);
    border-radius: 16px;
    min-width: 0;
    padding: 14px;
}

.product-code-group-head {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 12px;
}

.product-code-group-head h4 {
    color: var(--primary-dark);
    font-size: 14px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.product-code-group-head span {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 28px;
    min-width: 28px;
    padding: 4px 8px;
}

.product-code-chip-list {
    display: grid;
    gap: 10px;
}

.product-code-chip {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 14px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 0;
    padding: 12px;
}

.product-code-chip.is-inactive {
    opacity: 0.62;
}

.product-code-chip strong {
    color: var(--primary-dark);
    display: block;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.product-code-chip span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.product-code-chip small {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    margin-top: 8px;
    max-width: 100%;
    overflow-wrap: anywhere;
    padding: 4px 8px;
}

.product-code-chip-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 8px;
}

.product-code-chip-actions em {
    background: var(--primary-soft);
    border: 1px solid var(--primary-secondary);
    border-radius: 999px;
    color: var(--primary-dark);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    padding: 4px 8px;
}

.product-code-chip .compact-link {
    border-radius: 999px;
    font-size: 12px;
    min-height: 30px;
    padding: 5px 10px;
}

.product-code-empty {
    background: rgba(255, 255, 255, 0.76);
    border: 1px dashed var(--primary-secondary);
    border-radius: 16px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    padding: 18px;
    text-align: center;
}

@media (max-width: 980px) {
    .code-tab-hero,
    .code-tab-layout,
    .product-code-browser,
    .product-code-columns {
        grid-template-columns: 1fr;
    }

    .code-tab-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .code-tab-form button {
        grid-column: 1 / -1;
    }

    .code-tab-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .code-tab-list-head {
        display: grid;
    }

    .product-code-search {
        min-width: 0;
    }
}

@media (max-width: 560px) {
    .code-tab-hero-main,
    .code-tab-card-head {
        display: grid;
    }

    .code-tab-hero-icon {
        height: 58px;
        width: 58px;
    }

    .code-tab-stats {
        grid-template-columns: 1fr;
    }

    .code-tab-form {
        grid-template-columns: 1fr;
    }

    .product-code-mini-grid {
        grid-template-columns: 1fr;
    }

    .product-code-mini-card {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .product-code-mini-card .inline-action-form {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .product-code-pagination {
        justify-content: stretch;
    }

    .product-code-pagination button,
    .product-code-pagination span {
        flex: 1;
    }
}

@media (max-width: 720px) {
    .record-view-backdrop > .customer-modal,
    .record-view-backdrop.is-visible.modal-page-scroll > .customer-modal.desk-officer-view-modal {
        height: calc(100vh - 16px);
        height: calc(100dvh - 16px);
        max-height: calc(100vh - 16px);
        max-height: calc(100dvh - 16px);
    }
}

/* ==========================================================================
   System-wide responsive foundation
   Keeps every operational interface usable from small phones to desktops.
   ========================================================================== */

html {
    max-width: 100%;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

body,
.service-shell,
.service-page,
.dashboard-section,
.panel,
.accounts-page,
.customer-portal-main {
    max-width: 100%;
    min-width: 0;
}

img,
video,
canvas {
    height: auto;
    max-width: 100%;
}

input,
select,
textarea,
button,
.button-link {
    max-width: 100%;
    min-width: 0;
}

.form-grid > *,
.dashboard-cards > *,
.activity-user-grid > *,
.customer-details > *,
.profile-grid > *,
.accounts-grid > *,
.accounts-summary > *,
.target-visual-grid > *,
.workflow-tracking-grid > * {
    min-width: 0;
}

.table-wrap,
.accounts-table-wrap,
.product-code-table-shell,
.metallic-table-wrap,
.sample-preview-table-wrap,
.datatable-controls-shell {
    max-width: 100%;
    overscroll-behavior-x: contain;
    scrollbar-gutter: stable;
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
}

.section-head,
.dashboard-table-head,
.accounts-list-head,
.portal-section-heading,
.profile-card-head,
.target-lab-panel-head,
.workflow-header-actions,
.table-actions,
.assign-modal-actions {
    gap: 12px;
}

.dashboard-section > .section-head,
.profile-section > .section-head {
    margin-left: 0;
    margin-right: 0;
}

@media screen and (max-width: 900px) {
    body:has(.service-shell) {
        padding-bottom: calc(76px + env(safe-area-inset-bottom));
    }

    .service-shell {
        display: block;
        min-height: 100vh;
    }

    .service-sidebar,
    .service-sidebar.is-collapsed {
        align-items: stretch;
        border-radius: 0;
        bottom: 0;
        box-shadow: 0 -8px 28px var(--primary-shadow);
        display: block;
        flex-basis: auto;
        height: auto;
        left: 0;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 5px max(6px, env(safe-area-inset-right)) max(5px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
        position: fixed;
        right: 0;
        top: auto;
        width: 100%;
        z-index: 100;
        -webkit-overflow-scrolling: touch;
    }

    .service-sidebar .sidebar-header,
    .service-sidebar .sidebar-user {
        display: none;
    }

    .service-sidebar .tabs {
        display: flex;
        flex-direction: row;
        gap: 4px;
        min-width: max-content;
        width: max-content;
    }

    .service-sidebar .tab,
    .service-sidebar.is-collapsed .tab {
        flex: 0 0 76px;
        flex-direction: column;
        gap: 2px;
        justify-content: center;
        min-height: 62px;
        padding: 5px 4px;
        white-space: normal;
    }

    .service-sidebar.is-collapsed .tab-label,
    .service-sidebar .tab-label {
        display: block;
        font-size: 9px;
        line-height: 1.1;
        max-width: 72px;
        overflow: hidden;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .service-sidebar .tab-icon {
        box-sizing: border-box;
        flex-basis: 28px;
        height: 28px;
        padding: 5px;
        width: 28px;
    }

    .service-sidebar .tab:hover,
    .service-sidebar .tab.active {
        box-shadow: inset 0 3px 0 var(--accent);
    }

    .service-page {
        margin-left: 0;
        padding: 20px clamp(12px, 3vw, 24px) calc(92px + env(safe-area-inset-bottom));
        width: 100%;
    }

    .dashboard-cards,
    .activity-user-grid,
    .accounts-summary,
    .target-summary-cards,
    .product-code-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .all-samples-datatable-controls,
    .director-reports-filter-controls,
    .director-dashboard-filter-controls,
    .hod-clean-filter-controls,
    .activity-filter-banner {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        overflow: visible;
    }

    .all-samples-datatable-controls .datatable-filter-search,
    .all-samples-datatable-controls .datatable-filter-purpose,
    .director-reports-filter-controls .datatable-filter-search,
    .director-dashboard-filter-controls .datatable-filter-search,
    .hod-clean-filter-controls .datatable-filter-search,
    .activity-search-filter {
        grid-column: 1 / -1;
    }

    .section-head,
    .dashboard-table-head,
    .accounts-list-head,
    .portal-section-heading,
    .profile-card-head {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .dashboard-section > .section-head,
    .profile-section > .section-head {
        margin-left: 0;
        margin-right: 0;
    }

    .modal-backdrop {
        padding: 8px;
    }

    .customer-modal,
    .workflow-tracking-modal,
    .assign-modal,
    .service-sample-modal {
        max-height: calc(100dvh - 16px);
        width: 100%;
    }

    .report-preview-frame {
        min-height: 60vh;
    }

    .accounts-body .accounts-subtabs {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .accounts-body .accounts-subtabs a {
        flex: 0 0 auto;
        min-width: 132px;
        padding-left: 12px;
        padding-right: 12px;
    }

    .accounts-body .accounts-table-controls {
        grid-template-columns: minmax(0, 1fr) auto;
    }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: clamp(27px, 9vw, 36px);
    }

    h2 {
        overflow-wrap: anywhere;
    }

    .service-page {
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 14px;
    }

    .service-sidebar .tab,
    .service-sidebar.is-collapsed .tab {
        flex-basis: 70px;
    }

    .dashboard-cards,
    .activity-user-grid,
    .target-summary-cards,
    .product-code-stats-grid,
    .profile-grid,
    .profile-details,
    .customer-details,
    .portal-sample-meta,
    .portal-detail-grid,
    .workflow-tracking-grid {
        grid-template-columns: 1fr;
    }

    .all-samples-datatable-controls,
    .director-reports-filter-controls,
    .director-dashboard-filter-controls,
    .hod-clean-filter-controls,
    .activity-filter-banner,
    .target-settings-form,
    .accounts-body .accounts-form-panel .customer-form {
        grid-template-columns: 1fr;
    }

    .all-samples-datatable-controls > *,
    .director-reports-filter-controls > *,
    .director-dashboard-filter-controls > *,
    .hod-clean-filter-controls > *,
    .activity-filter-banner > * {
        grid-column: auto;
        width: 100%;
    }

    .section-head,
    .dashboard-table-head,
    .accounts-list-head,
    .portal-section-heading,
    .profile-card-head,
    .product-code-page-header,
    .code-tab-list-head,
    .workflow-header-actions,
    .assign-modal-actions,
    .desk-officer-review-actions,
    .hod-review-report-actions {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .section-head > *,
    .dashboard-table-head > *,
    .assign-modal-actions > *,
    .desk-officer-review-actions > *,
    .hod-review-report-actions > * {
        max-width: 100%;
    }

    .section-head .button-link,
    .section-head button,
    .assign-modal-actions .button-link,
    .assign-modal-actions button,
    .desk-officer-review-actions .button-link,
    .desk-officer-review-actions button {
        justify-content: center;
        width: 100%;
    }

    .modal-backdrop {
        padding: 0;
    }

    .customer-modal,
    .workflow-tracking-modal,
    .assign-modal,
    .service-sample-modal,
    .desk-officer-view-modal {
        border-left: 0;
        border-radius: 0;
        border-right: 0;
        height: 100dvh;
        max-height: 100dvh;
        width: 100%;
    }

    .modal-content {
        padding: 14px;
    }

    .table-wrap,
    .accounts-table-wrap,
    .product-code-table-shell,
    .metallic-table-wrap {
        margin-left: 0;
        margin-right: 0;
        overflow-x: auto;
        width: 100%;
    }

    .records-table,
    .dashboard-data-table,
    .accounts-table {
        font-size: 13px;
    }

    .records-table th,
    .records-table td,
    .dashboard-data-table th,
    .dashboard-data-table td,
    .accounts-table th,
    .accounts-table td {
        padding: 11px 12px;
    }

    .accounts-body .accounts-page {
        padding: 10px;
    }

    .accounts-body .accounts-header,
    .accounts-body .accounts-panel {
        padding: 16px;
    }

    .accounts-body .accounts-brand {
        gap: 10px;
    }

    .accounts-body .accounts-logo {
        height: 54px;
        width: 64px;
    }

    .accounts-body .accounts-brand h1 {
        font-size: 23px;
    }

    .accounts-body .accounts-table-controls,
    .accounts-body .accounts-table-footer {
        align-items: stretch;
        display: grid;
        grid-template-columns: 1fr;
    }

    .accounts-body .accounts-pagination {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        width: 100%;
    }

    .customer-portal-header {
        max-width: 100%;
    }

    .customer-portal-brand {
        min-width: 0;
    }

    .customer-portal-brand > span,
    .customer-portal-brand > div {
        min-width: 0;
    }

    .portal-report-download-container,
    .portal-sample-card-top {
        min-width: 0;
    }

    .portal-report-download-container > *,
    .portal-sample-card-top > * {
        min-width: 0;
    }
}

@media screen and (max-width: 420px) {
    .accounts-summary {
        grid-template-columns: 1fr;
    }

    .accounts-summary-card {
        min-height: 86px;
    }

    .portal-auth-copy h1 {
        font-size: 28px;
    }

    .portal-auth-copy p {
        font-size: 15px;
    }

    .portal-auth-tabs a {
        font-size: 12px;
    }

    .customer-portal-brand strong {
        font-size: 11px;
    }

    .customer-portal-brand small {
        font-size: 10px;
    }
}

/* Mobile navigation drawer */
.mobile-sidebar-toggle,
.mobile-sidebar-backdrop {
    display: none;
}

@media screen and (max-width: 900px) {
    body:has(.service-shell) {
        padding-bottom: 0;
    }

    body.mobile-sidebar-open {
        overflow: hidden;
    }

    .mobile-sidebar-toggle {
        align-items: center;
        background: var(--primary);
        border: 0;
        border-radius: 12px;
        box-shadow: 0 8px 22px var(--primary-shadow);
        cursor: pointer;
        display: flex;
        flex-direction: column;
        gap: 4px;
        height: 46px;
        justify-content: center;
        left: max(12px, env(safe-area-inset-left));
        padding: 0;
        position: fixed;
        top: max(12px, env(safe-area-inset-top));
        width: 48px;
        z-index: 190;
    }

    .mobile-sidebar-toggle span {
        background: #ffffff;
        border-radius: 2px;
        display: block;
        height: 2px;
        width: 21px;
    }

    .mobile-sidebar-backdrop {
        background: rgba(24, 14, 38, 0.56);
        border: 0;
        bottom: 0;
        cursor: pointer;
        display: block;
        left: 0;
        padding: 0;
        position: fixed;
        right: 0;
        top: 0;
        z-index: 200;
    }

    .mobile-sidebar-backdrop[hidden] {
        display: none;
    }

    .service-sidebar,
    .service-sidebar.is-collapsed {
        align-items: stretch;
        bottom: 0;
        box-shadow: 14px 0 32px var(--primary-shadow);
        display: flex;
        flex-basis: auto;
        height: 100dvh;
        left: 0;
        max-height: none;
        overflow-x: hidden;
        overflow-y: auto;
        padding: max(12px, env(safe-area-inset-top)) 10px max(20px, env(safe-area-inset-bottom));
        position: fixed;
        right: auto;
        top: 0;
        transform: translateX(-105%);
        transition: transform 200ms ease;
        width: min(84vw, 300px);
        z-index: 210;
    }

    .service-sidebar.is-mobile-open,
    .service-sidebar.is-collapsed.is-mobile-open {
        transform: translateX(0);
    }

    .service-sidebar .sidebar-header,
    .service-sidebar.is-collapsed .sidebar-header {
        align-items: center;
        display: flex;
        flex-direction: row;
        gap: 8px;
        justify-content: space-between;
    }

    .service-sidebar.is-collapsed .service-brand span,
    .service-sidebar .sidebar-user,
    .service-sidebar.is-collapsed .sidebar-user {
        display: block;
    }

    .service-sidebar .tabs {
        display: flex;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
        width: 100%;
    }

    .service-sidebar .tab,
    .service-sidebar.is-collapsed .tab {
        flex: 0 0 auto;
        flex-direction: row;
        gap: 11px;
        justify-content: flex-start;
        min-height: 50px;
        padding: 6px 8px;
        white-space: nowrap;
        width: 100%;
    }

    .service-sidebar .tab-label,
    .service-sidebar.is-collapsed .tab-label {
        display: block;
        font-size: 13px;
        line-height: 1.25;
        max-width: none;
        overflow: visible;
        text-align: left;
        text-overflow: clip;
        white-space: normal;
    }

    .service-sidebar .tab-icon {
        box-sizing: content-box;
        flex-basis: 20px;
        height: 20px;
        padding: 8px;
        width: 20px;
    }

    .service-sidebar .tab:hover,
    .service-sidebar .tab.active {
        box-shadow: inset 4px 0 0 var(--accent);
    }

    .service-page {
        margin-left: 0;
        padding-bottom: 28px;
        padding-top: calc(72px + env(safe-area-inset-top));
        width: 100%;
    }
}

@media screen and (max-width: 900px) {
    .accounts-body .mobile-sidebar-toggle,
    .customer-portal-body .mobile-sidebar-toggle {
        left: auto;
        right: max(12px, env(safe-area-inset-right));
    }

    .customer-portal-body .mobile-sidebar-toggle {
        background: #176b50;
    }

    .accounts-body .accounts-subtabs[data-mobile-navigation],
    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation] {
        align-items: stretch;
        background: var(--primary);
        border: 0;
        border-radius: 0;
        bottom: 0 !important;
        box-shadow: 14px 0 32px rgba(30, 18, 47, 0.24);
        display: flex;
        flex-direction: column;
        gap: 5px;
        grid-template-columns: none;
        height: 100dvh;
        justify-content: flex-start;
        left: 0 !important;
        margin: 0;
        max-width: 300px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: max(76px, calc(60px + env(safe-area-inset-top))) 10px max(20px, env(safe-area-inset-bottom));
        position: fixed !important;
        right: auto !important;
        top: 0 !important;
        transform: translateX(-105%) !important;
        transition: transform 200ms ease;
        width: min(84vw, 300px) !important;
        z-index: 210;
    }

    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation] {
        background: #176b50;
    }

    .accounts-body .accounts-subtabs[data-mobile-navigation].is-mobile-open,
    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation].is-mobile-open {
        transform: translateX(0) !important;
    }

    .accounts-body .accounts-subtabs[data-mobile-navigation] a,
    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation] a {
        align-items: center;
        border-radius: 10px;
        color: #ffffff;
        display: flex;
        flex: 0 0 auto;
        flex-direction: row;
        font-size: 13px;
        gap: 11px;
        justify-content: flex-start;
        min-height: 50px;
        min-width: 0;
        padding: 7px 10px;
        text-align: left;
        width: 100%;
    }

    .accounts-body .accounts-subtabs[data-mobile-navigation] a:hover,
    .accounts-body .accounts-subtabs[data-mobile-navigation] a.is-active,
    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation] a:hover,
    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation] a.is-active {
        background: rgba(255, 255, 255, 0.18);
        box-shadow: inset 4px 0 0 var(--accent);
        color: #ffffff;
        transform: none;
    }

    .accounts-body .accounts-subtabs[data-mobile-navigation] svg,
    .customer-portal-signed-in .customer-portal-nav[data-mobile-navigation] svg {
        flex: 0 0 22px;
        height: 22px;
        width: 22px;
    }

    .accounts-body .accounts-page {
        padding-top: calc(72px + env(safe-area-inset-top));
    }

    .customer-portal-signed-in {
        padding-bottom: 0;
    }

    .customer-portal-signed-in .customer-portal-header {
        padding-right: calc(70px + env(safe-area-inset-right));
    }

    .customer-portal-signed-in .portal-notification-link > strong {
        left: 29px;
        right: auto;
        top: 2px;
    }
}
.nexcore-system-footer {
    align-items: center;
    background-color: var(--primary-dark) !important;
    border: 0;
    border-top: 2px solid var(--accent);
    box-sizing: border-box;
    color: #ffffff !important;
    display: flex !important;
    flex-direction: column;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px !important;
    gap: 2px;
    justify-content: center;
    letter-spacing: 0.01em;
    line-height: 1.35;
    margin-top: 0;
    max-width: 100%;
    min-height: 52px;
    overflow: hidden;
    padding: 9px 16px;
    text-align: center;
    width: 100%;
}

.nexcore-system-footer span {
    color: inherit !important;
    display: block;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.nexcore-system-footer strong {
    color: #ffffff;
    font-weight: 850;
}

.nexcore-system-credit {
    font-size: 11px;
    opacity: 0.78;
}

@media (max-width: 640px) {
    .nexcore-system-footer {
        font-size: 11px !important;
        min-height: 48px;
        padding: 8px 12px;
    }

    .nexcore-system-credit {
        font-size: 10px;
    }
}
