* {
    box-sizing:border-box;
}
body {
    margin:0;
    background:#f4f7fb;
    font-family:Arial, sans-serif;
    color:#182230;
}
.hero {
    background:linear-gradient(120deg,#102744,#1d4775);
    color:white;
    padding:38px 20px 76px;
}
.hero-inner {
    max-width:980px;
    margin:auto;
    text-align: center;
}
.eyebrow {
    font-size:12px;
    letter-spacing:2px;
    text-transform:uppercase;
    color:#b9d3f5;
    font-weight:bold;
}
h1 {
    font-size:clamp(26px,4vw,38px);
    margin:10px 0 8px;
}
.hero p {
    margin:0;
    color:#d6e4f5;
}
.wrap {
    max-width:900px;
    margin:-42px auto 50px;
    padding:0 18px;
}
.card {
    background:#fff;
    border:1px solid #e5eaf1;
    border-radius:18px;
    box-shadow:0 12px 34px #19365b12;
    overflow:hidden;
}
.card-head {
    padding:24px 28px 18px;
    border-bottom:1px solid #e5eaf1;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
}
.card-head h2 {
    margin:0 0 5px;
    font-size:19px;
}
.card-head p,.muted {
    margin:0;
    color:#667085;
    font-size:13px;
}
.pill {
    background:#eaf8f1;
    color:#16845b;
    padding:7px 11px;
    border-radius:30px;
    font-size:12px;
    font-weight:bold;
}
.content {
    padding:26px 28px 30px;
}
.section-title {
    display:flex;
    align-items:center;
    gap:10px;
    font-weight:bold;
    margin:0 0 18px;
}
.num {
    width:27px;
    height:27px;
    border-radius:8px;
    background:#edf4ff;
    color:#2463eb;
    display:grid;
    place-items:center;
}
.mode-switch {
    display:flex;
    gap:8px;
    padding:5px;
    background:#f2f5fa;
    border-radius:11px;
    width:max-content;
    margin-bottom:20px;
}
.mode-switch button {
    background:transparent;
    color:#667085;
    min-height:38px;
}
.mode-switch button.active {
    background:white;
    color:#2463eb;
}
.grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:18px;
}
.field {
    display:flex;
    flex-direction:column;
    gap:7px;
}
.field.full {
    grid-column:1/-1;
}
label {
    font-size:13px;
    font-weight:bold;
    color:#344054;
}
input,select {
    width:100%;
    height:46px;
    border:1px solid #d8dee8;
    border-radius:9px;
    padding:0 13px;
    font-size:14px;
}
input[readonly] {
    background:#f8fafc;
}
.lookup {
    display:flex;
    gap:9px;
}
.lookup input {
    flex:1;
    min-width:0;
}
small,.field small {
    font-size:12px;
    color:#667085;
    line-height:1.5;
}
button,.button-link {
    border:0;
    border-radius:9px;
    padding:0 18px;
    background:#2463eb;
    color:white;
    font-weight:bold;
    font-size:13px;
    cursor:pointer;
    min-height:46px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    text-decoration:none;
}
.secondary {
    background:#fff;
    color:#475467;
    border:1px solid #d8dee8;
}
.divider {
    height:1px;
    background:#e5eaf1;
    margin:27px 0;
}
.size-grid {
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:10px;
}
.size-option {
    position:relative;
}
.size-option input {
    position:absolute;
    opacity:0;
}
.size-option label {
    height:47px;
    border:1px solid #d8dee8;
    border-radius:9px;
    display:grid;
    place-items:center;
    cursor:pointer;
}
.size-option input:checked+label {
    border:2px solid #2463eb;
    background:#edf4ff;
    color:#2463eb;
}
.spouse {
    margin-top:23px;
    border:1px solid #dce8fb;
    background:#f8fbff;
    border-radius:13px;
    padding:20px;
}
.spouse-top {
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:17px;
}
.spouse h3 {
    margin:0 0 4px;
    font-size:15px;
}
.tag {
    font-size:11px;
    color:#2457b8;
    background:#e8f0ff;
    border-radius:20px;
    padding:6px 9px;
    font-weight:bold;
}
.hidden {
    display:none!important;
}
.notice {
    background:#f8fafc;
    border:1px solid #e5eaf1;
    border-radius:10px;
    padding:13px;
    margin-top:18px;
    color:#596579;
    font-size:12px;
    line-height:1.5;
}
.actions {
    display:flex;
    justify-content:flex-end;
    gap:10px;
    margin-top:27px;
}
.footer {
    text-align:center;
    color:#98a2b3;
    font-size:11px;
    padding:18px;
}
.alert {
    padding:12px;
    border-radius:9px;
    margin-top:15px;
    font-size:13px;
    background:#fff0f0;
    color:#a52828;
}
.success-wrap {
    min-height:100vh;
    display:grid;
    place-items:center;
    padding:20px;
}
.success-card,.login-card {
    width:min(100%,480px);
    padding:34px;
    text-align:center;
}
.success-icon {
    width:56px;
    height:56px;
    border-radius:50%;
    background:#eaf8f1;
    color:#16845b;
    display:grid;
    place-items:center;
    font-size:30px;
    margin:0 auto 18px;
}
.success-card p {
    color:#667085;
}
.code-box {
    padding:14px;
    background:#f5f8fc;
    border:1px dashed #cbd5e1;
    border-radius:10px;
    margin:22px 0;
    display:grid;
    gap:5px;
}
.login-card {
    text-align:left;
}
.login-card form {
    display:grid;
    gap:16px;
    margin-top:22px;
}
.full-button {
    width:100%;
}
.report-header {
    background:#102744;
    color:white;
    padding:28px max(20px,calc((100% - 1200px)/2));
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
}
.report-header p {
    color:#d6e4f5;
}
.report-wrap {
    max-width:1200px;
    margin:25px auto;
    padding:0 18px;
}
.stats-grid {
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:14px;
    margin-bottom:20px;
}
.stat {
    background:white;
    border:1px solid #e5eaf1;
    border-radius:13px;
    padding:18px;
}
.stat span {
    display:block;
    color:#667085;
    font-size:12px;
}
.stat strong {
    font-size:28px;
    display:block;
    margin-top:7px;
}
.report-card,.summary-card {
    padding:20px;
    margin-bottom:20px;
}
.report-toolbar {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}
.toolbar-actions {
    display:flex;
    gap:8px;
}
.small {
    min-height:36px;
    padding:0 12px;
    font-size:12px;
}
.filters {
    display:flex;
    gap:9px;
    margin:18px 0;
    align-items:center;
}
.filters input {
    max-width:220px;
    height:40px;
}
.filters button {
    min-height:40px;
}
.reset-link {
    color:#2463eb;
    text-decoration:none;
    font-size:13px;
}
.table-wrap {
    overflow:auto;
}
table {
    width:100%;
    border-collapse:collapse;
    white-space:nowrap;
    font-size:12px;
}
th,td {
    padding:12px 10px;
    border-bottom:1px solid #edf0f4;
    text-align:left;
}
th {
    background:#f8fafc;
}
.empty {
    text-align:center;
    color:#98a2b3;
    padding:30px;
}
.summary-grid {
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.summary-card h2 {
    font-size:17px;
    margin:0;
}
.bar-row {
    display:grid;
    grid-template-columns:45px 1fr 30px;
    gap:10px;
    align-items:center;
    margin-top:14px;
    font-size:12px;
}
.bar {
    height:9px;
    border-radius:20px;
    background:#edf1f7;
    overflow:hidden;
}
.bar i {
    display:block;
    height:100%;
    background:#2463eb;
}
.bar-row b {
    text-align:right;
}
@media(max-width:700px) {
    .grid {
        grid-template-columns:1fr;
    }
    .field.full {
        grid-column:auto;
    }
    .size-grid {
        grid-template-columns:repeat(3,1fr);
    }
    .content,.card-head {
        padding-left:19px;
        padding-right:19px;
    }
    .lookup {
        flex-direction:column;
    }
    .actions {
        flex-direction:column-reverse;
    }
    .actions button {
        width:100%;
    }
    .stats-grid {
        grid-template-columns:1fr 1fr;
    }
    .summary-grid {
        grid-template-columns:1fr;
    }
    .filters {
        flex-wrap:wrap;
    }
    .filters input {
        max-width:none;
        flex:1;
    }
    .report-toolbar {
        align-items:flex-start;
        flex-direction:column;
    }
}
@media print {
    .report-header {
        background:white;
        color:#111;
        padding:10px 0;
    }
    .report-header form,.filters,.toolbar-actions {
        display:none!important;
    }
    .report-wrap {
        margin:0;
    }
    .table-wrap {
        overflow:visible;
    }
    table {
        font-size:9px;
        white-space:normal;
    }
    .report-card,.stat {
        box-shadow:none;
    }
}
/* Mobile usability refinements */

button, input, select, a {
    -webkit-tap-highlight-color: transparent;
}
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible {
    outline: 3px solid #9bbcff;
    outline-offset: 2px;
}
@media (max-width: 520px) {
    .hero {
        padding: 28px 16px 66px;
    }
    .hero-inner {
        padding: 0 2px;
        text-align: center;
    }
    .wrap {
        padding: 0 12px;
        margin-top: -36px;
    }
    .card {
        border-radius: 14px;
    }
    .card-head {
        align-items: flex-start;
    }
    .pill {
        white-space: nowrap;
    }
    .content {
        padding: 20px 15px 22px;
    }
    .mode-switch {
        width: 100%;
    }
    .mode-switch button {
        flex: 1;
        padding: 0 8px;
        font-size: 12px;
    }
    .size-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }
    .size-option label {
        min-height: 48px;
    }
    .spouse {
        padding: 15px;
    }
    .actions button {
        min-height: 48px;
    }
    .success-card, .login-card {
        padding: 25px 18px;
    }
    .report-header {
        padding: 20px 15px;
        align-items: flex-start;
    }
    .report-wrap {
        padding: 0 12px;
    }
    .stats-grid {
        gap: 9px;
    }
    .stat {
        padding: 13px;
    }
    .stat strong {
        font-size: 23px;
    }
    .report-card, .summary-card {
        padding: 14px;
    }
    .toolbar-actions {
        width: 100%;
        flex-wrap: wrap;
    }
    .toolbar-actions > * {
        flex: 1;
    }
    .filters {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .filters input[name="q"] {
        grid-column: 1 / -1;
    }
    .filters button {
        width: 100%;
    }
    .summary-grid {
        gap: 10px;
    }
}
*/* Self-service size update modal */*

.update-entry {
    max-width:900px;
    margin:18px auto 0;
    padding:18px 20px;
    background:#fff;
    border:1px solid #e5eaf1;
    border-radius:14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    box-shadow:0 8px 24px #19365b0a;
}
.update-entry strong {
    font-size:14px;
}
.update-entry p {
    margin:5px 0 0;
    color:#667085;
    font-size:12px;
    line-height:1.5;
}
.modal-backdrop {
    position:fixed;
    inset:0;
    z-index:1000;
    background:rgba(15,29,48,.58);
    display:grid;
    place-items:center;
    padding:18px;
    overflow-y:auto;
}
.update-modal {
    position:relative;
    width:min(100%,560px);
    max-height:min(92vh,850px);
    overflow-y:auto;
    background:#fff;
    border-radius:18px;
    padding:30px;
    box-shadow:0 24px 70px #0b1d3540;
}
.modal-close {
    position:absolute;
    top:12px;
    right:14px;
    width:36px;
    min-height:36px;
    height:36px;
    padding:0;
    border-radius:50%;
    background:#f1f4f8;
    color:#344054;
    font-size:24px;
}
.modal-kicker {
    color:#2463eb;
    font-size:10px;
    font-weight:800;
    letter-spacing:1.5px;
}
.update-modal h2 {
    margin:9px 0 8px;
    font-size:23px;
}
.update-modal p {
    color:#667085;
    font-size:13px;
    line-height:1.6;
    margin:0 0 20px;
}
.update-modal form {
    display:grid;
    gap:16px;
}
.update-modal .full-button {
    width:100%;
}
.verified-name {
    background:#eff6ff;
    border-radius:9px;
    padding:11px 13px;
    color:#1d4f91!important;
}
.alert.success {
    background:#eaf8f1;
    color:#13744f;
}
@media(max-width:600px) {
    .update-entry {
        margin:14px 12px 0;
        padding:15px;
        align-items:stretch;
        flex-direction:column;
    }
    .update-entry button {
        width:100%;
    }
    .modal-backdrop {
        padding:10px;
        align-items:end;
    }
    .update-modal {
        width:100%;
        max-height:92dvh;
        padding:25px 17px 20px;
        border-radius:18px 18px 12px 12px;
    }
    .update-modal h2 {
        font-size:20px;
        padding-right:24px;
    }
    .update-modal .size-grid {
        grid-template-columns:repeat(3,minmax(0,1fr));
    }
}

.size-reference {
    margin: 18px 0 22px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.size-reference h3 {
    margin: 0 0 6px;
    font-size: 17px;
    color: #1e293b;
}

.size-reference p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
}

.size-table-wrapper {
    overflow-x: auto;
}

.size-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 10px;
    overflow: hidden;
}

