/* static/style.css - 平安云枢全站样式 */

:root {
    --page-bg: #f3f6f9;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --ink: #1f2933;
    --muted: #667085;
    --line: #d9e1ea;
    --line-soft: #edf1f5;
    --primary: #004ca2;
    --primary-dark: #003f87;
    --primary-soft: #eaf3fb;
    --accent: #fa7c15;
    --success: #218c5f;
    --warning: #d96b0b;
    --danger: #c2413a;
    --info: #2788c9;
    --shadow: 0 8px 24px rgba(15, 23, 42, .08);
}

* {
    letter-spacing: 0;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    background: var(--page-bg);
    color: var(--ink);
    font-family: "Microsoft YaHei", "微软雅黑", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
}

.auth-body {
    background: #eef3f8;
}

.app-main {
    width: min(100%, 1560px);
    margin: 0 auto;
    padding: 18px 22px 28px;
}

.app-footer {
    text-align: center;
    padding: 12px 8px 18px;
    color: #8a98a8;
    font-size: .75rem;
}

.app-flash-stack {
    position: fixed;
    z-index: 1045;
    top: 50%;
    left: 50%;
    display: grid;
    width: min(520px, calc(100vw - 32px));
    gap: 10px;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.app-flash-stack .alert {
    margin: 0;
    border-width: 1px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, .22);
    pointer-events: auto;
}

.global-confirm-modal .modal-content {
    border: 0;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .24);
}

.global-confirm-modal .modal-body {
    white-space: pre-line;
}

.project-edit-dialog.modal-dialog-scrollable {
    height: calc(100dvh - 2rem);
    max-height: calc(100dvh - 2rem);
}

