:root {
    --navy-950: #071a2f;
    --navy-900: #0b2340;
    --navy-800: #12375d;
    --blue-700: #175ea8;
    --blue-600: #2576c8;
    --blue-100: #eaf4ff;
    --teal-600: #07877f;
    --teal-100: #e4f7f4;
    --yellow-400: #ffd447;
    --red-600: #d93f49;
    --red-100: #fff0f1;
    --orange-600: #d86a12;
    --orange-100: #fff3e8;
    --green-600: #16815d;
    --green-100: #e9f7f1;
    --gray-900: #1d2733;
    --gray-700: #4e5d6c;
    --gray-500: #73808d;
    --gray-300: #d7dee5;
    --gray-200: #e8edf2;
    --gray-100: #f5f7f9;
    --white: #ffffff;
    --shadow-sm: 0 8px 24px rgba(7, 26, 47, 0.08);
    --shadow-md: 0 18px 50px rgba(7, 26, 47, 0.13);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 28px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--gray-900);
    background: var(--white);
    font-family:
        "Pretendard",
        "Noto Sans KR",
        "Apple SD Gothic Neo",
        "Malgun Gothic",
        sans-serif;
    font-size: 16px;
    line-height: 1.65;
    word-break: keep-all;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(215, 222, 229, 0.85);
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
}

.header-inner {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 12px;
    line-height: 1.25;
}

.brand-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
    object-fit: contain;
}