.size-table th,
.size-table td {
    padding: 11px 10px;
    text-align: center;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

.size-table th {
    background: #0f2747;
    color: white;
    font-weight: 600;
}

.size-table tbody tr:last-child td {
    border-bottom: none;
}

.size-table tbody tr:nth-child(even) {
    background: #f8fafc;
}

.size-table td:first-child {
    font-weight: 700;
}

.size-reference small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}


.modal-backdrop.hidden {
    display: none !important;
}
.modal-backdrop:not(.hidden) {
    display: grid;
}
*/* Fix khusus field NIK: paksa tinggi input normal di desktop dan mobile. */*

\#nik {
    display: block !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    box-sizing: border-box !important;
    padding: 0 13px !important;
    border: 1px solid #d8dee8 !important;
    border-radius: 9px !important;
    font: 14px Arial, sans-serif !important;
    background: #fff !important;
    color: #182230 !important;
    appearance: none;
    -webkit-appearance: none;
}
.lookup {
    display: flex;
    align-items: stretch;
    gap: 9px;
    width: 100%;
}
.lookup input#nik {
    flex: 1 1 auto;
    min-width: 0;
}
@media (max-width: 700px) {
    .lookup {
        flex-direction: column;
        align-items: stretch;
    }
    .lookup input#nik {
        width: 100% !important;
        flex: none;
    }
    .lookup #searchBtn {
        width: 100%;
        min-height: 46px;
    }
}
*/* FINAL MODAL LAYOUT OVERRIDE - stronger selectors avoid old CSS conflicts */*

