.pr-page {
    --pr-primary: #f97316;
    --pr-primary-dark: #c2410c;
    --pr-accent: #ff8c2a;
    --pr-bg: #f4f8fa;
    --pr-text: #173042;
    --pr-muted: #68808f;
    max-width: 1180px;
    margin: 0 auto;
    color: var(--pr-text);
    font-family: "Sarabun", "Noto Sans Thai", sans-serif;
    font-size: 15px;
}

.pr-page input,
.pr-page select,
.pr-page textarea,
.pr-page button,
.pr-page .form-control,
.pr-page .control-label,
.pr-page .help-block {
    font-family: "Sarabun", "Noto Sans Thai", sans-serif;
    font-size: 15px;
}

.pr-header-card { overflow: hidden; margin-top: 13px; margin-bottom: 13px; border: 1px solid #dce8eb; border-radius: 15px; background: #fff; box-shadow: 0 10px 24px rgba(22,78,99,.12); }

.pr-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 0;
    padding: 13px;
    border-radius: 0;
    color: var(--pr-text);
    background: #fff;
    box-shadow: none;
}

.pr-hero:after {
    display: none;
}

.pr-hero h1,
.pr-hero h2 { margin: 0; color: #fff; font-size: 20px; line-height: 1.2; font-weight: 500; }
.pr-hero h1 > i, .pr-hero h2 > i { margin-right: 7px; color: rgba(255,255,255,.9); }
.pr-hero p { margin: 0; color: rgba(255, 255, 255, .86); font-size: 12px; }
.pr-hero-content { position: relative; z-index: 1; flex: 1 1 38%; min-width: 0; }
.pr-hero-actions { position: relative; z-index: 2; flex: 0 0 auto; }
.pr-hero-actions form { margin: 0; }
.pr-person-summary { position: relative; z-index: 1; display: flex; flex: 1 1 auto; align-items: center; gap: 9px; width: 100%; min-width: 0; margin-top: 0; padding: 10px 12px; border: 1px solid #dce8eb; border-radius: 10px; background: #f7fafb; }
.pr-person-avatar { display: inline-flex; flex: 0 0 34px; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; color: var(--pr-primary-dark); background: #e6f3f6; font-size: 16px; }
.pr-person-summary-content { flex: 1 1 auto; min-width: 0; }
.pr-person-name { display: block; overflow: hidden; color: var(--pr-text); font-size: 17px; font-weight: 500; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pr-person-details { display: flex; flex-wrap: wrap; align-items: center; margin-top: 4px; color: var(--pr-muted); font-size: 13px; line-height: 1.45; }
.pr-person-details span { white-space: normal; }
.pr-person-details span + span:before { margin: 0 10px; color: #a9b8bd; content: '·'; }
.pr-person-status { flex: 0 0 auto; align-self: flex-start; margin-left: auto; padding-top: 1px; white-space: nowrap; }
.pr-person-status .badge { padding: 5px 9px; border-radius: 20px; font-size: 12px; font-weight: 400; }
.pr-person-status .badge i { margin-right: 3px; }
.pr-registration-lock-status { flex: 0 0 auto; margin-left: auto; white-space: nowrap; }
.pr-registration-status { display: flex; align-items: center; gap: 8px; margin: 0 13px 13px; padding: 10px 14px; border: 1px solid #bfe2d3; border-left: 4px solid #15966f; border-radius: 9px; color: #27634f; background: #f0fbf6; font-size: 13px; line-height: 1.5; }
.pr-registration-status > i { flex: 0 0 auto; color: #15966f; font-size: 16px; }
.pr-registration-status strong { color: #087f5b; font-weight: 600; }
.pr-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pr-hero-chip { padding: 6px 11px; border: 1px solid rgba(255,255,255,.25); border-radius: 30px; background: rgba(255,255,255,.12); font-size: 12px; }

.pr-step-nav { display: flex; align-items: center; gap: 8px; margin: 0 13px 13px; padding: 0; border-top: 0; background: #fff; }
.pr-step-nav-links { display: flex; flex: 1 1 auto; gap: 5px; min-width: 0; overflow-x: auto; }
.pr-step-nav a { min-width: 100px; padding: 8px 10px; border: 1px solid #fed7aa; border-radius: 8px; color: #4d6877; background: #fff; text-align: center; text-decoration: none; cursor: pointer; transition: .18s ease; }
.pr-step-nav a:hover { color: var(--pr-primary-dark); border-color: #f4b183; background: #fff7ef; }
.pr-step-nav a.active,
.pr-step-nav a.active:hover { color: #fff; border-color: var(--pr-primary); background: var(--pr-primary); }
.pr-step-nav-links i { display: block; margin-bottom: 2px; font-size: 14px; }
.pr-step-nav-links span { font-size: 14px; white-space: nowrap; }

@media (max-width: 800px) {
    .pr-hero { align-items: stretch; flex-direction: column; }
    .pr-hero-content,
    .pr-person-summary { flex-basis: auto; width: 100%; }
    .pr-person-summary { margin-top: 0; }
}

.pr-card { margin-bottom: 14px; padding: 16px; border: 1px solid #e2ecef; border-radius: 14px; background: #fff; box-shadow: 0 6px 18px rgba(23,48,66,.06); }
.pr-card-header { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e1eaed; }
.pr-card-title { margin: 0; color: var(--pr-text); font-size: 17px; font-weight: 500; }
.pr-card-heading { display: flex; align-items: center; gap: 9px; min-width: 0; }
.pr-card-heading-content { min-width: 0; }
.pr-card-title-icon { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--pr-primary); background: #e6f3f6; font-size: 13px; }
.pr-card-title-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 30px; }
.pr-card-title-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.pr-card-title-context { display: inline-flex; align-items: center; gap: 5px; padding: 4px 8px; border-radius: 20px; color: var(--pr-primary-dark); background: #e9f5f7; font-size: 11px; font-weight: 500; }
.pr-card-title-context i { color: var(--pr-primary); }
.pr-card-subtitle { margin: 2px 0 0; color: var(--pr-muted); font-size: 13px; line-height: 1.5; }
.pr-card-header > .pr-badge { align-self: center; }

.pr-grid { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.pr-grid > [class*="pr-col-"] { padding: 0 8px; }
.pr-col-3 { width: 25%; }
.pr-col-2 { width: 16.6667%; }
.pr-col-4 { width: 33.3333%; }
.pr-col-6 { width: 50%; }
.pr-col-8 { width: 66.6667%; }
.pr-col-9 { width: 75%; }
.pr-col-10 { width: 83.3333%; }
.pr-col-12 { width: 100%; }

.pr-dashboard-overview { display: flex; gap: 14px; margin-bottom: 12px; padding: 10px 14px; border: 1px solid #dce8eb; border-radius: 16px; background: #fff; box-shadow: 0 7px 24px rgba(23,48,66,.06); }
.pr-dashboard-overview-main { flex: 1 1 auto; min-width: 0; }
.pr-dashboard-overview-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pr-dashboard-eyebrow { color: var(--pr-muted); font-size: 13px; }
.pr-dashboard-overview h2 { margin: 1px 0 5px; color: var(--pr-primary-dark); font-size: 28px; font-weight: 600; }
.pr-dashboard-overview.is-submitted h2 { color: #15966f; }
.pr-dashboard-summary { color: var(--pr-muted); font-size: 14px; font-weight: 400; }
.pr-dashboard-status { flex: 0 0 auto; padding: 5px 9px; border-radius: 20px; color: #9a3412; background: #fff1e6; font-size: 12px; }
.pr-dashboard-status i { margin-right: 3px; color: var(--pr-accent); font-size: 8px; }
.pr-dashboard-overview.is-submitted .pr-dashboard-status { color: #087f5b; background: #e6f8f1; }
.pr-dashboard-overview.is-submitted .pr-dashboard-status i { color: #15966f; }
.pr-dashboard-progress { overflow: hidden; height: 8px; border-radius: 10px; background: #e6eef1; }
.pr-dashboard-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--pr-primary), var(--pr-accent)); transition: width .25s ease; }
.pr-dashboard-overview.is-submitted .pr-dashboard-progress span { background: linear-gradient(90deg, #15966f, #35b88b); }
.pr-dashboard-guidance { margin: 5px 0 0; color: var(--pr-muted); font-size: 13px; }
.pr-dashboard-guidance i { margin-right: 4px; color: var(--pr-accent); }
.pr-dashboard-deadline { display: flex; flex: 0 0 255px; flex-direction: column; justify-content: center; padding-left: 18px; border-left: 1px solid #e1eaed; }
.pr-dashboard-deadline span { color: var(--pr-muted); font-size: 13px; }
.pr-dashboard-deadline span i { margin-right: 4px; color: var(--pr-primary); }
.pr-dashboard-deadline strong { margin: 2px 0 5px; color: var(--pr-text); font-size: 14px; }
.pr-dashboard-deadline-note { display: block; margin: -3px 0 7px; color: #a33a2b; font-size: 13px; }
.pr-dashboard-deadline.is-urgent { padding: 10px 12px; border: 1px solid #f0c7c2; border-radius: 12px; background: #fff7f5; }
.pr-dashboard-deadline.is-expired { padding: 10px 12px; border: 1px solid #e7b9b3; border-radius: 12px; background: #fff3f1; }
.pr-dashboard-deadline .pr-btn { text-align: center; }
.pr-dashboard-tasks .pr-card-header { margin-bottom: 8px; }
.pr-dashboard-task { display: flex; align-items: center; gap: 13px; padding: 13px 5px; border-top: 1px solid #e4edef; color: var(--pr-text); text-decoration: none !important; transition: .15s ease; }
.pr-dashboard-tasks .pr-card-header + .pr-dashboard-task { border-top: 0; }
.pr-dashboard-task:hover { padding-right: 9px; padding-left: 9px; background: #f8fbfc; }
.pr-dashboard-task-icon { display: flex; flex: 0 0 38px; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; color: #956b0a; background: #fff5d9; font-size: 16px; }
.pr-dashboard-task.is-complete .pr-dashboard-task-icon { color: #087f5b; background: #e6f8f1; }
.pr-dashboard-task.is-returned .pr-dashboard-task-icon { color: #a33a2b; background: #fff0ec; }
.pr-dashboard-task-content { flex: 1 1 auto; min-width: 0; }
.pr-dashboard-task-content strong,
.pr-dashboard-task-message { display: block; }
.pr-dashboard-task-content strong { margin-bottom: 2px; font-size: 14px; font-weight: 500; }
.pr-dashboard-task-message { overflow: hidden; color: var(--pr-muted); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.pr-dashboard-task-state { flex: 0 0 auto; padding: 4px 8px; border-radius: 20px; color: #8a5a00; background: #fff5d9; font-size: 11px; }
.pr-dashboard-task.is-complete .pr-dashboard-task-state { color: #087f5b; background: #e6f8f1; }
.pr-dashboard-task.is-returned .pr-dashboard-task-state { color: #a33a2b; background: #fff0ec; }
.pr-dashboard-task-arrow { flex: 0 0 auto; color: #9cb0ba; font-size: 17px; }
.pr-dashboard-work { position: sticky; top: 15px; }
.pr-dashboard-info-list { margin: 0; }
.pr-dashboard-info-list > div { padding: 10px 0; border-top: 1px solid #e5edef; }
.pr-dashboard-info-list > div:first-child { padding-top: 0; border-top: 0; }
.pr-dashboard-info-list dt { margin-bottom: 3px; color: var(--pr-muted); font-size: 13px; font-weight: 400; }
.pr-dashboard-info-list dd { margin: 0; color: var(--pr-text); font-size: 13px; font-weight: 500; line-height: 1.45; }

.pr-badge { display: inline-block; padding: 5px 10px; border-radius: 30px; color: #445b68; background: #edf3f5; font-size: 12px; }
.pr-badge.required { color: #a33a2b; background: #fff0ec; }
.pr-badge.complete { color: #087f5b; background: #e6f8f1; }
.pr-badge.warning { color: #8a5a00; background: #fff5d9; }
.pr-badge.locked { color: #8a5a00; background: #fff5d9; }
.pr-badge.locked i { margin-right: 4px; }

.pr-alert { margin-bottom: 18px; padding: 14px 16px; border: 1px solid #cfe3e8; border-left: 4px solid var(--pr-primary); border-radius: 10px; background: #f2fafb; }
.pr-alert-warning { border-color: #f3dfaf; border-left-color: #d99b16; background: #fffaf0; }
.pr-alert-danger { border-color: #f0c7c2; border-left-color: #c84e3d; background: #fff5f3; }
.pr-alert-success { border-color: #bfe2d3; border-left-color: #15966f; background: #f0fbf6; }

.pr-external-browser-alert { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; padding: 15px 16px; border: 1px solid #f2cc82; border-radius: 14px; color: #744b0b; background: linear-gradient(135deg, #fffaf0 0%, #fff4df 100%); box-shadow: 0 5px 16px rgba(217, 155, 22, .1); }
.pr-external-browser-alert-icon { display: inline-flex; flex: 0 0 38px; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; color: #fff; background: #06c755; box-shadow: 0 3px 8px rgba(6, 199, 85, .22); font-size: 16px; }
.pr-external-browser-alert-content { min-width: 0; }
.pr-external-browser-alert-label { display: inline-block; padding: 3px 9px; border-radius: 20px; color: #078b43; background: #e8f9ee; font-size: 12px; line-height: 1.35; }
.pr-external-browser-alert strong { display: block; margin-top: 5px; color: #684208; font-size: 16px; font-weight: 600; line-height: 1.4; }
.pr-external-browser-alert strong i { margin-right: 4px; }
.pr-external-browser-alert p { margin: 4px 0 0; color: #795d31; font-size: 14px; line-height: 1.65; }
.pr-external-browser-url-row { display: flex; align-items: center; gap: 8px; min-width: 0; margin-top: 10px; padding: 6px; border: 1px solid #bfe2d3; border-radius: 12px; background: linear-gradient(135deg, #f0fbf6 0%, #fff 100%); box-shadow: 0 4px 12px rgba(21, 150, 111, .06); }
.pr-external-browser-url { display: block; flex: 1 1 auto; width: auto; min-width: 0; overflow-wrap: anywhere; padding: 7px 8px; color: #087f5b; font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 13px; line-height: 1.5; }
.pr-external-browser-url-row .pr-btn { display: inline-flex; flex: 0 0 38px; align-items: center; align-self: center; justify-content: center; width: 38px; height: 38px; padding: 0; white-space: nowrap; }
.pr-page .pr-external-browser-copy-button { color: #087f5b !important; border-color: #a9d8c2; background: #f4fcf8 !important; }
.pr-page .pr-external-browser-copy-button:hover,
.pr-page .pr-external-browser-copy-button:focus { color: #fff !important; border-color: #15966f !important; background: #15966f !important; }

.pr-list-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-bottom: 10px; padding: 15px 17px; border: 1px solid #e3ecef; border-radius: 12px; background: #fff; }
.pr-list-item-main { min-width: 0; }
.pr-list-item h4 { margin: 0 0 2px; font-size: 15px; font-weight: 500; line-height: 1.35; }
.pr-list-item p { margin: 0; color: var(--pr-muted); font-size: 13px; line-height: 1.5; }
.pr-documents .pr-list-item h4 { font-size: 14px; font-weight: 500; }
.pr-review-page .pr-list-item h4 { font-size: 15px; font-weight: 500; }
.pr-review-page .pr-list-item p { font-size: 15px; }
.pr-list-actions { flex: 0 0 auto; white-space: nowrap; }
.pr-list-item.is-attention { border-color: #edcf8d; background: #fffdf7; }
.pr-list-item.is-complete { background: #fbfdfc; }
.pr-education-title { margin: 0 0 5px !important; color: var(--pr-text); font-size: 14px; font-weight: 400; line-height: 1.5; }
.pr-education-level { color: var(--pr-primary-dark); font-size: 14px; font-weight: 600; }
.pr-education-degree { margin-left: 8px; color: var(--pr-text); font-size: 14px; font-weight: 400; }
.pr-education-academy { margin-top: 0 !important; color: var(--pr-muted); font-size: 13px !important; line-height: 1.5; }

.pr-data-table-wrap { margin: 0 -4px -5px; }
.pr-data-table { margin-bottom: 0; border-collapse: separate; border-spacing: 0; }
.pr-data-table > thead > tr > th { padding: 11px 13px; border-bottom: 2px solid #d8e5e9; color: #45606e; background: #f4f8f9; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pr-data-table > tbody > tr > td { padding: 13px; border-top: 1px solid #e3ecef; vertical-align: middle; font-size: 14px; }
.pr-data-table > tbody > tr:first-child > td { border-top: 0; }
.pr-data-table .pr-badge { margin-top: 0; margin-left: 8px; padding: 3px 8px; vertical-align: middle; }
.pr-page .table { font-size: 13px; }
.pr-relation-category { font-weight: 400; }
.pr-relation-person-name { font-weight: 400; }
.pr-table-actions { min-width: 88px; white-space: nowrap; }
.pr-table-add-link { display: inline-block; margin-top: 7px; color: var(--pr-accent); font-size: 13px; font-weight: 500; text-decoration: none !important; }
.pr-table-add-link:hover { color: var(--pr-primary-dark); }

.pr-relation-groups { margin-top: 2px; }
.pr-relation-group + .pr-relation-group { margin-top: 22px; }
.pr-relation-group-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; padding: 0 2px 8px; border-bottom: 1px solid #e1eaed; }
.pr-relation-group-title { display: inline-block; margin: 0 8px 0 0; color: var(--pr-primary-dark); font-size: 15px; font-weight: 600; }
.pr-relation-group-title i { width: 20px; color: var(--pr-primary); text-align: center; }
.pr-relation-group-header .pr-badge { padding: 3px 8px; vertical-align: 2px; }
.pr-relation-card { margin-bottom: 12px; padding: 14px 16px; border: 1px solid #e0eaed; border-radius: 11px; background: #fbfdfd; }
.pr-relation-card:last-child { margin-bottom: 0; }
.pr-relation-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 9px; border-bottom: 1px solid #e7eff1; }
.pr-relation-card-identity { min-width: 0; }
.pr-relation-person-name { margin: 0; color: var(--pr-text); font-size: 15px; font-weight: 600; line-height: 1.45; }
.pr-relation-person-name-en { display: block; margin-top: 1px; color: var(--pr-muted); font-size: 13px; line-height: 1.45; }
.pr-relation-actions { flex: 0 0 auto; white-space: nowrap; }
.pr-relation-actions .pr-btn + .pr-btn { margin-left: 4px; }
.pr-relation-detail-section { margin-top: 11px; }
.pr-relation-detail-section h5 { margin: 0 0 5px; color: var(--pr-primary-dark); font-size: 13px; font-weight: 600; }
.pr-relation-detail-grid { display: flex; flex-wrap: wrap; margin: 0 -7px; }
.pr-relation-detail { display: flex; align-items: baseline; gap: 6px; width: 33.3333%; padding: 4px 7px; }
.pr-relation-detail.is-wide { width: 100%; }
.pr-relation-detail-label { flex: 0 0 auto; color: var(--pr-muted); font-size: 15px; line-height: 1.4; white-space: nowrap; }
.pr-relation-detail-value { min-width: 0; color: var(--pr-text); font-size: 15px; line-height: 1.55; word-break: break-word; }
.pr-relation-empty { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 15px; border: 1px dashed #cbdde2; border-radius: 10px; color: var(--pr-muted); background: #f9fbfc; font-size: 13px; }

.pr-success-page { max-width: 860px; margin-top: 34px; margin-bottom: 50px; }
.pr-success-card { padding: 36px 42px; border: 1px solid #dce8eb; border-radius: 16px; background: #fff; box-shadow: 0 10px 28px rgba(23,48,66,.08); text-align: center; }
.pr-success-icon { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; margin-bottom: 14px; border-radius: 50%; color: #087f5b; background: #e6f8f1; font-size: 32px; }
.pr-success-card h1 { margin: 0; color: var(--pr-primary-dark); font-size: 28px; font-weight: 600; line-height: 1.3; }
.pr-success-lead { margin: 7px 0 22px; color: var(--pr-muted); font-size: 16px; line-height: 1.6; }
.pr-success-notice { margin-top: 14px; padding: 15px 18px; border-radius: 11px; text-align: left; }
.pr-success-notice { border: 1px solid #bfe2d3; background: #f0fbf6; }
.pr-success-notice h2 { margin: 0 0 5px; color: var(--pr-primary-dark); font-size: 17px; font-weight: 600; }
.pr-success-notice h2 i { width: 20px; color: var(--pr-accent); text-align: center; }
.pr-success-notice p { margin: 0; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-success-account { display: flex; align-items: flex-start; gap: 15px; margin-top: 14px; padding: 16px 18px; border: 1px solid #bfd4f8; border-left: 4px solid #3568e8; border-radius: 11px; background: #f4f7ff; text-align: left; }
.pr-success-account-icon { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 11px; color: #3568e8; background: #e2eaff; font-size: 20px; }
.pr-success-account-content { min-width: 0; }
.pr-success-account h2 { margin: 0 0 5px; color: #244aa8; font-size: 17px; font-weight: 600; }
.pr-success-account p { margin: 0; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-success-account-list { margin: 4px 0 0; padding-left: 22px; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-success-account-list li + li { margin-top: 2px; }
.pr-success-account .pr-btn { margin-top: 11px; }
.pr-btn-icit { background: #3568e8; }
.pr-btn-icit:hover, .pr-btn-icit:focus { background: #244aa8; }
.pr-success-contact { margin: 20px 0; color: var(--pr-muted); font-size: 15px; line-height: 1.7; }
.pr-success-contact strong { color: var(--pr-primary-dark); font-weight: 600; }

.pr-form-section { margin-top: 6px; padding-top: 16px; }
.pr-form-section-title { margin: 0 0 12px; padding-bottom: 8px; color: var(--pr-primary-dark); border-bottom: 1px solid #dfeaec; font-size: 15px; font-weight: 600; }
.pr-form-section-title i { width: 22px; color: var(--pr-primary); text-align: center; }
.pr-profile-additional-subsection { margin: 10px 0 4px; padding: 8px; border: 1px solid #dfeaec; border-radius: 8px; }
.pr-profile-military-subsection { margin-bottom: 16px; }
.pr-profile-additional-section .help-block { font-size: 13px; }
.pr-form-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid #dfeaec; text-align: right; }
.pr-profile-form-actions { justify-content: flex-start; }
.pr-profile-form-navigation { display: flex; justify-content: flex-end; margin-top: 12px; padding-top: 12px; border-top: 1px solid #dfeaec; }
.pr-upload-panel { margin-bottom: 22px; padding: 18px; border: 1px solid #dce8eb; border-radius: 12px; background: #f8fbfc; }
.pr-upload-panel .pr-form-actions { margin-top: 2px; padding-top: 16px; }
.pr-section-navigation { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid #dfeaec; }
.pr-review-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 16px; padding: 14px; border: 1px solid #dfeaec; border-radius: 12px; background: #f8fbfc; }
.pr-review-summary span, .pr-review-summary strong { display: block; }
.pr-review-page .pr-review-summary span { margin-bottom: 3px; color: var(--pr-muted); font-size: 15px; }
.pr-review-page .pr-review-summary strong { font-size: 15px; }
.pr-submit-panel { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 16px; border: 1px solid #bfe2d3; border-radius: 12px; background: #f4fbf8; }
.pr-review-page .pr-submit-panel p { margin: 3px 0 0; color: var(--pr-muted); font-size: 15px; }
.pr-submit-panel form { margin: 0; }
.pr-blocking-list { margin: 8px 0 0; padding-left: 20px; }

.pr-page .form-control {
    height: 40px;
    padding: 8px 12px;
    border-color: #cfdee3;
    border-radius: 8px !important;
    color: var(--pr-text);
    line-height: 1.42857143;
    box-shadow: none;
}
.pr-page select.form-control:not([multiple]):not(.select2-hidden-accessible) {
    padding-right: 36px;
    background-color: #fff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%235d7480' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
.pr-page textarea.form-control {
    height: auto;
    min-height: 92px;
    padding: 10px 12px;
    line-height: 1.55;
    resize: vertical;
}
.pr-page input.form-control[type="file"] {
    height: auto;
    min-height: 40px;
    padding: 7px 10px;
}
.pr-page .file-input .file-caption .input-group > .file-caption-name {
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 38px;
    border-top-left-radius: 8px !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 8px !important;
}
.pr-page .file-input .file-caption .input-group-btn > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 40px;
    padding-top: 0;
    padding-bottom: 0;
    line-height: 1.2;
    border-radius: 0 !important;
}
.pr-page .file-input .file-caption .input-group-btn > .btn:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
.pr-page .file-input-new .fileinput-remove-button {
    display: none !important;
}
.pr-page .select2-container--krajee-bs3 .select2-selection,
.pr-page .select2-container--bootstrap .select2-selection {
    border-color: #cfdee3;
    border-radius: 8px !important;
    box-shadow: none;
}
.pr-page .select2-container--krajee-bs3 .select2-selection--single,
.pr-page .select2-container--bootstrap .select2-selection--single {
    height: 40px;
    padding: 9px 30px 9px 12px;
}
.pr-page .select2-container--krajee-bs3 .select2-selection--single .select2-selection__arrow,
.pr-page .select2-container--bootstrap .select2-selection--single .select2-selection__arrow {
    height: 38px;
}
.pr-page .select2-container--krajee-bs3 .select2-selection__rendered,
.pr-page .select2-container--bootstrap .select2-selection__rendered {
    font-size: 15px;
}
.pr-page .form-control:focus { border-color: var(--pr-accent); box-shadow: 0 0 0 3px rgba(15,159,143,.1); }
.pr-page .control-label { color: #36505f; font-weight: 500; }
.pr-readonly { background: #f2f6f7 !important; color: #516a77; }
.pr-page .thai-datepicker-widget .thai-datepicker-input.pr-readonly[readonly] { background: #f2f6f7 !important; color: #516a77 !important; cursor: default; }
.pr-page .thai-datepicker-widget .thai-datepicker-input {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}
.pr-page .thai-datepicker-widget .input-group-addon {
    height: 40px;
    min-width: 48px;
    padding: 9px 13px;
    border-color: #cfdee3;
    border-left: 0;
    border-radius: 0 !important;
    color: #435b68;
    background: #f4f7f8;
    cursor: pointer;
}
.pr-page .thai-datepicker-widget .input-group-addon:last-child {
    border-top-right-radius: 8px !important;
    border-bottom-right-radius: 8px !important;
}
.pr-page .thai-datepicker-widget .input-group-addon:hover {
    color: var(--pr-primary-dark);
    background: #e9f2f4;
}
.pr-education-default { margin: 4px 0 18px; }
.pr-education-default .form-group,
.pr-education-default-options { margin: 0; }
.pr-education-default-options label { display: inline-block; margin: 0 20px 0 0; color: #36505f; font-weight: 500; }
.pr-education-default-options input { margin-right: 5px; }
.pr-education-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; color: var(--pr-muted); font-size: 13px; }
.pr-education-meta span { display: inline-flex; align-items: center; gap: 5px; }
.pr-education-meta i { width: 14px; color: var(--pr-primary); text-align: center; }
.pr-education-meta strong { color: #46606e; font-weight: 500; }
.pr-address-full { margin-top: 7px !important; color: #46606e !important; font-size: 14px !important; line-height: 1.7; }
.pr-address-full i { display: inline-block; width: 16px; margin-right: 4px; color: var(--pr-primary); text-align: center; vertical-align: middle; line-height: 1; }
.pr-address-contact { display: flex; flex-wrap: wrap; gap: 5px 20px; margin-top: 7px; color: var(--pr-muted); font-size: 14px; }
.pr-address-contact span { display: inline-flex; align-items: center; gap: 4px; }
.pr-address-contact i { display: inline-block; width: 16px; color: var(--pr-accent); text-align: center; vertical-align: middle; line-height: 1; }
.pr-address-contact strong { color: #46606e; font-weight: 500; }

.pr-btn { display: inline-block; padding: 9px 16px; border: 0; border-radius: 9px; color: #fff !important; background: var(--pr-primary); text-decoration: none !important; cursor: pointer; }
.pr-btn:hover { background: var(--pr-primary-dark); }
.pr-btn:disabled { opacity: .55; cursor: not-allowed; }
.pr-btn:disabled:hover { background: var(--pr-accent); }
.pr-btn:focus { outline: 3px solid rgba(15,159,143,.24); outline-offset: 2px; }
.pr-btn-accent { background: var(--pr-accent); }
.pr-btn-light { color: var(--pr-primary-dark) !important; border: 1px solid #cfdfe4; background: #fff; }
.pr-btn-light:hover, .pr-btn-light:focus { color: #fff !important; border-color: var(--pr-primary-dark); background: var(--pr-primary-dark); }
.pr-btn-success-light { color: #087f5b !important; border: 1px solid #bfe2d3; background: #f0fbf6; }
.pr-btn-success-light:hover, .pr-btn-success-light:focus { color: #fff !important; border-color: #15966f; background: #15966f; }
.pr-btn-header { color: #fff !important; border: 1px solid rgba(255,255,255,.38); background: rgba(255,255,255,.14); }
.pr-btn-header:hover, .pr-btn-header:focus { color: var(--pr-primary-dark) !important; background: #fff; }
.pr-btn-danger { background: #b94a3b; }
.pr-btn-sm { padding: 6px 10px; border-radius: 7px; font-size: 12px; }
.pr-review-page .pr-btn-sm { font-size: 15px; }
.pr-file-preview { max-width: 220px; max-height: 260px; padding: 5px; border: 1px solid #dce7ea; border-radius: 12px; background: #fff; }
.pr-empty { padding: 34px 20px; border: 1px dashed #cbdde2; border-radius: 13px; color: var(--pr-muted); background: #f9fbfc; text-align: center; }
.pr-error { max-width: 760px; margin: 34px auto 50px; }
.pr-error-card { padding: 32px 36px; border: 1px solid #dce8eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(23,48,66,.06); text-align: center; }
.pr-error-icon { display: inline-flex; align-items: center; justify-content: center; width: 58px; height: 58px; margin-bottom: 12px; border-radius: 50%; color: #c2410c; background: #fff0ec; font-size: 24px; }
.pr-error-code { margin-bottom: 14px; color: var(--pr-primary-dark); font-size: 24px; font-weight: 600; line-height: 1.2; }
.pr-error-message { padding: 13px 16px; border-left: 4px solid #d05242; border-radius: 8px; color: var(--pr-text); background: #fff5f3; font-size: 15px; line-height: 1.7; text-align: left; }
.pr-error-actions { margin-top: 22px; text-align: center; }

.pr-consent { max-width: 1380px; margin: 18px auto 24px; }
.pr-consent-panel { overflow: hidden; border: 1px solid #dce8eb; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(23,48,66,.06); }
.pr-consent-panel-body { padding: 20px; }
.pr-consent-panel-body > .pr-card-header { margin-bottom: 10px; padding-bottom: 6px; }
.pr-consent-panel-body > .pr-card-header .pr-card-title-icon { width: 28px; height: 28px; font-size: 12px; }
.pr-consent-panel-body > .pr-card-header .pr-card-title { font-size: 18px; font-weight: 600; }
.pr-consent-panel-body > .pr-card-header .pr-card-subtitle { display: none; margin-top: 0; font-size: 13px; }
@media (max-width: 767px) {
    .pr-consent-panel-body > .pr-card-header .pr-card-subtitle { display: block; }
}
.pr-consent-details { margin: 0 0 16px; }
.pr-consent-detail { padding: 0; }
.pr-consent-detail + .pr-consent-detail { margin-top: 14px; }
.pr-consent-detail h3 { margin: 0 0 4px; color: var(--pr-text); font-size: 15px; font-weight: 600; }
.pr-consent-detail h3 i { width: 18px; color: var(--pr-text); text-align: center; }
.pr-consent-detail p { margin: 0; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-consent-data-list { margin: 5px 0 0; padding-left: 20px; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-consent-data-list > li { padding-left: 3px; }
.pr-consent-thaid-logo { width: 34px; height: 34px; margin: 0 7px 3px 0; border-radius: 6px; vertical-align: middle; }
.pr-consent-data-list > li + li { margin-top: 4px; }
.pr-consent-data-list ul { margin: 2px 0 0; padding-left: 19px; }
.pr-consent-data-list ul li { padding-left: 2px; }
.pr-consent-process { margin: 0 0 16px; padding: 12px; border: 1px solid #dce8eb; border-radius: 10px; background: #f7fafb; }
.pr-consent-process-title { display: block; margin-bottom: 8px; color: var(--pr-text); font-size: 15px; font-weight: 600; }
.pr-consent-process-title i { width: 18px; color: var(--pr-primary); text-align: center; }
.pr-consent-process-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; color: var(--pr-text); font-size: 15px; line-height: 1.45; list-style: none; }
.pr-consent-process-step { display: flex; align-items: flex-start; gap: 9px; min-width: 0; min-height: 64px; padding: 11px; border: 1px solid #e0e8eb; border-radius: 9px; background: #fff; box-shadow: 0 2px 6px rgba(23,48,66,.04); }
.pr-consent-process-step-number { display: inline-flex; flex: 0 0 24px; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; background: var(--pr-primary); font-size: 12px; font-weight: 600; }
.pr-consent-process-step-content { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pr-consent-process-step-content strong { color: var(--pr-text); font-size: 14px; font-weight: 600; }
.pr-consent-process-step-content small { color: var(--pr-muted); font-size: 13px; line-height: 1.45; }
.pr-consent-note { margin: 0; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-consent-privacy { margin: 0 0 14px; padding: 10px 12px; border: 1px solid #dce8eb; border-radius: 10px; color: var(--pr-text); background: #f7fafb; font-size: 15px; line-height: 1.7; }
.pr-consent-privacy-title { display: block; margin-bottom: 3px; color: var(--pr-text); font-weight: 600; }
.pr-consent-privacy-title i { width: 18px; color: var(--pr-text); text-align: center; }
.pr-consent-privacy p { margin: 0 0 2px; }
.pr-consent-privacy ul { margin: 0; padding-left: 20px; }
.pr-consent-privacy li { padding-left: 2px; }
.pr-consent-data-list a,
.pr-consent-privacy a,
.pr-consent-contact a { color: #337ab7; font-weight: 500; }
.pr-consent-data-list a:hover,
.pr-consent-privacy a:hover,
.pr-consent-contact a:hover { color: #23527c; }
.pr-consent .pr-alert { margin-bottom: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.7; }
.pr-consent-confirmation { margin-top: 14px; padding: 10px 16px; border: 1px solid #bfd4f8; border-left: 4px solid #3568e8; border-radius: 10px; background: #f4f7ff; }
.pr-consent-confirmation .form-group { margin-bottom: 0; }
.pr-consent-confirmation .checkbox { margin: 0; }
.pr-consent-confirmation label { font-size: 15px; font-weight: 500; line-height: 1.7; cursor: pointer; }
.pr-consent-contact { margin: 14px 0 14px; color: var(--pr-text); font-size: 15px; line-height: 1.7; }
.pr-consent-contact i { width: 16px; margin-right: 4px; color: var(--pr-text); text-align: center; }
.pr-consent-actions { margin-top: 14px; text-align: center; }

@media (max-width: 900px) {
    .pr-col-2, .pr-col-3, .pr-col-4 { width: 50%; }
    .pr-col-8, .pr-col-9, .pr-col-10 { width: 100%; }
    .pr-dashboard-overview { flex-direction: column; }
    .pr-dashboard-deadline { flex-basis: auto; padding-top: 18px; padding-left: 0; border-top: 1px solid #e1eaed; border-left: 0; }
    .pr-dashboard-work { position: static; }
}

@media (max-width: 600px) {
    .pr-header-card { border-radius: 13px; }
    .pr-hero { align-items: stretch; flex-direction: column; padding: 13px; }
    .pr-hero h1,
    .pr-hero h2 { font-size: 18px; }
    .pr-hero-actions { align-self: flex-end; }
    .pr-person-summary { align-items: flex-start; flex-wrap: wrap; margin-top: 0; padding: 8px 10px; }
    .pr-person-summary-content { flex: 1 1 calc(100% - 43px); }
    .pr-person-name { white-space: normal; }
    .pr-person-details { display: block; }
    .pr-person-details span { display: block; }
    .pr-person-details span + span:before { display: none; }
    .pr-person-details span { white-space: normal; }
    .pr-person-status { flex: 0 0 auto; margin-top: 5px; margin-left: 43px; }
    .pr-registration-status { align-items: flex-start; margin-right: 13px; margin-left: 13px; padding: 9px 11px; }
    .pr-hero-meta { margin-top: 12px; }
    .pr-step-nav { margin: 0 13px 13px; padding: 0; }
    .pr-step-nav { align-items: flex-start; flex-wrap: wrap; }
    .pr-step-nav-links { flex: 1 1 100%; width: 100%; }
    .pr-registration-lock-status { margin-left: auto; }
    .pr-step-nav a { flex: 0 0 92px; min-width: 92px; padding: 8px 9px; }
    .pr-step-nav-links span { display: block; white-space: normal; overflow-wrap: anywhere; line-height: 1.25; }
    .pr-col-2, .pr-col-3, .pr-col-4, .pr-col-6, .pr-col-9, .pr-col-10 { width: 100%; }
    .pr-card { padding: 14px; border-radius: 12px; }
    .pr-consent { margin: 12px auto 18px; }
    .pr-consent-panel-header { align-items: flex-start; flex-direction: column; padding: 12px 16px; gap: 7px; }
    .pr-consent-panel-header h1 { font-size: 18px; }
    .pr-consent-panel-body { padding: 14px; }
    .pr-external-browser-alert { gap: 10px; margin-bottom: 16px; padding: 12px; border-radius: 12px; }
    .pr-external-browser-alert-icon { flex-basis: 34px; width: 34px; height: 34px; border-radius: 10px; font-size: 14px; }
    .pr-external-browser-alert strong { font-size: 15px; }
    .pr-external-browser-alert p { font-size: 14px; line-height: 1.6; }
    .pr-external-browser-url-row { gap: 6px; margin-top: 8px; padding: 5px; }
    .pr-external-browser-url { width: 100%; padding: 6px 5px; }
    .pr-external-browser-url-row .pr-btn { flex-basis: 36px; width: 36px; height: 36px; }
    .pr-error { margin: 20px auto 30px; }
    .pr-error-card { padding: 24px 16px; }
    .pr-success-page { margin-top: 20px; margin-bottom: 30px; }
    .pr-success-card { padding: 28px 16px; }
    .pr-success-card h1 { font-size: 23px; }
    .pr-success-lead { font-size: 15px; }
    .pr-consent-detail h3 { margin-bottom: 2px; }
    .pr-consent-privacy { padding: 9px 10px; }
    .pr-consent-process-list { grid-template-columns: 1fr; gap: 8px; }
    .pr-consent-process-step { min-height: 0; padding: 10px; }
    .pr-card-header, .pr-list-item { align-items: stretch; flex-direction: column; }
    .pr-education-list .pr-card-header > .pr-btn { align-self: flex-start; width: auto; }
    .pr-relation-group-header, .pr-relation-card-header { align-items: stretch; flex-direction: column; }
    .pr-relation-detail { width: 100%; }
    .pr-relation-actions { white-space: normal; }
    .pr-card-title-line { align-items: flex-start; flex-direction: column; gap: 4px; }
    .pr-list-actions { white-space: normal; }
    .pr-dashboard-overview { padding: 12px; }
    .pr-dashboard-overview-heading { flex-direction: column-reverse; }
    .pr-dashboard-summary { display: block; margin-top: 3px; }
    .pr-dashboard-task { gap: 9px; }
    .pr-dashboard-task-state { display: none; }
    .pr-dashboard-task-message { white-space: normal; }
    .pr-review-summary { grid-template-columns: 1fr; }
    .pr-submit-panel, .pr-section-navigation { align-items: stretch; flex-direction: column; }
    .pr-submit-panel .pr-btn, .pr-section-navigation .pr-btn { width: 100%; text-align: center; }
    .pr-data-table-wrap { overflow: visible; }
    .pr-data-table thead { display: none; }
    .pr-data-table, .pr-data-table tbody, .pr-data-table tr, .pr-data-table td { display: block; width: 100%; }
    .pr-data-table > tbody > tr { margin-bottom: 13px; padding: 10px 12px; border: 1px solid #dfeaec; border-radius: 11px; background: #fff; }
    .pr-data-table > tbody > tr > td { position: relative; min-height: 38px; padding: 8px 8px 8px 39%; border-top: 1px solid #eef3f5; text-align: left !important; }
    .pr-data-table > tbody > tr > td:first-child { border-top: 0; }
    .pr-data-table > tbody > tr > td:before { position: absolute; top: 8px; left: 8px; width: 32%; color: var(--pr-muted); font-size: 11px; content: attr(data-label); }
    .pr-data-table > tbody > tr > td[colspan] { padding-left: 39%; }
}