.project-edit-dialog .modal-content,
.project-edit-dialog .modal-content > form {
    min-height: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-edit-dialog .modal-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.project-edit-dialog .modal-header,
.project-edit-dialog .modal-footer {
    flex: 0 0 auto;
}

@media (max-width: 991.98px) {
    .project-edit-dialog.modal-fullscreen-lg-down {
        margin: 0;
        height: 100dvh;
        max-height: 100dvh;
    }
}

.app-navbar {
    background: #fff;
    border-bottom: 3px solid var(--accent);
    box-shadow: 0 6px 20px rgba(22, 48, 77, .12);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.06rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: .72rem;
    min-height: 42px;
    color: var(--primary-dark);
    white-space: nowrap;
}

.brand-lockup:hover,
.brand-lockup:focus {
    color: var(--primary);
    text-decoration: none;
}

.brand-mark {
    width: 138px;
    height: 42px;
    flex: 0 0 auto;
    object-fit: contain;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.login-brand {
    color: var(--muted);
    background: #fff;
}

.login-brand h3 {
    color: var(--primary-dark);
}

.login-brand-mark {
    display: block;
    width: min(280px, 88%);
    height: 100px;
    object-fit: contain;
    margin: 0 auto .65rem;
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.navbar .nav-link {
    border-radius: 6px;
    margin: 0 1px;
    padding: .48rem .62rem;
    color: #415466;
}

.navbar .nav-link:hover,
.navbar .nav-link:focus,
.navbar .dropdown.show > .nav-link {
    background: var(--primary-soft);
    color: var(--primary-dark);
    text-decoration: none;
}

.navbar-text {
    font-size: .9rem;
}

.project-action-bar {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: flex-start;
    gap: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.project-action-title {
    align-self: stretch;
    display: flex;
    align-items: center;
    padding: 14px;
    background: #f4f8fb;
    border-right: 1px solid var(--line-soft);
    font-weight: 700;
    color: var(--primary-dark);
}

.project-action-buttons,
.project-action-groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.project-action-groups { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.project-action-group { min-width: 0; padding: 12px 14px; border-right: 1px solid #d7e0e7; }
.project-action-group:last-child { border-right: 0; }
.project-action-group > span { display: block; margin-bottom: 8px; color: #667788; font-size: .75rem; font-weight: 700; }
.project-action-group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.project-action-group .btn { white-space: nowrap; }

.project-overview-card .card-body { padding: 1.25rem; }
.project-overview-title { font-size: clamp(1.25rem, 2vw, 1.7rem); }
.project-current-card .card-header { background: #fff8e9; }
.project-current-item { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 16px; }
.project-current-item:hover { background: #f7fbfe; }
.project-current-item strong, .project-current-item small { display: block; }
.project-current-item small { margin-top: 2px; color: var(--muted); }
.project-current-deadline { font-size: .8rem; font-weight: 700; color: #67798a; }
.project-current-deadline.is-urgent { color: var(--danger); }

.dashboard-title { margin-bottom: .2rem; }
.dashboard-scope { margin-bottom: 1rem !important; }
.dashboard-metrics .stat-card { min-height: 104px; }
.dashboard-focus {
    overflow: hidden;
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
}

.dashboard-focus-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--line-soft);
    background: #f7fbfe;
}

.dashboard-focus-header strong,
.dashboard-focus-header small,
.dashboard-focus-item strong,
.dashboard-focus-item small { display: block; }
.dashboard-focus-header small,
.dashboard-focus-item small { margin-top: 2px; color: var(--muted); }
.dashboard-focus-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dashboard-focus-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 76px;
    padding: 11px 14px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    color: inherit;
    text-decoration: none;
}

.dashboard-focus-item:nth-child(3n) { border-right: 0; }
.dashboard-focus-item:hover { color: inherit; background: #f5faff; text-decoration: none; }
.dashboard-focus-date { color: #6b7b89; font-size: .78rem; font-weight: 700; }
.dashboard-focus-date.is-urgent { color: var(--danger); }
.dashboard-focus-empty { padding: 22px; color: var(--muted); text-align: center; }
.dashboard-priority .card-header { display: flex; align-items: center; gap: 8px; }
.dashboard-class-workbench .card-header { display: flex; align-items: center; gap: 8px; }
.dashboard-personal-updates .nav-tabs { gap: 4px; overflow-x: auto; flex-wrap: nowrap; }
.dashboard-personal-updates .nav-link { white-space: nowrap; }
.dashboard-personal-updates .list-group-item { border-left: 0; border-right: 0; }
.dashboard-personal-updates .list-group-item strong { display: inline-block; max-width: min(72vw, 680px); overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }

.project-action-buttons .btn {
    white-space: nowrap;
}

.special-op-menu {
    position: relative;
}

.special-op-menu > summary {
    list-style: none;
    white-space: nowrap;
}

.special-op-menu > summary::-webkit-details-marker {
    display: none;
}

.special-op-menu[open] > summary {
    margin-bottom: 5px;
}

.special-op-menu-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    min-width: 108px;
}

.workflow-card {
    border-color: #cfd9e4;
    overflow: hidden;
}

.workflow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
}

.workflow-heading,
.workflow-phase-label {
    display: flex;
    align-items: center;
}

.workflow-heading {
    gap: 9px;
}

.workflow-heading-icon {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: var(--primary);
    color: #fff;
    font-weight: 800;
}

.workflow-heading strong,
.workflow-heading small {
    display: block;
}

.workflow-heading small {
    margin-top: 1px;
    color: var(--muted);
    font-size: .75rem;
}

.workflow-toolbar {
    display: inline-flex;
    align-items: stretch;
    flex-wrap: wrap;
    overflow: hidden;
    border: 1px solid #cbd6e0;
    border-radius: 5px;
    background: #fff;
}

.workflow-toolbar form {
    display: flex;
}

.workflow-tool {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    padding: 5px 10px;
    border: 0;
    border-right: 1px solid #d8e0e8;
    background: #fff;
    color: #34495d;
    font-size: .79rem;
    text-decoration: none;
    white-space: nowrap;
}

.workflow-toolbar > :last-child,
.workflow-toolbar > :last-child .workflow-tool {
    border-right: 0;
}

.workflow-tool:hover,
.workflow-tool:focus {
    background: var(--primary-soft);
    color: var(--primary-dark);
    text-decoration: none;
}

.workflow-tool b {
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #dde9f4;
    font-size: .7rem;
}

.workflow-table {
    min-width: 1040px;
}

.workflow-table > thead > tr > th {
    padding: 10px 9px;
    background: #f3f6f9;
    color: #516173;
    font-size: .78rem;
    white-space: nowrap;
}

.workflow-table > tbody > .task-row > td {
    padding: 10px 9px;
    vertical-align: middle;
}

.workflow-table > thead th:first-child,
.workflow-table > tbody > .task-row > td:first-child {
    width: 54px;
    text-align: center;
}

.workflow-table > thead th:nth-child(3) {
    width: 135px;
}

.workflow-table > thead th:nth-child(4) {
    width: 135px;
}

.workflow-table > thead th:nth-child(5) {
    width: 185px;
}

.workflow-table > thead th:nth-child(6) {
    width: 100px;
}

.workflow-table > thead th:nth-child(7) {
    width: 156px;
}

.workflow-task-name,
.workflow-task-link {
    color: #26394b;
    font-weight: 600;
}

.workflow-task-link {
    color: var(--primary-dark);
    text-decoration: none;
}

.workflow-task-link:hover {
    color: var(--primary);
    text-decoration: underline;
}

.workflow-task-name[title] {
    cursor: help;
    border-bottom: 1px dotted #9ba8b5;
}

.workflow-resource-list,
.workflow-row-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px;
}

.workflow-resource-list:empty::after {
    content: "-";
    color: #a3aeb9;
}

.workflow-file-link,
.workflow-context-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #36536e;
    font-size: .76rem;
    line-height: 1.3;
    text-decoration: none;
}

.workflow-file-link {
    color: #657585;
}

.workflow-context-link::before {
    content: "›";
    color: var(--primary);
    font-size: 1rem;
    font-weight: 800;
    line-height: .8;
}

.workflow-file-link:hover,
.workflow-context-link:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.workflow-primary-action,
.workflow-secondary-action,
.workflow-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    border-radius: 4px;
    font-size: .77rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.workflow-primary-action {
    min-width: 72px;
    padding: 6px 10px;
    border: 1px solid var(--primary);
    background: var(--primary);
    color: #fff;
}

.workflow-primary-action:hover,
.workflow-primary-action:focus {
    border-color: var(--primary-dark);
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
}

.workflow-secondary-action {
    padding: 6px 9px;
    border: 1px solid #b7c4cf;
    background: #fff;
    color: #46596a;
}

.workflow-secondary-action:hover,
.workflow-secondary-action:focus {
    border-color: #8ca0b1;
    background: #f4f7f9;
    color: #26394b;
}

.workflow-icon-button {
    width: 30px;
    padding: 0;
    border: 1px solid #bdc9d3;
    background: #fff;
    color: #536575;
    font-size: .95rem;
}

.workflow-icon-button:hover,
.workflow-icon-button:focus {
    border-color: #8396a7;
    background: #f3f6f8;
    color: #243746;
}

.workflow-icon-danger {
    border-color: #e3b4b0;
    color: var(--danger);
}

.workflow-primary-action.disabled,
.workflow-icon-button.disabled,
.workflow-icon-button:disabled {
    pointer-events: none;
    opacity: .45;
}

.workflow-action-note {
    flex-basis: 100%;
    color: var(--muted);
    font-size: .7rem;
}

.workflow-row-actions form {
    display: inline-flex;
    margin: 0;
}

.dashboard-task-actions { min-width: 196px; white-space: nowrap; }
.dashboard-task-actions > .btn,
.dashboard-task-actions > form,
.dashboard-task-actions > .task-action-more { display: inline-flex; vertical-align: middle; margin: 0 3px 0 0; }
.task-action-more { position: relative; }
.task-action-more summary { list-style: none; cursor: pointer; padding: 4px 7px; border: 1px solid #b7c4cf; border-radius: .25rem; color: #526475; background: #fff; font-size: .78rem; line-height: 1.45; }
.task-action-more summary::-webkit-details-marker { display: none; }
.task-action-more summary::after { content: ' ▾'; }
.task-action-menu { position: absolute; z-index: 20; top: calc(100% + 3px); right: 0; min-width: 104px; padding: 4px; border: 1px solid #ccd6de; border-radius: .3rem; background: #fff; box-shadow: 0 4px 12px rgba(31, 52, 72, .16); }
.task-action-menu a,
.task-action-menu button { display: block; width: 100%; padding: 5px 7px; border: 0; border-radius: .2rem; background: transparent; color: #3d5163; font-size: .78rem; text-align: left; text-decoration: none; }
.task-action-menu a:hover,
.task-action-menu button:hover { background: #edf4f8; color: var(--primary-dark); }

.workflow-reject summary {
    list-style: none;
    cursor: pointer;
}

.workflow-reject summary::-webkit-details-marker {
    display: none;
}

.workflow-reject[open] {
    flex-basis: 100%;
}

.workflow-reject form {
    display: block;
    margin-top: 6px;
    padding: 8px;
    border: 1px solid var(--line);
    background: #fff;
}

.workflow-phase-row > td {
    padding: 7px 10px !important;
    border-top: 1px solid #d6e0e9;
    border-bottom: 1px solid #d6e0e9;
    background: #edf4fa;
}

.workflow-phase-label {
    gap: 9px;
}

.workflow-phase-number {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: .72rem;
    font-weight: 800;
}

.workflow-phase-progress {
    margin-left: auto;
    color: #526272;
    font-size: .78rem;
}

.workflow-phase-training > td {
    background: #eef7f2;
}

.workflow-phase-training .workflow-phase-number {
    background: var(--success);
}

.workflow-phase-exam > td {
    background: #fff5e9;
}

.workflow-phase-exam .workflow-phase-number {
    background: var(--warning);
}

.workflow-phase-archive > td,
.workflow-phase-other > td {
    background: #f3f1f8;
}

.workflow-phase-archive .workflow-phase-number,
.workflow-phase-other .workflow-phase-number {
    background: #6d5f86;
}

.attendance-role-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 1px;
    border-bottom: 1px solid var(--line);
}

.attendance-role-tab {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-bottom: 3px solid transparent;
    border-radius: 6px 6px 0 0;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
}

.attendance-role-tab:hover,
.attendance-role-tab:focus {
    border-color: #a9c4dd;
    color: var(--primary-dark);
    text-decoration: none;
}

.attendance-role-tab.active {
    border-color: #9bbbd8;
    border-bottom-color: var(--accent);
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.attendance-role-icon {
    font-size: 1.35rem;
}

.attendance-role-tab strong,
.attendance-role-tab small {
    display: block;
}

.attendance-role-tab small {
    margin-top: 2px;
    color: var(--muted);
    font-size: .75rem;
}

.attendance-role-notice {
    padding: 10px 12px;
    border-left: 3px solid var(--info);
    background: #eef6fb;
    color: #42576b;
}

/* 对外报名门户 */
.registration-body {
    background: #eef3f7;
}

.registration-header {
    border-bottom: 3px solid var(--accent);
    background: #fff;
    box-shadow: 0 4px 16px rgba(25, 46, 66, .08);
}

.registration-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(1180px, calc(100% - 64px));
    min-height: 68px;
    margin: 0 auto;
}

.registration-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.registration-brand img {
    width: 142px;
    height: 42px;
    object-fit: contain;
}

.registration-brand span {
    padding-left: 14px;
    border-left: 1px solid var(--line);
}

.registration-account-nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.registration-account-nav a {
    color: var(--primary-dark);
    text-decoration: none;
}

.registration-main {
    width: min(1180px, calc(100% - 64px));
    margin: 0 auto;
    padding: 28px 0 48px;
}

.registration-auth-shell {
    width: 100%;
    min-width: 0;
    max-width: 920px;
    margin: 24px auto 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.registration-auth-heading {
    padding: 24px 28px 18px;
    border-bottom: 1px solid var(--line);
}

.registration-auth-heading h1,
.registration-page-heading h1 {
    margin: 0;
    font-size: 1.55rem;
}

.registration-auth-heading p,
.registration-page-heading p {
    margin: 5px 0 0;
    color: var(--muted);
}

.registration-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    min-width: 0;
}

.registration-auth-grid.registration-progress-first-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, .75fr);
    align-items: start;
}

.registration-progress-primary-panel {
    order: 1;
}

.registration-credential-panel {
    order: 2;
}

.registration-credential-card {
    display: block;
    overflow: hidden;
    border: 1px solid #c8d8e9;
    border-radius: 15px;
    background: #f8fbff;
}

.registration-credential-card summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 17px;
    cursor: pointer;
    list-style: none;
    color: #173b63;
}

.registration-credential-card summary::-webkit-details-marker {
    display: none;
}

.registration-credential-card summary span {
    min-width: 0;
}

.registration-credential-card summary small,
.registration-credential-card summary strong {
    display: block;
}

.registration-credential-card summary small {
    margin-bottom: 3px;
    color: #65788c;
    font-weight: 700;
}

.registration-credential-card summary strong {
    letter-spacing: .09em;
    overflow-wrap: anywhere;
}

.registration-credential-card summary b {
    flex: 0 0 auto;
    font-size: .82rem;
    color: #0b5cab;
}

.registration-credential-card[open] summary {
    border-bottom: 1px solid #dbe6f2;
    background: #eef6ff;
}

.registration-credential-body {
    padding: 17px;
    color: #42566b;
}

.registration-auth-section {
    min-width: 0;
    padding: 26px 28px 30px;
}

.registration-auth-section + .registration-auth-section {
    border-left: 1px solid var(--line);
}

.registration-auth-section h2 {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.registration-body .btn,
.registration-auth-section .form-control,
.registration-auth-section .form-select {
    min-height: 44px;
}

.registration-segmented,
.registration-choice-row {
    display: flex;
    width: max-content;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid #bfcbd6;
    border-radius: 5px;
}

.registration-segmented label,
.registration-choice-row label {
    margin: 0;
    cursor: pointer;
}

.registration-segmented input,
.registration-choice-row input {
    position: absolute;
    opacity: 0;
}

.registration-segmented span,
.registration-choice-row span {
    display: block;
    min-width: 88px;
    padding: 8px 14px;
    border-right: 1px solid #cbd5de;
    text-align: center;
}

.registration-segmented label:last-child span,
.registration-choice-row label:last-child span {
    border-right: 0;
}

.registration-segmented input:checked + span,
.registration-choice-row input:checked + span {
    background: var(--primary);
    color: #fff;
}

.registration-auth-note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.registration-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.registration-back {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .82rem;
    text-decoration: none;
}

.registration-section,
.registration-form-section,
.registration-history-picker {
    margin-bottom: 18px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.registration-section {
    overflow: hidden;
}

.registration-section--padded {
    padding: 26px 28px;
}

.registration-section--padded > :last-child {
    margin-bottom: 0;
}

.registration-section--padded > form,
.registration-section--padded > p.text-muted,
.registration-section--padded > details,
.registration-section--padded > .small.text-muted {
    margin-right: 0;
    margin-left: 0;
}

.registration-section > p.text-muted,
.registration-section > form,
.registration-section > details,
.registration-section > .small.text-muted {
    margin-right: 16px;
    margin-left: 16px;
}

.registration-section > form {
    margin-top: 16px;
    margin-bottom: 16px;
}

.registration-section > .row {
    margin-right: 0;
    margin-left: 0;
    padding: 16px;
}

.registration-auth-shell--portal {
    max-width: 1040px;
}

.registration-login-switch {
    display: flex;
    gap: 10px;
    padding: 18px 28px 0;
}

.registration-login-switch__item {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid #c8d8e9;
    border-radius: 6px;
    color: #17466f;
    background: #f6f9fd;
    font-weight: 700;
    text-decoration: none;
}

.registration-login-switch__item:hover,
.registration-login-switch__item:focus-visible {
    color: #0a58ca;
    border-color: #0a58ca;
}

.registration-login-switch__item.is-active {
    color: #fff;
    border-color: #0a58ca;
    background: #0a58ca;
}

.registration-login-page .registration-support {
    position: relative;
    right: auto !important;
    bottom: auto !important;
    width: max-content;
    margin: 0 auto 18px;
}

.registration-emergency-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .85fr);
    min-width: 0;
}

.registration-emergency-note {
    padding: 28px;
    border-left: 1px solid var(--line);
    background: #f8fbff;
    color: #42566b;
}

.registration-emergency-note h2 { margin: 0 0 16px; font-size: 1.05rem; color: #173b63; }
.registration-emergency-note ul { margin-bottom: 0; padding-left: 1.25rem; line-height: 1.85; }

.registration-auth-alert {
    margin: 18px 28px 0;
}

.registration-print-code-entry {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 18px 28px 0;
}

.portal-inline-status {
    margin: -4px 0 14px;
    padding: 10px 12px;
    border-left: 4px solid;
    border-radius: 4px;
    font-size: .84rem;
    line-height: 1.55;
}

.portal-inline-status.success { border-color: #198754; background: #edf8f2; color: #17613f; }
.portal-inline-status.danger { border-color: #b42318; background: #fff1f0; color: #912018; }

.public-portal-contact {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 24px;
    align-items: center;
    padding: 24px 28px;
    border-top: 1px solid var(--line);
    background: #f7fafc;
}

.public-portal-contact img {
    width: 132px;
    height: 132px;
    padding: 5px;
    border: 1px solid var(--line);
    background: #fff;
    object-fit: contain;
}

.public-portal-contact strong { color: var(--primary-dark); font-size: 1.08rem; }
.public-portal-contact p { margin: 5px 0 10px; color: var(--muted); }
.public-portal-contact dl { display: grid; gap: 5px; margin: 0; }
.public-portal-contact dl div { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 8px; }
.public-portal-contact dt { color: var(--muted); font-weight: 600; }
.public-portal-contact dd { margin: 0; color: #263d50; }

.registration-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}

.registration-section-header h2 {
    margin: 0;
    font-size: 1rem;
}

.registration-section-header span {
    color: var(--muted);
    font-size: .8rem;
}

.registration-project-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft);
}

.registration-project-row:last-child {
    border-bottom: 0;
}

.registration-project-row strong,
.registration-project-row span {
    display: block;
}

.registration-project-row span {
    margin-top: 3px;
    color: var(--muted);
    font-size: .8rem;
}

.registration-empty {
    padding: 28px !important;
    color: var(--muted);
    text-align: center;
}

.registration-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 5px;
}

.registration-actions form {
    margin: 0;
}

.registration-upload-inline input {
    display: none;
}

.registration-status {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    background: #e8edf2;
    color: #405263;
    font-size: .75rem;
    white-space: nowrap;
}

.status-submitted { background: #fff0d8; color: #8a4c08; }
.status-approved { background: #dff2e8; color: #176846; }
.status-rejected { background: #f9e2e1; color: #973b36; }
.status-awaiting_signature { background: #e4eef8; color: #275d89; }
.status-released { background: #eee9f6; color: #624c7b; }

.registration-history-picker {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
}

.registration-history-picker label {
    font-weight: 600;
}

.registration-form-section {
    padding: 22px;
}

.registration-form-section-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
}

.registration-form-section-title > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 5px;
    background: var(--primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
}

.registration-form-section-title h2 {
    margin: 0;
    font-size: 1.05rem;
}

.registration-form-section-title p {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: .78rem;
}

.registration-form-actions {
    position: sticky;
    bottom: 0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 16px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 -5px 18px rgba(24, 44, 64, .08);
}

.registration-form-actions .btn {
    flex: 1 1 0;
    min-height: 48px;
    white-space: normal;
}

.registration-save-retry { width: 100%; min-height: 46px; }
.quick-project-choice { padding: 16px 18px; white-space: normal; }
.quick-project-details { color: #40566b; }
.quick-project-location { padding: 8px 10px; border-left: 4px solid var(--primary); border-radius: 4px; background: #eef6ff; color: #173d63; font-size: .95rem; font-weight: 700; }
.quick-project-location span { color: #b13a20; }
.quick-credential-card { display: grid; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 20px; border: 2px solid var(--primary); background: #eef6ff; }
.quick-credential-label,.quick-credential-card p { display: block; color: #40566b; }
.quick-credential-card strong { display: block; margin: 4px 0 8px; color: var(--primary); font-size: clamp(2rem, 7vw, 3rem); letter-spacing: .16em; }
.quick-credential-card img { width: 132px; height: 132px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
@media (max-width: 520px) { .quick-credential-card { grid-template-columns: 1fr; } .quick-credential-card img { width: 112px; height: 112px; } }
@media (max-width: 350px) { .registration-form-actions { grid-template-columns: 1fr; } }

.registration-review-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.registration-review-filters a {
    padding: 6px 10px;
    border-radius: 4px;
    color: #4c5f70;
    text-decoration: none;
}

.registration-review-filters a.active {
    background: var(--primary);
    color: #fff;
}

.registration-review-data {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.registration-review-data > div {
    display: grid;
    grid-template-columns: 130px 1fr;
    min-height: 48px;
    border-bottom: 1px solid var(--line-soft);
}

.registration-review-data dt,
.registration-review-data dd {
    margin: 0;
    padding: 10px 12px;
}

.registration-review-data dt {
    background: #f6f8fa;
    color: #566879;
    font-weight: 500;
}

.dropdown-menu {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: .35rem;
}

.dropdown-item {
    border-radius: 6px;
    padding: .52rem .7rem;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    color: #17212b;
    font-weight: 700;
}

h4 {
    margin-bottom: 1rem;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

.card {
    border: 1px solid var(--line-soft);
    border-radius: 8px;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    overflow: hidden;
}

.card-header {
    background: #f9fbfc;
    color: #22313f;
    border-bottom: 1px solid var(--line-soft);
    border-radius: 0 !important;
    font-weight: 700;
    padding: .78rem 1rem;
}

.card-header.bg-primary,
.card-header.bg-success,
.card-header.bg-warning,
.card-header.bg-info,
.card-header.bg-danger {
    color: #fff !important;
}

.card-header.bg-primary { background: var(--primary) !important; }
.card-header.bg-success { background: var(--success) !important; }
.card-header.bg-warning { background: #d59a2f !important; color: #1f2933 !important; }
.card-header.bg-info { background: var(--info) !important; }
.card-header.bg-danger { background: var(--danger) !important; }

.card-body {
    background: var(--surface);
}

.stat-card {
    position: relative;
    min-height: 120px;
    padding: 1.25rem;
    border-radius: 8px;
    color: #17212b;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.stat-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 6px;
    background: var(--primary);
}

.stat-card h3 {
    position: relative;
    font-size: 2.25rem;
    font-weight: 800;
    margin: 0;
}

.stat-card p {
    position: relative;
    color: var(--muted);
    font-size: .94rem;
    margin: .28rem 0 0;
}

.stat-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.stat-card-link:hover,
.stat-card-link:focus-visible {
    color: inherit;
    border-color: #91a8ba;
    box-shadow: 0 8px 20px rgba(37, 68, 94, .16);
    outline: 0;
    transform: translateY(-2px);
}

.metric-number-link {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
}

.metric-number-link:hover,
.metric-number-link:focus-visible {
    text-decoration: underline;
}

.project-stat-link {
    display: block;
    height: 100%;
    padding: .5rem;
    border: 1px solid var(--line-soft);
    border-radius: .375rem;
    background: var(--surface-soft);
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.project-stat-link:hover,
.project-stat-link:focus-visible {
    color: inherit;
    border-color: #91a8ba;
    box-shadow: 0 4px 12px rgba(37, 68, 94, .14);
    outline: 0;
    transform: translateY(-1px);
}

.stat-pending::before { background: var(--warning); }
.stat-completed::before { background: var(--success); }
.stat-delayed::before { background: #9d6bcb; }
.stat-overdue::before { background: var(--danger); }
.stat-total::before { background: var(--info); }

.table-responsive {
    border-radius: 8px;
}

.table {
    margin-bottom: 0;
    vertical-align: middle;
}

.table th {
    background: #f4f7fa;
    color: #344054;
    font-weight: 700;
    white-space: nowrap;
    border-bottom-color: var(--line);
}

.table td {
    border-color: var(--line-soft);
}

.table-hover tbody tr:hover {
    background: #f1f7fc;
}

.task-row {
    transition: background-color .16s ease, box-shadow .16s ease;
}

.task-row:hover {
    background: #f1f7fc;
}

.task-pending { border-left: 4px solid var(--warning); }
.task-completed { border-left: 4px solid var(--success); opacity: .78; }
.task-delayed { border-left: 4px solid #9d6bcb; }
.task-overdue { border-left: 4px solid var(--danger); background: #fff7f6; }

.progress,
.progress-thin {
    height: 8px;
    border-radius: 999px;
    background-color: #e7edf2;
}

.progress-bar {
    background-color: var(--primary);
}

.btn {
    border-radius: 6px;
    font-weight: 600;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-success {
    background: var(--success);
    border-color: var(--success);
}

.btn-warning {
    background: #d59a2f;
    border-color: #d59a2f;
    color: #1f2933;
}

.btn-danger {
    background: var(--danger);
    border-color: var(--danger);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-action {
    padding: .24rem .58rem;
    font-size: .8rem;
}

.form-control,
.form-select {
    border-color: #ccd6e0;
    border-radius: 6px;
}

.form-control:focus,
.form-select:focus {
    border-color: #4e91cc;
    box-shadow: 0 0 0 .18rem rgba(7, 90, 167, .16);
}

.form-label {
    color: #344054;
    font-weight: 600;
}

.badge {
    border-radius: 999px;
    font-weight: 700;
}

.status-badge {
    font-size: .78rem;
    padding: .28rem .62rem;
}

.alert {
    border-radius: 8px;
    border-width: 1px;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .04);
}

.modal-content {
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, .2);
    overflow: hidden;
}

.modal-header {
    background: var(--primary-dark);
    color: #fff;
    border-bottom: 0;
}

.modal-footer {
    background: #f8fafc;
    border-top-color: var(--line-soft);
}

.list-group-item {
    border-color: var(--line-soft);
}

.bg-success-light { background-color: #e8f6ef; }
.bg-warning-light { background-color: #fff7e6; }
.bg-danger-light { background-color: #fff1ef; }
.bg-info-light { background-color: #edf6ff; }

.login-page {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-card {
    width: min(420px, 100%);
    border-radius: 8px;
    border-top: 4px solid var(--accent);
}

.login-card .card-header {
    background: #fff;
    color: var(--muted);
    padding: 1.6rem 1.25rem;
}

.login-card .card-body {
    padding: 1.5rem;
}

.badge-role {
    font-size: .75rem;
    margin: 1px;
}

.fee-sheet {
    background: #fff;
}

.fee-sheet table {
    border-color: #1f2933;
}

.fee-sheet th,
.fee-sheet td {
    border-color: #1f2933 !important;
}

iframe {
    background: #fff;
}

@media (max-width: 992px) {
    .app-main {
        padding: 14px 12px 24px;
    }

    .navbar .nav-link {
        margin: 1px 0;
    }

    .navbar-text {
        display: block;
        margin: .4rem 0 .6rem !important;
    }

    .project-action-bar { grid-template-columns: 1fr; }
    .project-action-title { border-right: 0; border-bottom: 1px solid var(--line-soft); }
    .project-action-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .project-action-group:nth-child(2) { border-right: 0; }
    .project-action-group:nth-child(-n+2) { border-bottom: 1px solid #d7e0e7; }
}

@media (max-width: 768px) {
    .app-main .btn,
    .app-navbar .btn {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .project-action-bar {
        align-items: stretch;
    }

    .project-action-groups { grid-template-columns: 1fr; }
    .project-action-group,
    .project-action-group:nth-child(2) { border-right: 0; border-bottom: 1px solid #d7e0e7; }
    .project-action-group:last-child { border-bottom: 0; }

    .project-current-item { grid-template-columns: 1fr; gap: 5px; }
    .project-current-item .btn { justify-self: start; }

    .dashboard-focus-list { grid-template-columns: 1fr; }
    .dashboard-focus-item,
    .dashboard-focus-item:nth-child(3n) { border-right: 0; }
    .dashboard-focus-header { align-items: flex-start; }
    .dashboard-personal-updates .nav-tabs { padding-left: 10px !important; padding-right: 10px !important; }
    .dashboard-personal-updates .nav-link { font-size: .88rem; }

    .project-action-buttons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-action-buttons .btn {
        width: 100%;
    }

    .workflow-toolbar {
        width: 100%;
    }

    .workflow-tool {
        flex: 1 1 auto;
        justify-content: center;
    }

    .attendance-role-tabs {
        grid-template-columns: 1fr;
        gap: 6px;
        border-bottom: 0;
    }

    .attendance-role-tab {
        min-height: 54px;
        border-radius: 6px;
        border-bottom-width: 1px;
        border-left: 3px solid transparent;
    }

    .attendance-role-tab.active {
        border-left-color: var(--accent);
        border-bottom-color: #9bbbd8;
    }

    .registration-header-inner,
    .registration-main {
        width: min(100% - 28px, 1180px);
    }

    .registration-brand img {
        width: 112px;
    }

    .registration-brand span,
    .registration-account-nav > span {
        display: none;
    }

    .registration-auth-grid,
    .registration-review-data {
        grid-template-columns: 1fr;
    }

    .registration-emergency-grid { grid-template-columns: 1fr; }
    .registration-emergency-note { border-left: 0; border-top: 1px solid var(--line); }
    .registration-login-switch { padding: 16px 16px 0; }
    .registration-login-switch__item { flex: 1 1 0; min-width: 0; text-align: center; }

    .registration-auth-grid.registration-progress-first-grid {
        grid-template-columns: 1fr;
    }

    .registration-auth-heading,
    .registration-auth-section,
    .registration-print-code-entry,
    .registration-auth-section form,
    .registration-auth-section .row,
    .registration-auth-section [class*="col-"] {
        min-width: 0;
        max-width: 100%;
    }

    .registration-auth-heading,
    .registration-print-code-entry {
        overflow-wrap: anywhere;
    }

    .registration-print-code-entry .btn {
        max-width: 100%;
        white-space: normal;
    }

    .registration-auth-section + .registration-auth-section {
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .registration-history-picker {
        grid-template-columns: 1fr;
        gap: 7px;
    }

    .registration-project-row {
        align-items: stretch;
        flex-direction: column;
    }

    .registration-form-section {
        padding: 16px 14px;
    }

    .registration-section--padded {
        padding: 18px 16px;
    }

    .registration-auth-alert,
    .registration-print-code-entry {
        margin-right: 16px;
        margin-left: 16px;
    }

    .registration-print-code-entry {
        align-items: stretch;
        flex-direction: column;
    }

    .public-portal-contact {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        padding: 20px 16px;
    }

    .public-portal-contact img { width: 92px; height: 92px; }
    .public-portal-contact dl div { grid-template-columns: 1fr; gap: 1px; }

    .registration-form-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .registration-form-actions .btn:last-child {
        grid-column: auto;
    }
    body {
        font-size: 13px;
    }

    .app-main {
        /* Keep Bootstrap row gutters inside the mobile viewport. */
        padding-left: .75rem;
        padding-right: .75rem;
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .brand-mark {
        width: 116px;
        height: 36px;
    }

    h4 {
        font-size: 1.08rem;
    }

    .card-header {
        padding: .65rem .75rem;
    }

    .card-body {
        padding: .8rem;
    }

    .stat-card {
        min-height: 92px;
        padding: .95rem .95rem .95rem 1.05rem;
    }

    .stat-card h3 {
        font-size: 1.8rem;
    }

    .table-responsive {
        font-size: .82rem;
    }

    .table th,
    .table td {
        padding: .45rem .5rem;
    }

    .btn {
        white-space: nowrap;
    }

    .modal-dialog {
        margin: .5rem;
    }

    .modal-dialog.modal-lg,
    .modal-dialog.modal-xl {
        max-width: calc(100% - 1rem);
    }

    .fee-sheet {
        padding: .65rem !important;
    }

    .fee-sheet table {
        min-width: 0;
        font-size: .72rem;
    }
}

@media print {
    body {
        background: #fff;
    }

    .app-navbar,
    .app-footer,
    .btn,
    .modal {
        display: none !important;
    }

    .app-main {
        width: 100%;
        padding: 0;
    }

    .card {
        border: 0;
        box-shadow: none;
    }
}
.user-role-option {
    align-items: center;
    border: 1px solid #d8dee8;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    min-height: 40px;
    padding: 8px 10px;
    width: 100%;
}

.user-role-option:hover {
    background: #f6f9fc;
    border-color: #91b7dd;
}

.user-role-option:has(.form-check-input:checked) {
    background: #eef6ff;
    border-color: #4285bd;
    color: #174f7b;
    font-weight: 600;
}

.user-role-option .form-check-input {
    flex: 0 0 auto;
    margin: 0;
}
/* Requirement 217-218: independent archive inquiry surface */
.archive-body {
    min-height: 100vh;
    background: #f4f7f9;
    color: #183247;
    font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
}
.archive-header {
    height: 66px;
    background: #ffffff;
    border-bottom: 3px solid #ff7900;
}
.archive-header-inner {
    max-width: 1500px;
    height: 100%;
    margin: 0 auto;
    padding: 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.archive-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #12344d;
    text-decoration: none;
}
.archive-brand img { width: 126px; height: 34px; object-fit: contain; }
.archive-brand span { display: flex; align-items: baseline; gap: 10px; }
.archive-brand strong { font-size: 18px; }
.archive-brand small { color: #687783; font-size: 13px; }
.archive-user-nav { display: flex; align-items: center; gap: 18px; font-size: 14px; }
.archive-user-nav span { color: #687783; }
.archive-user-nav a { color: #0057a8; text-decoration: none; font-weight: 600; }
.archive-main { max-width: 1500px; margin: 0 auto; padding: 28px; }
.archive-login-shell {
    min-height: calc(100vh - 122px);
    display: grid;
    place-items: center;
}
.archive-login-panel {
    width: min(100%, 520px);
    background: #ffffff;
    border: 1px solid #d8e1e8;
    border-top: 5px solid #0057a8;
    border-radius: 6px;
    padding: 40px;
    box-shadow: 0 16px 42px rgba(24, 50, 71, .10);
}
.archive-login-kicker, .archive-eyebrow {
    color: #d85c00;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.archive-login-heading h1 { margin: 8px 0 10px; font-size: 27px; font-weight: 800; }
.archive-login-heading p { margin: 0 0 28px; color: #687783; line-height: 1.7; }
.archive-login-form .form-control { min-height: 44px; }
.archive-page-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}
.archive-page-heading h1, .archive-project-heading h1 { margin: 4px 0 0; font-size: 27px; font-weight: 800; }
.archive-filter { display: grid; grid-template-columns: minmax(230px, 1fr) 130px 80px; gap: 8px; }
.archive-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.archive-metrics div {
    min-height: 84px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #d8e1e8;
    border-radius: 6px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.archive-metrics div:nth-child(1) { border-left: 4px solid #0057a8; }
.archive-metrics div:nth-child(2) { border-left: 4px solid #197a55; }
.archive-metrics div:nth-child(3) { border-left: 4px solid #d85c00; }
.archive-metrics strong { font-size: 30px; }
.archive-metrics span { color: #687783; }
.archive-section { margin-top: 26px; }
.archive-section-title { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.archive-section-title h2 { margin: 0; font-size: 18px; font-weight: 800; }
.archive-section-title span { color: #687783; font-size: 13px; }
.archive-table-wrap, .archive-file-group, .archive-tab-content {
    background: #ffffff;
    border: 1px solid #d8e1e8;
    border-radius: 6px;
}
.archive-table-wrap .table > :not(caption) > * > *,
.archive-tab-content .table > :not(caption) > * > * { padding: 12px 13px; }
.archive-table-wrap thead, .archive-tab-content thead { background: #edf3f7; color: #40586a; font-size: 13px; }
.archive-table-wrap td small { display: block; margin-top: 3px; color: #74828d; }
.archive-type {
    display: inline-block;
    min-width: 44px;
    padding: 3px 8px;
    background: #e7f1fb;
    color: #0057a8;
    border-radius: 4px;
    text-align: center;
    font-size: 12px;
    font-weight: 700;
}
.archive-type.special { background: #fff0e4; color: #b94e00; }
.archive-file-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.archive-file-list a {
    min-width: 0;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #d8e1e8;
    border-radius: 6px;
    color: #183247;
    text-decoration: none;
}
.archive-file-list a:hover { border-color: #1677c8; box-shadow: 0 5px 16px rgba(24, 50, 71, .08); }
.archive-file-list strong, .archive-file-list small { display: block; overflow-wrap: anywhere; }
.archive-file-list small { margin-top: 5px; color: #74828d; }
.archive-file-kind { color: #197a55; font-size: 12px; font-weight: 800; }
.archive-breadcrumb { display: flex; gap: 8px; margin-bottom: 18px; color: #74828d; font-size: 13px; }
.archive-breadcrumb a { color: #0057a8; text-decoration: none; }
.archive-project-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.archive-project-heading p { margin: 6px 0 0; color: #687783; }
.archive-readonly { padding: 7px 11px; background: #eaf6f0; color: #197a55; border-radius: 4px; font-weight: 700; font-size: 13px; }
.archive-schedule-heading { margin-bottom: 18px; }
.archive-schedule-filter { display:flex; flex-wrap:wrap; align-items:center; gap:9px; margin:0 0 16px; padding:12px 14px; border:1px solid #d8e1e8; border-radius:6px; background:#fff; }
.archive-schedule-filter label { margin:0; color:#40586a; font-weight:700; }
.archive-schedule-filter select { min-width:190px; max-width:100%; padding:6px 9px; border:1px solid #c8d4dd; border-radius:4px; background:#fff; }
.archive-schedule-desktop { overflow:hidden; }
.archive-schedule-desktop .table { min-width:920px; }
.archive-schedule-desktop th { white-space:nowrap; background:#edf3f7; color:#40586a; }
.archive-schedule-long { min-width:180px; max-width:340px; overflow-wrap:anywhere; white-space:normal; }
.archive-schedule-row-historical, .archive-schedule-row-historical_unverified { background:#f7f8fa; color:#5e6d78; }
.archive-schedule-row-test { background:#fff9ed; }
.archive-schedule-links { display:flex; flex-wrap:wrap; gap:7px; margin:4px 0 8px; }
.archive-schedule-teacher { margin-top:8px; padding:10px 12px; border:1px solid #d8e1e8; border-radius:5px; background:#fbfcfd; }
.archive-schedule-teacher > summary { color:#0057a8; font-weight:700; cursor:pointer; }
.archive-schedule-teacher p { overflow-wrap:anywhere; }
.archive-schedule-mobile { display:none; }
.archive-schedule-day { margin-bottom:12px; overflow:hidden; }
.archive-schedule-day > summary { display:flex; justify-content:space-between; gap:12px; padding:15px 17px; background:#f5f8fa; color:#193b57; cursor:pointer; list-style:none; }
.archive-schedule-day > summary::-webkit-details-marker { display:none; }
.archive-schedule-day > summary span { color:#687783; font-size:13px; }
.archive-schedule-card { min-width:0; margin:0 0 12px; padding:14px; border:1px solid #d8e1e8; border-radius:6px; background:#fff; overflow-wrap:anywhere; }
.archive-schedule-card h3 { margin:0 0 10px; color:#173d5c; font-size:17px; line-height:1.4; overflow-wrap:anywhere; }
.archive-schedule-card dl { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; margin:0 0 10px; }
.archive-schedule-card dl div { min-width:0; }
.archive-schedule-card dt { color:#74828d; font-size:12px; }
.archive-schedule-card dd { margin:2px 0 0; overflow-wrap:anywhere; }
.archive-schedule-card .archive-schedule-teacher { overflow-wrap:anywhere; }
.archive-schedule-footer { display:flex; justify-content:flex-end; margin-top:16px; }
@media (max-width: 767px) {
  .archive-schedule-desktop { display:none; }
  .archive-schedule-mobile { display:block; }
  .archive-schedule-heading { align-items:flex-start; flex-direction:column; gap:8px; }
  .archive-schedule-heading > .archive-state { align-self:flex-start; white-space:nowrap; }
  .archive-schedule-filter { align-items:stretch; }
  .archive-schedule-filter label, .archive-schedule-filter select { width:100%; }
  .archive-schedule-filter .btn { flex:1 1 auto; }
}
.archive-project-meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 22px 0;
    border: 1px solid #d8e1e8;
    background: #ffffff;
}
.archive-project-meta div { padding: 14px 16px; border-right: 1px solid #d8e1e8; }
.archive-project-meta div:last-child { border-right: 0; }
.archive-project-meta span, .archive-project-meta strong { display: block; }
.archive-project-meta span { margin-bottom: 4px; color: #74828d; font-size: 12px; }
.archive-tabs { border-bottom-color: #bfcdd7; }
.archive-tabs .nav-link { color: #526775; border-radius: 4px 4px 0 0; }
.archive-tabs .nav-link span { margin-left: 5px; color: #74828d; }
.archive-tabs .nav-link.active { color: #0057a8; font-weight: 800; }
.archive-tab-content { border-top: 0; border-radius: 0 0 6px 6px; padding: 18px; }
.archive-file-group { margin-bottom: 16px; overflow: hidden; }
.archive-file-group:last-child { margin-bottom: 0; }
.archive-file-group h2 { margin: 0; padding: 12px 14px; background: #edf3f7; font-size: 15px; font-weight: 800; }
.archive-file-group h2 span { margin-left: 6px; color: #74828d; font-weight: 500; }
.archive-file-group .table { margin: 0; }
.archive-stored-name { max-width: 330px; color: #687783; font-size: 12px; overflow-wrap: anywhere; }
.archive-empty { padding: 50px; text-align: center; color: #74828d; }
@media (max-width: 900px) {
    .archive-header { height: auto; }
    .archive-header-inner { padding: 12px 16px; align-items: flex-start; }
    .archive-brand span small { display: none; }
    .archive-user-nav { flex-wrap: wrap; justify-content: flex-end; gap: 8px 14px; }
    .archive-main { padding: 18px 14px; }
    .archive-page-heading { align-items: stretch; flex-direction: column; }
    .archive-filter { grid-template-columns: 1fr 110px 72px; }
    .archive-file-list { grid-template-columns: 1fr; }
    .archive-project-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .archive-project-meta div:nth-child(2) { border-right: 0; }
    .archive-login-panel { padding: 28px 22px; }
}
@media (max-width: 560px) {
    .archive-brand img { width: 104px; }
    .archive-user-nav span { display: none; }
    .archive-filter { grid-template-columns: 1fr; }
    .archive-metrics { grid-template-columns: 1fr; }
    .archive-project-meta { grid-template-columns: 1fr; }
    .archive-project-meta div { border-right: 0; border-bottom: 1px solid #d8e1e8; }
}
.permission-summary-band {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid #dbe3ea;
    background: #fff;
}
.permission-summary-band > div { padding: 14px 18px; border-right: 1px solid #e6ebef; }
.permission-summary-band > div:last-child { border-right: 0; }
.permission-summary-band strong { display: block; color: #123a63; font-size: 22px; line-height: 1.1; }
.permission-summary-band span { display: block; color: #667788; font-size: 13px; margin-top: 5px; }
.permission-summary-band .has-issue strong { color: #c43b3b; }
.permission-audit-card { border-radius: 6px; overflow: hidden; }
.permission-audit-table { min-width: 1320px; font-size: 13px; }
.permission-audit-table thead th { white-space: nowrap; background: #f2f6f9; color: #29445f; }
.permission-audit-table td:first-child small { display: block; color: #7a8793; margin-top: 3px; }
.permission-roles { min-width: 180px; max-width: 260px; }
.permission-roles span { display: inline-block; margin: 2px 3px 2px 0; padding: 2px 6px; border: 1px solid #cad7e1; background: #f7fafc; color: #35536c; }
.permission-roles .empty { color: #8a959e; }
.permission-assignments { min-width: 190px; max-width: 260px; color: #4b6174; }
.permission-detail { min-width: 260px; max-width: 360px; color: #435667; line-height: 1.55; }
.permission-row-issue { background: #fff8f6; }
.audit-issue { display: block; color: #a3342b; margin-top: 5px; max-width: 260px; }
.permission-role-grid label { display: flex; align-items: center; gap: 8px; min-height: 38px; padding: 7px 9px; border: 1px solid #d7e0e7; background: #f8fafb; cursor: pointer; }
.permission-archive-option { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 15px; border: 1px solid #b9d5ca; background: #f3faf7; }
.permission-archive-option small { display: block; color: #5e746c; margin-top: 3px; }
.archive-login-note { margin: 14px 0 0; color: #6b7782; font-size: 13px; line-height: 1.5; }
.notification-nav-badge {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    margin-left: 4px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--danger);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}
.notification-center { max-width: 1040px; margin: 0 auto; }
.notification-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; margin-bottom: 16px; }
.notification-eyebrow { margin: 0 0 4px; color: var(--primary); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.notification-header h1 { margin: 0; color: #163c62; font-size: 26px; font-weight: 800; }
.notification-intro { margin: 6px 0 0; color: var(--muted); }
.notification-header-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.notification-summary { display: grid; grid-template-columns: 190px 170px 1fr; align-items: stretch; margin-bottom: 24px; border: 1px solid #cad8e5; background: #fff; }
.notification-summary > div { display: flex; flex-direction: column; justify-content: center; min-height: 90px; padding: 14px 20px; border-right: 1px solid #e1e8ef; }
.notification-summary strong { color: #173f65; font-size: 28px; line-height: 1.1; }
.notification-summary span { margin-top: 5px; color: #6f8090; font-size: 13px; }
.notification-summary-primary { border-left: 4px solid var(--accent); }
.notification-summary-primary strong { color: var(--danger); }
.notification-summary p { align-self: center; margin: 0; padding: 14px 20px; color: #556b7d; }
.notification-browser { border: 1px solid #cbd8e3; background: #fff; }
.notification-tab-list { display: flex; align-items: stretch; gap: 0; overflow-x: auto; border-bottom: 1px solid #cad8e3; background: #f5f8fa; }
.notification-tab { --notification-tab: #2e7ab8; display: inline-flex; align-items: center; gap: 7px; min-width: max-content; padding: 12px 15px; border: 0; border-right: 1px solid #dbe4eb; background: transparent; color: #647888; font-size: 13px; font-weight: 700; }
.notification-tab:hover { background: #fff; color: var(--notification-tab); }
.notification-tab.is-active { position: relative; background: #fff; color: var(--notification-tab); }
.notification-tab.is-active::after { position: absolute; right: 0; bottom: -1px; left: 0; height: 3px; background: var(--notification-tab); content: ''; }
.notification-tab-all, .notification-tab-system { --notification-tab: #2e7ab8; }
.notification-tab-important { --notification-tab: #b94b3d; }
.notification-tab-schedule { --notification-tab: #7b5bc6; }
.notification-tab-work { --notification-tab: #18865e; }
.notification-tab-other { --notification-tab: #6e7d8b; }
.notification-tab-icon { display: grid; width: 20px; height: 20px; place-items: center; border-radius: 4px; background: color-mix(in srgb, var(--notification-tab) 14%, #fff); color: var(--notification-tab); font-size: 11px; }
.notification-tab-count { color: #81909c; font-size: 12px; font-weight: 500; }
.notification-tab-unread { display: grid; min-width: 17px; height: 17px; place-items: center; padding: 0 4px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 10px; }
.notification-tab-panel { display: none; padding: 18px; }
.notification-tab-panel.is-active { display: block; }
.notification-tab-panel-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 12px; }
.notification-tab-panel-heading h2, .notification-empty h2 { margin: 0; color: #263f56; font-size: 17px; font-weight: 800; }
.notification-tab-panel-heading p { margin: 4px 0 0; color: #758592; font-size: 12px; }
.notification-tab-panel-heading > span { color: var(--danger); font-size: 13px; font-weight: 800; white-space: nowrap; }
.notification-list { display: grid; gap: 10px; }
.notification-card { display: flex; align-items: center; gap: 20px; padding: 16px 18px; border: 1px solid #cbd8e3; background: #fff; box-shadow: 0 3px 10px rgba(15, 40, 65, .04); }
.notification-card-unread { border-left: 4px solid var(--primary); }
.notification-card-read { background: #fafcfd; opacity: .76; }
.notification-card-main { min-width: 0; flex: 1; }
.notification-card-topline { display: flex; gap: 7px; align-items: center; margin-bottom: 7px; }
.notification-category, .notification-audience { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #e8f2fa; color: #075aa7; font-size: 12px; font-weight: 700; }
.notification-audience { background: #f2f5f7; color: #5d7080; }
.notification-unread-state { display: inline-block; padding: 2px 7px; border-radius: 3px; background: #fff0ec; color: #b84534; font-size: 12px; font-weight: 800; }
.notification-card h3 { margin: 0; color: #1e374d; font-size: 16px; font-weight: 800; }
.notification-card p, .notification-history-item p { margin: 7px 0 0; color: #53697a; line-height: 1.6; white-space: pre-wrap; }
.notification-meta { margin-top: 9px; color: #7b8995; font-size: 12px; }
.notification-read-button { flex: 0 0 auto; white-space: nowrap; }
.notification-empty { padding: 54px 20px; border: 1px solid #c8ded2; background: #f5fbf7; text-align: center; }
.notification-empty > div { display: grid; width: 38px; height: 38px; place-items: center; margin: 0 auto 10px; border-radius: 50%; background: #d7efdf; color: #1c7c4c; font-size: 20px; font-weight: 800; }
.notification-empty p { margin: 8px 0 0; color: #637b6c; }
@media (max-width: 767px) {
    .permission-summary-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .permission-summary-band > div:nth-child(2) { border-right: 0; }
    .permission-summary-band > div:nth-child(-n+2) { border-bottom: 1px solid #e6ebef; }
    .notification-header { align-items: flex-start; flex-direction: column; }
    .notification-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .notification-summary > div:nth-child(2) { border-right: 0; }
    .notification-summary p { grid-column: 1 / -1; border-top: 1px solid #e1e8ef; }
    .notification-tab-panel { padding: 14px; }
    .notification-tab-panel-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
    .notification-card { align-items: flex-start; flex-direction: column; }
}
/* 所有业务表格使用深浅交替底色，方便逐行核对花名册与修改记录。 */
.table > tbody > tr:nth-child(odd) > * { background-color: #ffffff; }
.table > tbody > tr:nth-child(even) > * { background-color: #f2f7fb; }
.table.table-hover > tbody > tr:hover > * { background-color: #e1f0fa; }

/* APK business workspace --------------------------------------------------
 * The native office client marks every server-rendered business page with
 * .pingan-office-mobile. This retains one authoritative workflow while making
 * each existing operation usable with a phone: large touch controls,
 * horizontally readable records, one-column forms and usable modals.
 */
@media (max-width: 900px) {
    body.pingan-office-mobile {
        min-width: 0;
        overflow-x: hidden;
        background: #f3f7fb;
        padding-top: 54px;
        padding-bottom: env(safe-area-inset-bottom);
    }
    body.pingan-office-mobile .app-navbar { display: none !important; }
    body.pingan-office-mobile .app-main {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 10px 10px 26px;
    }
    body.pingan-office-mobile h1 { font-size: clamp(1.35rem, 6vw, 1.8rem); }
    body.pingan-office-mobile h2 { font-size: clamp(1.14rem, 5vw, 1.45rem); }
    body.pingan-office-mobile h3 { font-size: 1.05rem; }
    body.pingan-office-mobile .card,
    body.pingan-office-mobile .alert,
    body.pingan-office-mobile .border,
    body.pingan-office-mobile .shadow-sm { border-radius: 10px; }

    /* Controls are never reduced to desktop-sized click targets. */
    body.pingan-office-mobile button,
    body.pingan-office-mobile .btn,
    body.pingan-office-mobile input,
    body.pingan-office-mobile select,
    body.pingan-office-mobile textarea {
        min-height: 44px;
        font-size: 16px;
    }
    body.pingan-office-mobile .btn { display: inline-flex; align-items: center; justify-content: center; }
    body.pingan-office-mobile input[type="checkbox"],
    body.pingan-office-mobile input[type="radio"] { min-height: 20px; min-width: 20px; }
    body.pingan-office-mobile textarea { min-height: 110px; }
    body.pingan-office-mobile input[type="file"] { width: 100%; padding: 8px; }

    /* Forms and toolbars wrap rather than squeeze their labels or actions. */
    body.pingan-office-mobile .row { --bs-gutter-x: .75rem; }
    body.pingan-office-mobile .row > [class*="col-"] { width: 100%; }
    body.pingan-office-mobile .d-flex,
    body.pingan-office-mobile .btn-group,
    body.pingan-office-mobile .input-group,
    body.pingan-office-mobile .form-inline {
        flex-wrap: wrap;
        gap: 7px;
    }
    body.pingan-office-mobile .input-group > .form-control,
    body.pingan-office-mobile .input-group > .form-select { min-width: min(100%, 180px); flex: 1 1 180px; }
    body.pingan-office-mobile .btn-group > .btn { flex: 0 1 auto; border-radius: .375rem !important; }
    body.pingan-office-mobile .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Preserve every roster/attendance/finance field: scroll instead of hiding
       columns or turning a comparison row into an unreadable narrow card. */
    body.pingan-office-mobile .app-main .table {
        display: block;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    body.pingan-office-mobile .app-main .table > :not(caption) > * > * { padding: 10px 11px; }
    body.pingan-office-mobile .app-main .table td .btn,
    body.pingan-office-mobile .app-main .table th .btn { margin: 2px; }

    body.pingan-office-mobile .nav-tabs,
    body.pingan-office-mobile .nav-pills,
    body.pingan-office-mobile .pagination {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 3px;
    }
    body.pingan-office-mobile .nav-tabs .nav-link,
    body.pingan-office-mobile .nav-pills .nav-link { white-space: nowrap; }
    body.pingan-office-mobile .modal-dialog {
        width: calc(100% - 16px);
        max-width: none;
        margin: 8px auto;
    }
    body.pingan-office-mobile .modal-content { max-height: calc(100vh - 18px); overflow-y: auto; }
    body.pingan-office-mobile .dropdown-menu { max-width: calc(100vw - 24px); }
    body.pingan-office-mobile .toast-container,
    body.pingan-office-mobile .app-flash-stack { left: 10px; right: 10px; width: auto; }

    /* APK-only title bar.  The WebView keeps this compact header while the
       native four-tab bar remains fixed at the bottom of every work page. */
    body.pingan-office-mobile { padding-top: 58px; padding-bottom: 74px; }
    body.pingan-office-mobile #pingan-office-mobile-header {
        position: fixed; z-index: 1085; top: 0; left: 0; right: 0; height: 54px;
        display: flex; align-items: center; gap: 10px; padding: 0 12px;
        color: #fff; background: linear-gradient(110deg, #075aab, #1196d1);
        box-shadow: 0 2px 10px rgba(0, 67, 125, .22);
    }
    body.pingan-office-mobile #pingan-office-mobile-header strong { flex: 1; font-size: 18px; letter-spacing: .03em; }
    body.pingan-office-mobile #pingan-office-mobile-header button {
        min-height: 38px; min-width: 38px; border: 0; border-radius: 9px;
        padding: 0 10px; color: #fff; background: rgba(255,255,255,.16); font-size: 15px;
    }
    body.pingan-office-mobile #pingan-office-mobile-header button[data-po="back"] { font-size: 31px; line-height: 1; padding-bottom: 4px; }
    body.pingan-office-mobile .app-main,
    body.pingan-office-mobile .container,
    body.pingan-office-mobile .container-fluid { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
    body.pingan-office-mobile .app-main { padding: 10px 10px 82px !important; }

    /* A normal record table becomes a labelled operation card in the APK.
       No field or action is hidden: headers become labels and every original
       control stays in its own full-width row. */
    body.pingan-office-mobile .app-main table[data-po-mobile="1"],
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] tbody,
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] tr,
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td { display: block; width: 100% !important; }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] { overflow: visible; border: 0; background: transparent; }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] thead { display: none; }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] tr {
        margin: 0 0 10px; padding: 7px 11px; border: 1px solid #d9e6f1; border-radius: 12px;
        background: #fff; box-shadow: 0 1px 3px rgba(18, 67, 108, .05);
    }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td {
        min-height: 38px; padding: 7px 0 !important; border: 0 !important; white-space: normal;
        overflow-wrap: anywhere;
    }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td[data-mobile-label]::before {
        content: attr(data-mobile-label); display: block; margin-bottom: 3px; color: #5d7590;
        font-size: 12px; font-weight: 700;
    }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td[colspan]::before { content: none; }
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td .btn,
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td button,
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td select,
    body.pingan-office-mobile .app-main table[data-po-mobile="1"] td input { max-width: 100%; margin: 2px 4px 2px 0; }
}
@keyframes registration-invalid-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-7px)}40%{transform:translateX(7px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
.registration-field-invalid{position:relative;border-color:#dc3545!important;box-shadow:0 0 0 .22rem rgba(220,53,69,.2)!important;animation:registration-invalid-shake .38s ease both}
@media(prefers-reduced-motion:reduce){.registration-field-invalid{animation:none}}
#registrationValidationAlert:not(.d-none){position:fixed;z-index:1046;top:16px;left:50%;width:min(680px,calc(100vw - 24px));margin:0;padding:1rem;color:#842029;background:#f8d7da;border:1px solid #f5c2c7;border-radius:.5rem;line-height:1.5;transform:translateX(-50%);box-shadow:0 16px 36px rgba(15,23,42,.24);overflow-wrap:anywhere}
@media(max-width:600px){#registrationValidationAlert:not(.d-none){top:10px;width:calc(100vw - 20px);font-size:.92rem}}
:root{--line-anzheng:#3157a4;--line-anzheng-text:#254684;--line-anzheng-soft:#f1f4fb;--line-anzheng-soft-2:#dfe7f7;--line-tezuo:#16845a;--line-tezuo-text:#0f6846;--line-tezuo-soft:#f1fbf6;--line-tezuo-soft-2:#e2f6eb;--line-neutral:#64758b;--line-neutral-text:#536277;--line-neutral-soft:#f5f7fa;--line-accent:#d88713}
.business-line-card{position:relative;isolation:isolate;overflow:hidden;border-color:#d8e3ee!important;background:#fff}
.business-line-card::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;background-repeat:repeat;background-size:44px 44px;opacity:1}
.business-line-card>*{position:relative;z-index:1}
.business-line-card.line-anzheng{border-left:4px solid var(--line-anzheng)!important;background:linear-gradient(135deg,var(--line-anzheng-soft),#fff 58%)}
.business-line-card.line-anzheng::before{background-image:repeating-linear-gradient(135deg,rgba(49,87,164,.075) 0 1px,transparent 1px 12px),radial-gradient(circle at 8px 8px,rgba(49,87,164,.085) 0 1.5px,transparent 1.6px)}
.business-line-card.line-tezuo{border-left:4px solid var(--line-tezuo)!important;background:linear-gradient(135deg,var(--line-tezuo-soft),#fff 58%)}
.business-line-card.line-tezuo::before{background-image:repeating-linear-gradient(135deg,rgba(22,132,90,.075) 0 1px,transparent 1px 12px),radial-gradient(circle at 8px 8px,rgba(22,132,90,.085) 0 1.5px,transparent 1.6px)}
.business-line-card.line-neutral{border-left:4px solid var(--line-neutral)!important;background:linear-gradient(135deg,var(--line-neutral-soft),#fff 58%)}
.business-line-card.line-neutral::before{background-image:repeating-linear-gradient(135deg,rgba(100,117,139,.045) 0 1px,transparent 1px 14px)}
.business-line-row.line-anzheng>td{background-color:var(--line-anzheng-soft)}
.business-line-row.line-tezuo>td{background-color:var(--line-tezuo-soft)}
.business-line-row.line-anzheng>td:first-child{box-shadow:inset 4px 0 var(--line-anzheng)}
.business-line-row.line-tezuo>td:first-child{box-shadow:inset 4px 0 var(--line-tezuo)}
.business-line-badge{display:inline-flex;align-items:center;padding:.22rem .55rem;border:1px solid currentColor;border-radius:999px;font-size:.72rem;font-weight:800;line-height:1.2}
.business-line-badge.line-anzheng{color:var(--line-anzheng-text);background:var(--line-anzheng-soft-2)}
.business-line-badge.line-tezuo{color:var(--line-tezuo-text);background:var(--line-tezuo-soft-2)}
.business-line-badge.line-neutral{color:var(--line-neutral-text);background:var(--line-neutral-soft)}
.business-line-title.line-anzheng,.business-line-card.line-anzheng .business-line-title{color:var(--line-anzheng-text)!important}
.business-line-title.line-tezuo,.business-line-card.line-tezuo .business-line-title{color:var(--line-tezuo-text)!important}
.business-line-title.line-neutral,.business-line-card.line-neutral .business-line-title{color:var(--line-neutral-text)!important}
.business-line-card.line-anzheng :is(h1,h2,h3,h4,h5,h6)>a:first-child,.business-line-card.line-anzheng :is(h1,h2,h3,h4,h5,h6).business-line-title{color:var(--line-anzheng-text)}
.business-line-card.line-tezuo :is(h1,h2,h3,h4,h5,h6)>a:first-child,.business-line-card.line-tezuo :is(h1,h2,h3,h4,h5,h6).business-line-title{color:var(--line-tezuo-text)}
.business-line-page{position:relative;isolation:isolate;overflow:hidden}
.business-line-page::before{content:"";position:absolute;z-index:0;inset:0;pointer-events:none;background-size:56px 56px;opacity:1}
.business-line-page>*{position:relative;z-index:1}
.business-line-page.line-anzheng{border-top:4px solid var(--line-anzheng);background:linear-gradient(180deg,var(--line-anzheng-soft),transparent 200px)}
.business-line-page.line-anzheng::before{background-image:repeating-linear-gradient(135deg,rgba(49,87,164,.07) 0 1px,transparent 1px 15px)}
.business-line-page.line-tezuo{border-top:4px solid var(--line-tezuo);background:linear-gradient(180deg,var(--line-tezuo-soft),transparent 200px)}
.business-line-page.line-tezuo::before{background-image:repeating-linear-gradient(135deg,rgba(22,132,90,.07) 0 1px,transparent 1px 15px)}
.business-line-page.line-neutral{border-top:4px solid var(--line-neutral);background:linear-gradient(180deg,var(--line-neutral-soft),transparent 200px)}
.archive-class-card:has(.archive-type.special){border-left-color:var(--line-tezuo)!important;background:linear-gradient(135deg,var(--line-tezuo-soft),#fff 50%)}
.archive-class-card:not(:has(.archive-type.special)){border-left-color:var(--line-anzheng)!important;background:linear-gradient(135deg,var(--line-anzheng-soft),#fff 50%)}
.archive-type.special{border-color:var(--line-tezuo)!important;background:var(--line-tezuo-soft-2)!important;color:var(--line-tezuo-text)!important}
@media(max-width:576px){.business-line-card.line-anzheng,.business-line-card.line-tezuo,.business-line-card.line-neutral{border-left-width:3px!important}.business-line-card::before{background-size:58px 58px;opacity:.9}.business-line-page::before{background-size:72px 72px;opacity:.88}}
@media(prefers-contrast:more){.business-line-card::before,.business-line-page::before{display:none}.business-line-card{background:#fff!important}}
@media print{.business-line-card::before,.business-line-page::before{display:none!important}.business-line-card,.business-line-page{background:#fff!important;box-shadow:none!important}}

.archive-lifecycle-stage { scroll-margin-top: 6rem; }

/* QA302 frozen/current registration facts: every field stays visible on phones. */
@media(max-width:700px){
  .qa302-facts-table thead{display:none}
  .qa302-facts-table tr{display:block;border:1px solid #dce7f0;border-radius:12px;margin:10px 0;padding:10px}
  .qa302-facts-table td[data-label]{display:grid;grid-template-columns:88px minmax(0,1fr);gap:8px;border:0;padding:6px 0;overflow-wrap:anywhere}
  .qa302-facts-table td[data-label]::before{content:attr(data-label);color:#60758a;font-size:.85rem}
  .qa302-facts-table td[data-label]>.small{grid-column:2}
  .qa302-facts-table td[colspan]{display:block;border:0}
}
/* QA-379 public legal footer */
.registration-site-footer{display:flex;flex-wrap:wrap;justify-content:center;gap:.65rem 1.25rem;padding:1.25rem 1rem 1.75rem;color:#667085;font-size:.875rem;text-align:center}
.registration-site-footer a{color:#475467;text-decoration:none}
.registration-site-footer a:hover,.registration-site-footer a:focus{text-decoration:underline}