\#updateModal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 99999 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: 100vh !important;
    box-sizing: border-box !important;
    padding: 20px !important;
    margin: 0 !important;
    background: rgba(15, 29, 48, .62) !important;
    display: grid !important;
    place-items: center !important;
    overflow-y: auto !important;
}
\#updateModal.hidden {
    display: none !important;
}
\#updateModal:not(.hidden) {
    display: grid !important;
}
\#updateModal .update-modal {
    position: relative !important;
    display: block !important;
    width: min(100%, 540px) !important;
    max-width: 540px !important;
    max-height: calc(100vh - 40px) !important;
    height: auto !important;
    margin: auto !important;
    padding: 28px !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    background: #ffffff !important;
    color: #182230 !important;
    border: 1px solid #e5eaf1 !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 70px rgba(11, 29, 53, .28) !important;
}
\#updateModal .modal-close {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    width: 38px !important;
    min-width: 38px !important;
    height: 38px !important;
    min-height: 38px !important;
    border-radius: 50% !important;
    padding: 0 !important;
}
\#updateModal .modal-step,

\#updateModal .modal-step form,

\#updateModal .field {
    box-sizing: border-box !important;
    width: 100% !important;
}
\#updateModal .field input {
    width: 100% !important;
    min-height: 46px !important;
    box-sizing: border-box !important;
}
\#updateModal .full-button,