.brand-text {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.brand-name {
    color: var(--navy-900);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.04em;
    white-space: nowrap;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
}

.main-nav a {
    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.main-nav a:hover {
    color: var(--blue-700);
    transform: translateY(-1px);
}

.hero {
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(circle at 78% 24%,
            rgba(37, 118, 200, 0.34),
            transparent 30%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
    gap: 72px;
    align-items: center;
    min-height: 610px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.eyebrow {
    margin-bottom: 14px;
    color: var(--blue-600);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero .eyebrow,
.contact-section .eyebrow {
    color: #74c9ff;
}

.hero h1 {
    max-width: 740px;
    margin-bottom: 24px;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.2;
    letter-spacing: -0.045em;
}

.hero-description {
    max-width: 690px;
    margin-bottom: 34px;
    color: #dbe9f6;
    font-size: 19px;
    line-height: 1.8;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    padding: 13px 23px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button-primary {
    color: var(--navy-950);
    background: var(--yellow-400);
}

.button-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.42);
    background: rgba(255, 255, 255, 0.08);
}

.hero-note {
    margin: 20px 0 0;
    color: #add9f5;
    font-size: 14px;
    font-weight: 700;
}

.hero-summary {
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.09);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
}

.hero-summary h2 {
    margin-bottom: 20px;
    font-size: 21px;
}

.hero-summary ul {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero-summary li {
    position: relative;
    padding-left: 25px;
    color: #e9f5ff;
}

.hero-summary li::before {
    position: absolute;
    top: 1px;
    left: 0;
    color: #6fe0c8;
    font-weight: 900;
    content: "✓";
}

.section {
    padding: 100px 0;
}

.section-muted {
    background: var(--gray-100);
}

.section-heading {
    max-width: 760px;
    margin-bottom: 44px;
}

.section-heading h2 {
    margin-bottom: 16px;
    color: var(--navy-900);
    font-size: clamp(30px, 4vw, 43px);
    line-height: 1.3;
    letter-spacing: -0.04em;
}

.section-heading>p:last-child {
    margin-bottom: 0;
    color: var(--gray-700);
    font-size: 17px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.service-card {
    min-height: 220px;
    padding: 30px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.service-card::before {
    display: block;
    width: 42px;
    height: 5px;
    margin-bottom: 25px;
    border-radius: 10px;
    background: linear-gradient(90deg, var(--blue-600), var(--teal-600));
    content: "";
}

.service-card h3 {
    margin-bottom: 12px;
    color: var(--navy-900);
    font-size: 20px;
}

.service-card p {
    margin-bottom: 0;
    color: var(--gray-700);
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
}

.status-card {
    display: flex;
    min-height: 120px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    text-align: center;
}

.status-card strong {
    margin-bottom: 7px;
    font-size: 16px;
}

.status-card span {
    font-size: 13px;
}

.status-normal {
    color: var(--green-600);
    border-color: #bde3d3;
    background: var(--green-100);
}

.status-ready {
    color: var(--blue-700);
    border-color: #c8e1fa;
    background: var(--blue-100);
}

.status-check {
    color: #726000;
    border-color: #eadb88;
    background: #fff9d9;
}

.status-progress {
    color: var(--orange-600);
    border-color: #f1c89f;
    background: var(--orange-100);
}

.status-urgent {
    color: var(--red-600);
    border-color: #f0b5ba;
    background: var(--red-100);
}

.status-expired {
    color: var(--white);
    background: var(--red-600);
}

.pricing-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.pricing-table {
    width: 100%;
    min-width: 650px;
    border-collapse: collapse;
    background: var(--white);
}

.pricing-table th,
.pricing-table td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

.pricing-table th {
    color: var(--white);
    background: var(--navy-900);
    font-size: 14px;
}

.pricing-table td:nth-child(2) {
    color: var(--blue-700);
    font-size: 18px;
    font-weight: 800;
}

.pricing-table tbody tr:last-child td {
    border-bottom: 0;
}

.pricing-table tbody tr:hover {
    background: #f9fbfd;
}

.pricing-notes {
    display: grid;
    gap: 8px;
    margin-top: 20px;
    padding: 24px;
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 14px;
}

.pricing-notes p {
    margin: 0;
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.guide-card {
    padding: 34px;
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.guide-card h3 {
    margin-bottom: 22px;
    color: var(--navy-900);
    font-size: 22px;
}

.guide-card ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-card li {
    position: relative;
    padding-left: 25px;
    color: var(--gray-700);
}

.guide-card li::before {
    position: absolute;
    left: 0;
    font-weight: 900;
}

.guide-card.included li::before {
    color: var(--teal-600);
    content: "✓";
}

.guide-card.excluded li::before {
    color: var(--gray-500);
    content: "–";
}

.discount-box {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 40px;
    align-items: center;
    margin-top: 30px;
    padding: 38px;
    border-radius: var(--radius-md);
    color: var(--white);
    background: linear-gradient(135deg, var(--blue-700), var(--teal-600));
}

.discount-box h3 {
    margin-bottom: 0;
    font-size: 26px;
}

.discount-box p:last-child {
    margin-bottom: 0;
    color: #e9ffff;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    padding: 26px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
}

.process-list li>span {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    border-radius: 50%;
    color: var(--white);
    background: var(--blue-700);
    font-weight: 900;
}

.process-list strong {
    display: block;
    margin-bottom: 8px;
    color: var(--navy-900);
    font-size: 18px;
}

.process-list p {
    margin: 0;
    color: var(--gray-700);
    font-size: 14px;
}

.contact-section {
    padding: 80px 0;
    color: var(--white);
    background: var(--navy-900);
}

.contact-inner {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 50px;
    align-items: center;
}

.contact-inner h2 {
    margin-bottom: 15px;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.3;
}

.contact-inner p:last-child {
    margin-bottom: 0;
    color: #cbddec;
}

.contact-actions {
    justify-content: flex-end;
}

.button-kakao {
    color: #191919;
    background: #fee500;
}

.button-light {
    color: var(--navy-900);
    background: var(--white);
}

.legal-notice {
    padding: 24px 0;
    border-bottom: 1px solid var(--gray-200);
    color: var(--gray-500);
    background: var(--gray-100);
    font-size: 13px;
}

.legal-notice p {
    margin: 0;
}

.site-footer {
    padding: 45px 0;
    color: #b9c7d4;
    background: var(--navy-950);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.site-footer strong {
    display: block;
    margin-bottom: 8px;
    color: var(--white);
    font-size: 15px;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
}

.footer-links a:hover {
    color: var(--white);
}

@media (max-width: 960px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-summary {
        max-width: 680px;
    }

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

    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .process-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-inner {
        grid-template-columns: 1fr;
    }

    .contact-actions {
        justify-content: flex-start;
    }
}

@media (max-width: 720px) {
    body {
        word-break: normal;
    }

    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-logo {
        width: 42px;
        height: 42px;
    }

    .brand-name {
        font-size: 16px;
    }

    .brand-subtitle {
        font-size: 11px;
    }

    .main-nav {
        display: none;
    }

    .hero-inner {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .hero h1 {
        font-size: 36px;
        word-break: keep-all;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-actions,
    .contact-actions {
        display: grid;
    }

    .button {
        width: 100%;
    }

    .hero-summary {
        padding: 26px;
    }

    .section {
        padding: 74px 0;
    }

    .section-heading {
        margin-bottom: 32px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    .card-grid,
    .guide-grid,
    .discount-box,
    .process-list {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

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

    .discount-box {
        gap: 20px;
        padding: 28px;
    }

    .pricing-table th,
    .pricing-table td {
        padding: 16px;
    }

    .contact-section {
        padding: 70px 0;
    }

    .footer-inner {
        flex-direction: column;
    }

    .footer-links {
        justify-content: flex-start;
    }
}

.document-hero {
    padding: 78px 0;
    color: var(--white);
    background:
        radial-gradient(circle at 85% 20%,
            rgba(37, 118, 200, 0.3),
            transparent 32%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.document-hero h1 {
    margin-bottom: 16px;
    font-size: clamp(36px, 5vw, 52px);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

.document-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: #dbe9f6;
    font-size: 17px;
}

.document-section {
    padding: 80px 0 110px;
    background: var(--gray-100);
}

.document-container {
    max-width: 920px;
}

.draft-notice {
    margin-bottom: 28px;
    padding: 24px 28px;
    border: 1px solid #eadb88;
    border-radius: var(--radius-sm);
    color: #655400;
    background: #fff9d9;
}

.draft-notice strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.draft-notice p {
    margin: 0;
    font-size: 14px;
}

.document-content {
    padding: 54px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.document-content article+article {
    margin-top: 52px;
    padding-top: 44px;
    border-top: 1px solid var(--gray-200);
}

.document-content h2 {
    margin-bottom: 20px;
    color: var(--navy-900);
    font-size: 24px;
    line-height: 1.4;
    letter-spacing: -0.03em;
}

.document-content h3 {
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--navy-800);
    font-size: 18px;
}

.document-content p {
    color: var(--gray-700);
}

.document-content p:last-child {
    margin-bottom: 0;
}

.document-content ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding-left: 22px;
    color: var(--gray-700);
}

.contact-list {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--gray-200);
}

.contact-list>div {
    display: grid;
    grid-template-columns: 190px 1fr;
    border-bottom: 1px solid var(--gray-200);
}

.contact-list dt,
.contact-list dd {
    margin: 0;
    padding: 15px 18px;
}

.contact-list dt {
    color: var(--navy-900);
    background: var(--gray-100);
    font-weight: 800;
}

.contact-list dd {
    color: var(--gray-700);
}

.contact-list a {
    color: var(--blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.document-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
}

.document-table {
    width: 100%;
    min-width: 480px;
    border-collapse: collapse;
}

.document-table th,
.document-table td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
}

.document-table th {
    color: var(--white);
    background: var(--navy-900);
}

.document-table tbody tr:last-child td {
    border-bottom: 0;
}

.document-table td:last-child {
    color: var(--blue-700);
    font-weight: 800;
}

@media (max-width: 720px) {
    .document-hero {
        padding: 62px 0;
    }

    .document-hero h1 {
        font-size: 34px;
    }

    .document-section {
        padding: 50px 0 76px;
    }

    .document-content {
        padding: 28px 22px;
    }

    .document-content article+article {
        margin-top: 40px;
        padding-top: 34px;
    }

    .document-content h2 {
        font-size: 21px;
    }

    .contact-list>div {
        grid-template-columns: 1fr;
    }

    .contact-list dt {
        padding-bottom: 7px;
        border-bottom: 0;
    }

    .contact-list dd {
        padding-top: 7px;
    }
}

.staff-login-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 80% 15%,
            rgba(37, 118, 200, 0.26),
            transparent 30%),
        linear-gradient(135deg, var(--navy-950), var(--navy-800));
}

.staff-login-page {
    display: flex;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.staff-login-card {
    width: min(100%, 470px);
    padding: 42px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    background: var(--white);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.staff-login-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--gray-200);
}

.staff-login-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.staff-login-brand span {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.staff-login-brand strong {
    color: var(--navy-900);
    font-size: 18px;
    letter-spacing: -0.04em;
}

.staff-login-brand small {
    margin-top: 3px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 600;
}

.staff-login-heading {
    margin-top: 32px;
    margin-bottom: 26px;
}

.staff-login-heading h1 {
    margin-bottom: 10px;
    color: var(--navy-900);
    font-size: 32px;
    letter-spacing: -0.04em;
}

.staff-login-heading>p:last-child {
    margin-bottom: 0;
    color: var(--gray-700);
    font-size: 14px;
}

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

.form-field {
    display: grid;
    gap: 8px;
}

.form-field label {
    color: var(--navy-900);
    font-size: 14px;
    font-weight: 800;
}

.form-field input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-900);
    background: var(--white);
    font: inherit;
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-field input:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 118, 200, 0.12);
}

.staff-login-button {
    min-height: 52px;
    margin-top: 4px;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--white);
    background: var(--blue-700);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.staff-login-button:hover {
    transform: translateY(-1px);
    background: var(--navy-800);
    box-shadow: var(--shadow-sm);
}

.form-error {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #efb0b5;
    border-radius: var(--radius-sm);
    color: #a82631;
    background: var(--red-100);
    font-size: 14px;
}

.form-error p,
.field-error {
    margin: 0;
}

.field-error {
    color: var(--red-600);
    font-size: 13px;
}

.staff-login-notice {
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

.staff-login-notice p {
    margin: 0;
    color: var(--gray-500);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 520px) {
    .staff-login-page {
        padding: 20px 14px;
    }

    .staff-login-card {
        padding: 30px 22px;
        border-radius: 20px;
    }

    .staff-login-brand img {
        width: 45px;
        height: 45px;
    }

    .staff-login-brand strong {
        font-size: 16px;
    }

    .staff-login-heading h1 {
        font-size: 28px;
    }
}

.staff-body {
    min-width: 320px;
    color: var(--gray-900);
    background: var(--gray-100);
}

.staff-layout {
    display: grid;
    min-height: 100vh;
    grid-template-columns: 250px minmax(0, 1fr);
}

.staff-sidebar {
    position: sticky;
    top: 0;
    display: flex;
    height: 100vh;
    flex-direction: column;
    padding: 24px 18px;
    color: #d9e6f1;
    background: var(--navy-950);
}

.staff-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 8px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.staff-sidebar-brand img {
    width: 45px;
    height: 45px;
    object-fit: contain;
}

.staff-sidebar-brand span {
    display: flex;
    flex-direction: column;
}

.staff-sidebar-brand strong {
    color: var(--white);
    font-size: 17px;
}

.staff-sidebar-brand small {
    margin-top: 2px;
    color: #9db2c5;
    font-size: 11px;
}

.staff-nav {
    display: grid;
    gap: 6px;
    margin-top: 26px;
}

.staff-nav a,
.staff-nav span {
    display: flex;
    min-height: 44px;
    align-items: center;
    padding: 10px 13px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 700;
}

.staff-nav a {
    color: #d9e6f1;
}

.staff-nav a.active {
    color: var(--white);
    background: var(--blue-700);
}

.staff-nav span {
    color: #70869a;
    cursor: default;
}

.staff-sidebar-footer {
    margin-top: auto;
    padding: 18px 8px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.staff-sidebar-footer a {
    color: #a9bed0;
    font-size: 13px;
}

.staff-sidebar-footer a:hover {
    color: var(--white);
}

.staff-main {
    min-width: 0;
}

.staff-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    display: flex;
    min-height: 74px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 14px 34px;
    border-bottom: 1px solid var(--gray-200);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
}

.staff-topbar>div:first-child {
    display: flex;
    flex-direction: column;
}

.staff-topbar strong {
    color: var(--navy-900);
    font-size: 15px;
}

.staff-topbar>div:first-child span {
    color: var(--gray-500);
    font-size: 11px;
}

.staff-account {
    display: flex;
    align-items: center;
    gap: 14px;
}

.staff-account>span {
    color: var(--gray-700);
    font-size: 13px;
    font-weight: 700;
}

.staff-account form {
    margin: 0;
}

.staff-account button {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    color: var(--gray-700);
    background: var(--white);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.staff-account button:hover {
    color: var(--red-600);
    border-color: #e6aab0;
    background: var(--red-100);
}

.staff-content {
    padding: 38px 34px 60px;
}

.staff-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 30px;
}

.staff-page-heading h1 {
    margin-bottom: 10px;
    color: var(--navy-900);
    font-size: 32px;
    letter-spacing: -0.04em;
}

.staff-page-heading p:last-child {
    margin-bottom: 0;
    color: var(--gray-700);
}

.staff-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.staff-stat-card {
    padding: 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.staff-stat-card>span {
    display: block;
    color: var(--gray-700);
    font-size: 14px;
    font-weight: 700;
}

.staff-stat-card strong {
    display: block;
    margin: 10px 0 4px;
    color: var(--navy-900);
    font-size: 36px;
    line-height: 1;
}

.staff-stat-card small {
    color: var(--gray-500);
    font-size: 12px;
}

.staff-stat-card.urgent {
    border-color: #f0b5ba;
    background: var(--red-100);
}

.staff-stat-card.urgent strong {
    color: var(--red-600);
}

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

.staff-panel {
    padding: 26px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.staff-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.staff-panel-heading h2 {
    margin-bottom: 5px;
    color: var(--navy-900);
    font-size: 19px;
}

.staff-panel-heading p {
    margin: 0;
    color: var(--gray-500);
    font-size: 12px;
}

.staff-badge {
    display: inline-flex;
    min-width: 42px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    color: var(--blue-700);
    background: var(--blue-100);
    font-size: 12px;
    font-weight: 800;
}

.staff-empty {
    padding: 52px 18px;
    color: var(--gray-500);
    text-align: center;
}

.staff-empty.compact {
    padding: 36px 18px;
}

.staff-empty strong {
    display: block;
    margin-bottom: 7px;
    color: var(--gray-700);
    font-size: 14px;
}

.staff-empty p {
    margin: 0;
    font-size: 12px;
}

@media (max-width: 1100px) {
    .staff-stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .staff-layout {
        display: block;
    }

    .staff-sidebar {
        position: static;
        height: auto;
        padding: 14px;
    }

    .staff-sidebar-brand {
        padding: 2px 6px 14px;
    }

    .staff-nav {
        display: flex;
        overflow-x: auto;
        margin-top: 14px;
        padding-bottom: 3px;
    }

    .staff-nav a,
    .staff-nav span {
        min-width: max-content;
    }

    .staff-sidebar-footer {
        display: none;
    }

    .staff-topbar {
        padding: 12px 20px;
    }

    .staff-content {
        padding: 30px 20px 50px;
    }
}

@media (max-width: 650px) {

    .staff-topbar>div:first-child span,
    .staff-account>span {
        display: none;
    }

    .staff-topbar strong {
        font-size: 13px;
    }

    .staff-content {
        padding-right: 14px;
        padding-left: 14px;
    }

    .staff-page-heading h1 {
        font-size: 28px;
    }

    .staff-stat-grid,
    .staff-panel-grid {
        grid-template-columns: 1fr;
    }
}

.staff-message-list {
    display: grid;
    gap: 10px;
    margin-bottom: 22px;
}

.staff-message {
    padding: 14px 17px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    color: var(--gray-700);
    background: var(--white);
    font-size: 14px;
    font-weight: 700;
}

.staff-message.success {
    color: var(--green-600);
    border-color: #bde3d3;
    background: var(--green-100);
}

.staff-message.error {
    color: var(--red-600);
    border-color: #efb0b5;
    background: var(--red-100);
}

.staff-heading-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.staff-primary-button,
.staff-secondary-button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 800;
}

.staff-primary-button {
    color: var(--white);
    background: var(--blue-700);
}

.staff-primary-button:hover {
    background: var(--navy-800);
}

.staff-secondary-button {
    color: var(--gray-700);
    border-color: var(--gray-300);
    background: var(--white);
}

.staff-secondary-button:hover {
    border-color: var(--blue-600);
    color: var(--blue-700);
}

.staff-filter-panel,
.staff-table-panel,
.staff-form-section,
.staff-detail-panel {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.staff-filter-panel {
    margin-bottom: 20px;
    padding: 22px;
}

.staff-filter-form {
    display: grid;
    grid-template-columns: minmax(280px, 1fr) 200px auto;
    gap: 14px;
    align-items: end;
}

.staff-search-field,
.staff-select-field {
    display: grid;
    gap: 7px;
}

.staff-search-field label,
.staff-select-field label {
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 800;
}

.staff-search-field input,
.staff-select-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 9px;
    color: var(--gray-900);
    background: var(--white);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.staff-search-field input:focus,
.staff-select-field select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 118, 200, 0.1);
}

.staff-filter-actions {
    display: flex;
    gap: 8px;
}

.staff-filter-actions button,
.staff-filter-actions a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
}

.staff-filter-actions button {
    border: 0;
    color: var(--white);
    background: var(--blue-700);
    cursor: pointer;
}

.staff-filter-actions a {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
}

.staff-table-panel {
    overflow: hidden;
}

.staff-table-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px;
    border-bottom: 1px solid var(--gray-200);
}

.staff-table-heading h2 {
    margin-bottom: 4px;
    color: var(--navy-900);
    font-size: 19px;
}

.staff-table-heading p {
    margin: 0;
    color: var(--gray-500);
    font-size: 12px;
}

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

.staff-table {
    width: 100%;
    min-width: 1050px;
    border-collapse: collapse;
}

.staff-table th,
.staff-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: middle;
}

.staff-table th {
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 12px;
    font-weight: 800;
}

.staff-table td {
    color: var(--gray-700);
    font-size: 13px;
}

.staff-table tbody tr:last-child td {
    border-bottom: 0;
}

.staff-table tbody tr:hover {
    background: #f9fbfd;
}

.table-code-link {
    color: var(--blue-700);
    font-weight: 800;
}

.table-name-link {
    color: var(--navy-900);
    font-weight: 800;
}

.nowrap {
    white-space: nowrap;
}

.company-status {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.status-inquiry {
    color: var(--blue-700);
    background: var(--blue-100);
}

.status-active {
    color: var(--green-600);
    background: var(--green-100);
}

.status-suspended {
    color: var(--orange-600);
    background: var(--orange-100);
}

.status-ended {
    color: var(--gray-700);
    background: var(--gray-200);
}

.staff-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 18px;
    border-top: 1px solid var(--gray-200);
    color: var(--gray-700);
    font-size: 13px;
}

.staff-pagination a {
    padding: 7px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background: var(--white);
    font-weight: 700;
}

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

.staff-form-section {
    padding: 28px;
}

.staff-form-heading {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gray-200);
}

.staff-form-heading h2 {
    margin-bottom: 5px;
    color: var(--navy-900);
    font-size: 20px;
}

.staff-form-heading p {
    margin: 0;
    color: var(--gray-500);
    font-size: 13px;
}

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

.staff-form-grid .span-2 {
    grid-column: span 2;
}

.staff-data-form .form-field input,
.staff-data-form .form-field select,
.staff-data-form .form-field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--gray-300);
    border-radius: 9px;
    color: var(--gray-900);
    background: var(--white);
    font: inherit;
    font-size: 14px;
    outline: none;
}

.staff-data-form .form-field input,
.staff-data-form .form-field select {
    min-height: 48px;
}

.staff-data-form .form-field textarea {
    min-height: 130px;
    resize: vertical;
}

.staff-data-form .form-field input:focus,
.staff-data-form .form-field select:focus,
.staff-data-form .form-field textarea:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 118, 200, 0.1);
}

.staff-data-form .form-field small {
    color: var(--gray-500);
    font-size: 11px;
}

.required {
    color: var(--red-600);
}

.staff-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 8px 0 20px;
}

.staff-form-actions a,
.staff-form-actions button {
    display: inline-flex;
    min-width: 120px;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 9px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.staff-form-actions a {
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    background: var(--white);
}

.staff-form-actions button {
    border: 0;
    color: var(--white);
    background: var(--blue-700);
    cursor: pointer;
}

.company-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.company-summary-card {
    padding: 22px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.company-summary-card>span {
    display: block;
    margin-bottom: 9px;
    color: var(--gray-500);
    font-size: 12px;
    font-weight: 700;
}

.company-summary-card>strong {
    color: var(--navy-900);
    font-size: 17px;
}

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

.staff-detail-panel {
    margin-bottom: 18px;
    padding: 26px;
}

.staff-detail-grid .staff-detail-panel {
    margin-bottom: 0;
}

.staff-detail-list {
    margin: 0;
}

.staff-detail-list>div {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    border-bottom: 1px solid var(--gray-200);
}

.staff-detail-list>div:last-child {
    border-bottom: 0;
}

.staff-detail-list dt,
.staff-detail-list dd {
    margin: 0;
    padding: 15px 12px;
    font-size: 13px;
}

.staff-detail-list dt {
    color: var(--gray-500);
    font-weight: 800;
}

.staff-detail-list dd {
    color: var(--gray-900);
    overflow-wrap: anywhere;
}

.staff-detail-list a {
    color: var(--blue-700);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.memo-content {
    line-height: 1.8;
}

@media (max-width: 1100px) {
    .company-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .staff-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-filter-form {
        grid-template-columns: 1fr;
    }

    .staff-filter-actions {
        justify-content: flex-end;
    }

    .staff-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .staff-page-heading .staff-primary-button,
    .staff-heading-actions {
        width: 100%;
    }

    .staff-heading-actions a {
        flex: 1;
    }

    .staff-form-section,
    .staff-detail-panel {
        padding: 21px 17px;
    }

    .staff-form-grid {
        grid-template-columns: 1fr;
    }

    .staff-form-grid .span-2 {
        grid-column: auto;
    }

    .staff-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .staff-form-actions a,
    .staff-form-actions button {
        min-width: 0;
        width: 100%;
    }

    .company-summary-grid {
        grid-template-columns: 1fr;
    }

    .staff-detail-list>div {
        grid-template-columns: 1fr;
    }

    .staff-detail-list dt {
        padding-bottom: 4px;
    }

    .staff-detail-list dd {
        padding-top: 4px;
    }
}

/* Membership and foreign-worker management lists */

.staff-list-panel {
    display: grid;
    gap: 18px;
}

.staff-list-panel .staff-filter-form {
    grid-template-columns:
        minmax(300px, 1fr) repeat(3, minmax(140px, 180px)) auto;
    padding: 22px 24px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.staff-list-panel .guidance-filter-form {
    grid-template-columns:
        minmax(260px, 1fr) repeat(4, minmax(120px, 170px)) auto;
}

@media (min-width: 1201px) {
    .staff-list-panel .visa-referral-filter-form {
        display: flex;
        flex-wrap: nowrap;
        align-items: end;
    }

    .visa-referral-filter-form .staff-search-field {
        flex: 1 1 260px;
        min-width: 180px;
    }

    .visa-referral-filter-form .staff-filter-field {
        flex: 0 1 135px;
        min-width: 90px;
    }

    .visa-referral-filter-form .staff-filter-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        white-space: nowrap;
    }
}

.staff-filter-field {
    display: grid;
    gap: 7px;
}

.staff-filter-field label {
    color: var(--navy-900);
    font-size: 13px;
    font-weight: 800;
}

.staff-filter-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 9px;
    color: var(--gray-900);
    background: var(--white);
    outline: none;
}

.staff-filter-field select:focus {
    border-color: var(--blue-600);
    box-shadow: 0 0 0 4px rgba(37, 118, 200, 0.1);
}

.staff-list-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.staff-list-summary p {
    margin: 0;
    color: var(--gray-600);
    font-size: 14px;
}

.staff-list-summary strong {
    color: var(--navy-900);
}

.staff-data-table {
    width: 100%;
    min-width: 1000px;
    border-collapse: collapse;
    background: var(--white);
}

.staff-data-table th,
.staff-data-table td {
    padding: 15px 17px;
    border-bottom: 1px solid var(--gray-200);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

.staff-data-table th {
    color: var(--gray-700);
    background: var(--gray-100);
    font-size: 12px;
    font-weight: 800;
}

.staff-data-table td {
    color: var(--gray-700);
    font-size: 13px;
}

.staff-data-table td strong,
.staff-data-table td small {
    display: block;
}

.staff-data-table td small {
    margin-top: 4px;
    color: var(--gray-500);
    font-size: 11px;
}

.staff-data-table tbody tr:last-child td {
    border-bottom: 0;
}

.staff-data-table tbody tr:hover {
    background: #f9fbfd;
}

.staff-empty-cell {
    padding: 36px 20px !important;
    color: var(--gray-500) !important;
    text-align: center !important;
}

.table-primary-link {
    color: var(--blue-700);
    font-weight: 800;
}

@media (max-width: 1200px) {
    .staff-list-panel .staff-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-search-field {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    .staff-list-panel .staff-filter-form {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .staff-search-field {
        grid-column: auto;
    }

    .staff-filter-actions {
        justify-content: flex-end;
    }

    .staff-data-table th,
    .staff-data-table td {
        padding: 13px 14px;
    }
}

.expiry-summary-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.expiry-summary-link:hover {
    transform: translateY(-2px);
    border-color: var(--blue-600);
    box-shadow: 0 12px 28px rgba(15, 51, 87, 0.12);
}

.expiry-summary-link small {
    color: var(--blue-700);
    font-size: 11px;
    font-weight: 800;
}

/* Dashboard detail lists */
.dashboard-expiry-list {
    display: grid;
    margin-top: 18px;
    border-top: 1px solid var(--gray-200);
}

.dashboard-expiry-item {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    color: inherit;
    text-decoration: none;
    transition:
        color 0.18s ease,
        background-color 0.18s ease;
}

.dashboard-expiry-item:hover {
    color: var(--blue-700);
    background: rgba(37, 118, 200, 0.035);
}

.dashboard-expiry-item>div {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.dashboard-expiry-item>div strong {
    overflow: hidden;
    color: var(--navy-900);
    font-size: 15px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-expiry-item>div small {
    overflow: hidden;
    color: var(--gray-600);
    font-size: 13px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-expiry-item>span {
    flex: 0 0 auto;
    min-width: 105px;
    padding: 7px 10px;
    border-radius: 8px;
    color: var(--navy-900);
    background: var(--gray-100);
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.dashboard-panel-link {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: 14px;
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.dashboard-panel-link::after {
    margin-left: 6px;
    content: "→";
}

.dashboard-panel-link:hover {
    text-decoration: underline;
}

@media (max-width: 720px) {
    .dashboard-expiry-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .dashboard-expiry-item>div strong,
    .dashboard-expiry-item>div small {
        white-space: normal;
    }

    .dashboard-expiry-item>span {
        min-width: 0;
        text-align: left;
    }
}