\#updateModal #verifyUpdateButton {
    width: 100% !important;
    min-height: 46px !important;
}
@media (max-width: 600px) {
    #updateModal {
        padding: 12px !important;
        align-items: center !important;
    }
    #updateModal .update-modal {
        width: 100% !important;
        max-width: 440px !important;
        max-height: calc(100dvh - 24px) !important;
        padding: 25px 17px 20px !important;
        border-radius: 18px !important;
    }
}
/* SIMS JAYA KALTIM branding */

.company-brand {
    width:min(100%,560px);
    margin:0 0 24px;
    padding:12px 18px;
    background:#fff;
    border-radius:12px;
    box-shadow:0 6px 20px rgba(0,0,0,.08);
    display: block;
    margin: 0 auto;
}
.company-brand img {
    display:block;
    width:100%;
    height:auto;
    max-height:110px;
    object-fit:contain;
    display: block;
    margin: 0 auto;
}
.hero .organizer {
    margin:0 0 10px;
    color:#fff;
    font-size:14px;
}
.hero .organizer strong {
    color:#fff;
}
.success-brand {
    width:min(100%,360px);
    margin:0 auto 22px;
    padding:10px;
    background:#fff;
    border-radius:10px;
}
.success-brand img {
    display:block;
    width:100%;
    height:auto;
    object-fit:contain;
}
.organizer-note {
    font-size:12px;
    color:#667085;
}
.report-brand img {
    display:block;
    width:min(100%,360px);
    max-height:75px;
    object-fit:contain;
    background:#fff;
    padding:8px;
    border-radius:8px;
    margin-bottom:14px;
}
@media(max-width:600px) {
    .company-brand {
        width:100%;
        padding:9px 12px;
        margin-bottom:20px;
    }
    .company-brand img {
        max-height:75px;
    }
    .hero .organizer {
        font-size:12px;
    }
    .report-brand img {
        width:100%;
        max-width:260px;
    }
}
