:root {
    --bg: #f2f8ff;
    --surface: #ffffff;
    --ink: #071b44;
    --muted: #536984;
    --line: #cfe0f1;
    --primary: #0b68e8;
    --primary-dark: #082d88;
    --accent: #ff8905;
    --accent-soft: #fff2db;
    --navy: #061d62;
    --sidebar: #083894;
    --sky-soft: #e8f4ff;
    --danger: #b42318;
    --danger-soft: #fff0ed;
    --success: #166c3c;
    --success-soft: #e9f9ed;
    --info: #075acb;
    --info-soft: #edf3ff;
    --warning: #92400e;
    --warning-soft: #fff7e6;
    --muted-soft: #edf1f3;
    --shadow: 0 16px 34px rgba(6, 29, 98, 0.1);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    font-family: "Segoe UI", Tahoma, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

.register-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0;
    overflow-y: auto;
    color: #f8fbff;
    background: var(--sidebar);
}

.register-brand {
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 0.75rem;
    align-items: start;
    padding: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--navy);
}

.register-logo {
    width: 70px;
    height: 70px;
    display: grid;
    place-items: center;
}

.register-logo img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.register-brand h1,
.register-brand p {
    margin: 0;
}

.register-brand h1 {
    color: #ffffff;
    font-size: 1.18rem;
    line-height: 1.2;
}

.register-brand p {
    margin-top: 0.2rem;
    color: #ffd677;
    font-size: 0.84rem;
    font-weight: 800;
}

.register-brand small {
    display: block;
    margin-top: 0.12rem;
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.25;
}

.register-menu {
    display: grid;
    gap: 0;
    padding: 0.55rem 0;
}

.register-menu a,
.sidebar-group summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.72rem 1rem;
    border-radius: 0;
    color: #e9f3ff;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.25;
}

.register-menu a:hover,
.register-menu a.active,
.sidebar-group summary:hover,
.sidebar-group summary.active {
    color: #ffffff;
    background: rgba(4, 24, 86, 0.72);
    box-shadow: inset 4px 0 0 var(--accent);
    text-decoration: none;
}

.sidebar-group {
    min-width: 0;
}

.sidebar-group summary {
    cursor: pointer;
    list-style: none;
    user-select: none;
}

.sidebar-group summary::-webkit-details-marker {
    display: none;
}

.sidebar-group summary::after {
    content: ">";
    margin-left: auto;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.9rem;
    transition: transform 0.16s ease;
}

.sidebar-group[open] summary::after {
    transform: rotate(90deg);
}

.sidebar-submenu {
    display: grid;
    padding: 0.25rem 0;
    background: rgba(4, 24, 86, 0.2);
}

.sidebar-submenu a {
    min-height: 38px;
    padding-left: 2.8rem;
    color: #dcecff;
    font-weight: 600;
}

.register-user-panel {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    margin-top: auto;
    margin-right: 1rem;
    margin-left: 1rem;
    padding: 0.8rem;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.register-user-avatar,
.user-photo-preview {
    border: 2px solid rgba(255, 255, 255, 0.44);
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #df6300);
    font-weight: 900;
}

.register-user-avatar {
    width: 46px;
    height: 46px;
    font-size: 0.92rem;
}

.register-user-avatar img,
.user-photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.register-user-meta {
    min-width: 0;
    display: grid;
    gap: 0.2rem;
}

.register-user-panel span,
.register-user-panel strong,
.register-user-panel small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.register-user-panel span {
    font-weight: 700;
}

.register-user-panel strong,
.register-user-panel small {
    color: #cde5ff;
    font-size: 0.82rem;
}

.register-sidebar-footer {
    display: grid;
    gap: 0.45rem;
    padding: 0 1rem 1rem;
}

.register-sidebar-footer button {
    width: 100%;
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #df6300;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
}

.register-content {
    min-width: 0;
    padding: 1.3rem;
}

.service-mega-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: -1.3rem -1.3rem 1rem;
    border-bottom: 1px solid #cfe5ff;
    background: #e9f5ff;
    box-shadow: 0 10px 24px rgba(6, 29, 98, 0.1);
}

.service-mega-nav {
    min-height: 70px;
    display: flex;
    align-items: center;
    gap: 0.1rem;
    padding: 0 1rem;
    overflow-x: auto;
}

.service-mega-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.service-mega-dropdown summary {
    min-height: 70px;
    padding: 0 0.68rem;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: #536984;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    user-select: none;
}

.service-mega-dropdown summary::-webkit-details-marker {
    display: none;
}

.service-mega-dropdown summary::marker {
    content: "";
}

.service-mega-dropdown summary::after {
    content: "v";
    color: #7c95b7;
    font-size: 1rem;
    line-height: 1;
}

.service-mega-dropdown[open] summary,
.service-mega-dropdown summary.active,
.service-mega-dropdown summary:hover {
    color: var(--primary);
}

.service-mega-dropdown[open] summary::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -12px;
    width: 28px;
    height: 28px;
    transform: translateX(-50%) rotate(45deg);
    border-radius: 4px 0 0;
    background: #ffffff;
    box-shadow: -6px -6px 18px rgba(6, 29, 98, 0.08);
}

.service-mega-panel {
    position: fixed;
    top: 70px;
    left: 300px;
    width: min(640px, calc(100vw - 330px));
    max-height: calc(100vh - 92px);
    min-height: 260px;
    border: 1px solid #d8e6f4;
    border-radius: 6px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(6, 29, 98, 0.16);
    overflow-y: auto;
}

.service-mega-column {
    min-width: 0;
    padding: 1.2rem 1.28rem;
}

.service-mega-column + .service-mega-column {
    border-left: 1px solid #edf0f3;
}

.service-mega-column h3 {
    margin: 0 0 0.9rem;
    color: #536984;
    font-size: 0.92rem;
    font-weight: 800;
}

.service-mega-column a,
.service-mega-disabled {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin-bottom: 0.7rem;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.service-mega-column a {
    color: #536984;
}

.service-mega-column a:hover,
.service-mega-column a.active {
    color: var(--primary);
    text-decoration: none;
}

.service-mega-disabled {
    color: #98a3b3;
    cursor: default;
}

.register-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.register-topbar h2,
.register-topbar p {
    margin: 0;
}

.register-topbar h2 {
    font-size: 1.45rem;
    line-height: 1.2;
}

.register-topbar p {
    margin-top: 0.32rem;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.panel,
.stat-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.panel {
    padding: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.stat-card {
    min-height: 104px;
    padding: 0.9rem;
    display: grid;
    align-content: space-between;
    border-top: 3px solid var(--accent);
}

.stat-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.stat-card strong {
    font-size: 1.8rem;
    line-height: 1.1;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: 0.9rem;
    align-items: start;
}

.panel-wide {
    min-width: 0;
}

.side-stack {
    display: grid;
    gap: 0.9rem;
    align-content: start;
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.75rem;
}

.panel-heading h3 {
    margin: 0;
    font-size: 1rem;
}

.dashboard-board {
    display: grid;
    gap: 0.9rem;
}

.dashboard-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dashboard-metric {
    position: relative;
    min-height: 116px;
    border-radius: 8px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.8rem;
    align-items: center;
    padding: 0.92rem;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 16px 28px rgba(6, 29, 98, 0.16);
}

.dashboard-metric::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 62px;
    height: 4px;
    background: rgba(255, 255, 255, 0.76);
}

.dashboard-metric-blue {
    background: #075cdd;
}

.dashboard-metric-orange {
    background: #f67800;
}

.dashboard-metric-green {
    background: #0c8a4a;
}

.dashboard-metric-violet {
    background: #6426d7;
}

.dashboard-metric-code {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 8px;
    display: grid;
    place-items: center;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    font-size: 0.76rem;
    font-weight: 900;
}

.dashboard-metric div,
.dashboard-metric small,
.dashboard-metric strong,
.dashboard-metric div > span {
    min-width: 0;
}

.dashboard-metric small,
.dashboard-metric div > span {
    display: block;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.25;
}

.dashboard-metric small {
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-metric strong {
    display: block;
    margin: 0.08rem 0;
    color: #ffffff;
    font-size: 1.72rem;
    line-height: 1.1;
}

.dashboard-metric div > span {
    font-size: 0.75rem;
    font-weight: 700;
}

.dashboard-feature-grid {
    display: grid;
    grid-template-columns: minmax(360px, 1.05fr) minmax(340px, 0.95fr);
    gap: 0.9rem;
    align-items: stretch;
}

.dashboard-chart-panel,
.dashboard-wilayah-panel,
.dashboard-recent-panel,
.dashboard-service-panel,
.dashboard-quick-panel {
    min-width: 0;
}

.dashboard-chart-panel .panel-heading > span {
    color: var(--primary-dark);
    font-size: 0.78rem;
    font-weight: 800;
}

.dashboard-chart {
    height: 246px;
    border: 1px solid #d8e8f7;
    border-radius: 8px;
    display: grid;
    grid-template-columns: repeat(6, minmax(38px, 1fr));
    gap: 0.54rem;
    align-items: end;
    padding: 0.85rem 0.68rem 0.62rem;
    overflow-x: auto;
    background-color: #f7fbff;
    background-image: repeating-linear-gradient(
        to top,
        transparent 0,
        transparent 42px,
        rgba(11, 104, 232, 0.11) 43px
    );
}

.dashboard-month {
    min-width: 38px;
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 0.32rem;
    justify-items: center;
    align-items: end;
}

.dashboard-month strong,
.dashboard-month small {
    font-size: 0.76rem;
    line-height: 1.2;
}

.dashboard-month strong {
    color: var(--primary-dark);
}

.dashboard-month small {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-bar-track {
    width: min(38px, 100%);
    height: 100%;
    min-height: 138px;
    border-radius: 8px 8px 4px 4px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: rgba(11, 104, 232, 0.07);
}

.dashboard-bar-track b {
    width: 100%;
    min-height: 12px;
    border-radius: 8px 8px 4px 4px;
    background: var(--primary);
    box-shadow: inset 0 -10px 16px rgba(8, 45, 136, 0.22);
}

.dashboard-status-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.46rem;
    margin-top: 0.72rem;
}

.dashboard-status {
    min-height: 58px;
    border: 1px solid var(--line);
    border-left-width: 4px;
    border-radius: 8px;
    display: grid;
    align-content: center;
    gap: 0.1rem;
    padding: 0.48rem 0.58rem;
    background: #ffffff;
}

.dashboard-status span {
    min-width: 0;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.dashboard-status strong {
    font-size: 1.02rem;
}

.dashboard-status-warning {
    border-left-color: #f29b15;
}

.dashboard-status-info {
    border-left-color: var(--info);
}

.dashboard-status-error {
    border-left-color: var(--danger);
}

.dashboard-status-success {
    border-left-color: #15945b;
}

.dashboard-wilayah-panel {
    display: grid;
    align-content: start;
    background:
        linear-gradient(180deg, rgba(232, 244, 255, 0.62), rgba(255, 255, 255, 0) 180px),
        var(--surface);
}

.dashboard-wilayah-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
    margin-bottom: 0.82rem;
}

.dashboard-wilayah-summary > div {
    min-height: 84px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    align-content: center;
    padding: 0.78rem;
    background: rgba(255, 255, 255, 0.88);
}

.dashboard-wilayah-summary small {
    color: var(--muted);
    font-weight: 800;
}

.dashboard-wilayah-summary strong {
    color: var(--primary-dark);
    font-size: 1.65rem;
}

.dashboard-spread h4,
.dashboard-access-summary h4 {
    margin: 0;
    font-size: 0.9rem;
}

.dashboard-spread {
    display: grid;
    gap: 0.58rem;
}

.dashboard-spread p,
.dashboard-service-list p,
.dashboard-recent-list p {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-spread-row,
.dashboard-service-row {
    display: grid;
    gap: 0.28rem;
}

.dashboard-spread-row > div,
.dashboard-service-row > div {
    min-width: 0;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.55rem;
    color: #234b78;
    font-size: 0.84rem;
    font-weight: 800;
}

.dashboard-spread-row span,
.dashboard-service-row span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-spread-row b,
.dashboard-service-row b {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    display: block;
    overflow: hidden;
    background: #e6f0fb;
}

.dashboard-spread-row i,
.dashboard-service-row i {
    height: 100%;
    border-radius: inherit;
    display: block;
    background: var(--accent);
}

.dashboard-lower-grid {
    display: grid;
    grid-template-columns: minmax(320px, 1.1fr) minmax(260px, 0.82fr) minmax(300px, 0.9fr);
    gap: 0.9rem;
    align-items: stretch;
}

.dashboard-recent-list,
.dashboard-service-list {
    display: grid;
    gap: 0;
}

.dashboard-recent-row {
    min-width: 0;
    min-height: 54px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.56rem;
    padding: 0.52rem 0;
    color: var(--ink);
    font-weight: 700;
}

.dashboard-recent-row:first-child {
    border-top: 0;
    padding-top: 0;
}

.dashboard-recent-row:hover {
    color: var(--primary-dark);
    text-decoration: none;
}

.dashboard-recent-row div {
    min-width: 0;
}

.dashboard-recent-row strong,
.dashboard-recent-row small {
    display: block;
    overflow-wrap: anywhere;
}

.dashboard-recent-row small {
    margin-top: 0.12rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-service-list {
    gap: 0.64rem;
}

.dashboard-service-row i {
    background: var(--primary);
}

.dashboard-quick-panel {
    display: grid;
    align-content: start;
}

.dashboard-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.52rem;
}

.dashboard-quick-grid a {
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    align-content: center;
    gap: 0.12rem;
    padding: 0.64rem;
    color: var(--primary-dark);
    background: #f5faff;
}

.dashboard-quick-grid a:hover {
    border-color: #8fc1ff;
    background: #eaf4ff;
    text-decoration: none;
}

.dashboard-quick-grid strong,
.dashboard-quick-grid span {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-quick-grid strong {
    font-size: 0.9rem;
}

.dashboard-quick-grid span {
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.dashboard-access-summary {
    display: grid;
    gap: 0.48rem;
    margin-top: 0.8rem;
    padding-top: 0.72rem;
    border-top: 1px solid var(--line);
}

.dashboard-access-summary .panel-heading {
    margin-bottom: 0;
}

.dashboard-access-summary > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.36rem;
}

.dashboard-access-summary > div:last-child span {
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.26rem 0.48rem;
    color: var(--muted);
    background: #f7fbff;
    font-size: 0.72rem;
    font-weight: 800;
}

.dashboard-access-summary > div:last-child strong {
    color: var(--primary-dark);
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

.activity-log-table {
    table-layout: fixed;
}

.activity-log-table th {
    white-space: normal;
}

.activity-log-table th:nth-child(1) {
    width: 38px;
}

.activity-log-table th:nth-child(2) {
    width: 58px;
}

.activity-log-table th:nth-child(3) {
    width: 110px;
}

.activity-log-table th:nth-child(5) {
    width: 94px;
}

.activity-log-table th:nth-child(6) {
    width: 122px;
}

.activity-log-table td {
    overflow-wrap: anywhere;
}

.activity-log-table td:nth-child(3) {
    white-space: nowrap;
}

.activity-user-photo {
    width: 42px;
    height: 42px;
    border: 2px solid #d6e6f6;
    border-radius: 50%;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), #df6300);
    font-size: 0.78rem;
    font-weight: 900;
}

.activity-user-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.activity-detail-cell > strong {
    margin-bottom: 0.48rem;
}

.activity-extra-details {
    margin-top: 0.58rem;
}

.activity-extra-details summary {
    width: max-content;
    max-width: 100%;
    min-height: 32px;
    border: 1px solid #c9def3;
    border-radius: 8px;
    padding: 0.36rem 0.62rem;
    display: inline-flex;
    align-items: center;
    color: var(--primary-dark);
    background: #edf6ff;
    font-size: 0.78rem;
    font-weight: 900;
    cursor: pointer;
    user-select: none;
}

.activity-extra-details summary::-webkit-details-marker {
    display: none;
}

.activity-extra-details summary::after {
    content: "v";
    margin-left: 0.42rem;
    color: #6080a8;
    font-size: 0.78rem;
}

.activity-extra-details[open] summary {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

.activity-extra-details[open] summary::after {
    color: #ffffff;
    transform: rotate(180deg);
}

.activity-detail-meta {
    margin-top: 0.65rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.55rem;
}

.activity-detail-meta > div {
    border-left: 3px solid #d7e7f8;
    padding-left: 0.58rem;
}

.activity-detail-meta span {
    display: block;
    color: #37547e;
    font-size: 0.75rem;
    font-weight: 900;
    text-transform: uppercase;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 0.7rem 0.62rem;
    text-align: left;
    vertical-align: top;
    font-size: 0.92rem;
}

th {
    color: #37547e;
    background: #edf6ff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    white-space: nowrap;
}

td strong,
td small {
    display: block;
}

td small {
    margin-top: 0.18rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0.18rem 0.58rem;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
    white-space: nowrap;
}

.badge.success {
    color: var(--success);
    background: var(--success-soft);
}

.badge.info {
    color: var(--info);
    background: var(--info-soft);
}

.badge.error {
    color: var(--danger);
    background: var(--danger-soft);
}

.badge.warning {
    color: var(--warning);
    background: var(--warning-soft);
}

.badge.muted {
    color: var(--muted);
    background: var(--muted-soft);
}

.btn {
    min-height: 40px;
    border: 0;
    border-radius: 8px;
    padding: 0.58rem 0.86rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    line-height: 1.15;
    cursor: pointer;
    text-decoration: none;
}

.btn:hover {
    text-decoration: none;
}

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

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

.btn-secondary {
    color: var(--navy);
    background: var(--accent-soft);
}

.btn-danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.btn-sm {
    min-height: 32px;
    padding: 0.36rem 0.62rem;
    font-size: 0.8rem;
}

.actions,
.form-actions {
    display: flex;
    gap: 0.48rem;
    flex-wrap: wrap;
}

.form-actions {
    margin-top: 0.85rem;
}

.form-grid,
.filter-form {
    display: grid;
    gap: 0.85rem;
}

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

.filter-form {
    grid-template-columns: minmax(220px, 2fr) minmax(160px, 1fr) minmax(190px, 1fr) auto;
    align-items: end;
}

.filter-form .compact-actions {
    margin-top: 0;
}

.filter-panel {
    margin-bottom: 0.9rem;
}

.report-menu-bar {
    margin-bottom: 0.9rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.report-menu-nav {
    min-height: 58px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    padding: 0.45rem 0.65rem;
    overflow: visible;
}

.report-menu-all,
.report-menu-dropdown summary {
    min-height: 44px;
    border-radius: 8px;
    padding: 0 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    color: #536984;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.report-menu-all:hover,
.report-menu-all.active,
.report-menu-dropdown summary:hover,
.report-menu-dropdown summary.active {
    color: var(--primary);
    background: #edf6ff;
    text-decoration: none;
}

.report-menu-dropdown {
    position: relative;
    flex: 0 0 auto;
}

.report-menu-dropdown summary {
    list-style: none;
    user-select: none;
}

.report-menu-dropdown summary::-webkit-details-marker {
    display: none;
}

.report-menu-dropdown summary::after {
    content: "v";
    color: #7c95b7;
    font-size: 0.9rem;
}

.report-menu-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 30;
    width: min(340px, calc(100vw - 2rem));
    max-height: 420px;
    border: 1px solid #d8e6f4;
    border-radius: 8px;
    padding: 0.95rem;
    display: grid;
    gap: 0.45rem;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(6, 29, 98, 0.16);
    overflow-y: auto;
}

.report-menu-panel h3 {
    margin: 0 0 0.3rem;
    color: #37547e;
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.report-menu-panel a {
    border-radius: 8px;
    padding: 0.48rem 0.56rem;
    color: #536984;
    font-size: 0.9rem;
    font-weight: 700;
}

.report-menu-panel a:hover,
.report-menu-panel a.active {
    color: var(--primary);
    background: #edf6ff;
    text-decoration: none;
}

.report-filter-form {
    grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.report-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
    margin-bottom: 0.9rem;
}

.report-summary-grid .stat-card small {
    color: var(--muted);
    font-weight: 700;
}

.report-stat-primary {
    border-top-color: var(--primary);
}

.report-stat-info {
    border-top-color: #0ea5e9;
}

.report-stat-success {
    border-top-color: var(--success);
}

.report-stat-danger {
    border-top-color: var(--danger);
}

.report-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 0.9rem;
    margin-bottom: 0.9rem;
    align-items: start;
}

.report-grid .panel {
    min-width: 0;
}

.report-district-list {
    margin-top: 0;
}

.service-filter-pill {
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.56rem 0.68rem;
    display: flex;
    align-items: center;
    color: #173f7e;
    background: #edf6ff;
    font-size: 0.9rem;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.form-group {
    min-width: 0;
}

.form-group.full-span {
    grid-column: 1 / -1;
}

.user-photo-field {
    grid-column: 1 / -1;
}

.user-photo-input {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 0.75rem;
    align-items: center;
}

.user-photo-preview {
    width: 66px;
    height: 66px;
    border-color: #d5e5f4;
    color: #ffffff;
    font-size: 1rem;
}

.form-group.compact {
    margin-bottom: 0;
}

label {
    display: block;
    margin-bottom: 0.34rem;
    color: #314b75;
    font-size: 0.84rem;
    font-weight: 800;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="file"],
input[type="color"],
select,
textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.56rem 0.68rem;
    color: var(--ink);
    background: #ffffff;
    font-family: inherit;
    font-size: 0.92rem;
}

input[type="file"] {
    padding: 0.48rem 0.58rem;
}

input[type="color"] {
    min-height: 52px;
    padding: 0.3rem;
    cursor: pointer;
}

textarea {
    min-height: 118px;
    resize: vertical;
}

.inline-check {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.8rem;
    font-weight: 700;
}

.identity-settings-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(290px, 0.75fr);
    gap: 0.9rem;
    align-items: start;
}

.identity-settings-form {
    min-width: 0;
}

.user-role-guide {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.62rem;
    margin-bottom: 0.95rem;
}

.user-role-card {
    min-height: 112px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.72rem;
    background: #ffffff;
}

.user-role-card.active {
    border-color: color-mix(in srgb, var(--primary) 54%, var(--line));
    background: var(--info-soft);
    box-shadow: inset 4px 0 0 var(--primary);
}

.user-role-card strong,
.user-role-card span {
    display: block;
}

.user-role-card strong {
    color: var(--primary-dark);
    font-size: 0.94rem;
}

.user-role-card span {
    margin-top: 0.45rem;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.45;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.9rem;
}

.settings-tabs a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.52rem 0.78rem;
    color: var(--primary-dark);
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 800;
}

.settings-tabs a:hover,
.settings-tabs a.active {
    color: #ffffff;
    background: var(--primary);
    text-decoration: none;
}

.identity-field-space {
    margin-top: 0.85rem;
}

.identity-reset-logo {
    margin-top: 0.55rem;
    margin-bottom: 0;
}

.identity-color-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 0.86rem;
}

.identity-preview-panel {
    display: grid;
    gap: 0.8rem;
    align-content: start;
}

.identity-preview-panel h3,
.identity-preview-panel p,
.identity-preview-panel blockquote {
    margin: 0;
}

.identity-preview-brand {
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 0.72rem;
    align-items: center;
    padding: 0.72rem;
    color: #ffffff;
    background: var(--navy);
}

.identity-preview-brand img {
    width: 84px;
    height: 84px;
    object-fit: contain;
}

.identity-preview-brand strong,
.identity-preview-brand span,
.identity-preview-brand em {
    display: block;
    min-width: 0;
    overflow-wrap: anywhere;
}

.identity-preview-brand strong {
    font-size: 1.08rem;
}

.identity-preview-brand span {
    margin-top: 0.18rem;
    color: #ffd677;
    font-size: 0.84rem;
    font-weight: 800;
}

.identity-preview-brand em {
    margin-top: 0.1rem;
    color: #dbeafe;
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 700;
}

.identity-preview-panel p {
    color: var(--muted);
    font-weight: 700;
    line-height: 1.5;
}

.identity-preview-panel blockquote {
    border-left: 4px solid var(--accent);
    padding: 0.58rem 0.68rem;
    color: var(--primary-dark);
    background: var(--accent-soft);
    font-weight: 800;
}

.settings-enable-check {
    margin-top: 0;
}

.api-secret-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.api-status-box {
    display: grid;
    gap: 0.28rem;
    border: 1px solid var(--line);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 0.74rem;
    background: var(--accent-soft);
}

.api-status-box.ready {
    border-left-color: var(--success);
    background: var(--success-soft);
}

.api-status-box strong {
    font-size: 0.96rem;
}

.api-status-box span {
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.requirements-panel {
    display: grid;
    gap: 0.85rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.kk-entry-tabs {
    display: grid;
    gap: 0.9rem;
}

.entry-tab-list {
    display: flex;
    width: fit-content;
    max-width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.22rem;
    background: #e8f4ff;
}

.entry-tab {
    min-height: 40px;
    border: 0;
    border-radius: 6px;
    padding: 0.55rem 0.82rem;
    color: #254b82;
    background: transparent;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.entry-tab.active {
    color: #ffffff;
    background: var(--primary);
    box-shadow: 0 5px 14px rgba(11, 104, 232, 0.22);
}

.entry-tab-panel {
    min-width: 0;
}

.entry-tab-panel > .requirements-panel {
    margin-top: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1rem;
    background: #ffffff;
}

.kk-form {
    display: grid;
    gap: 0;
    margin: -0.25rem -0.25rem 0.25rem;
    border: 1px solid #c7e2ff;
    background: #eef8ff;
}

.kk-form-title {
    margin: 0;
    padding: 0.8rem 0.7rem;
    color: #8a94ad;
    background: #ffffff;
    font-size: 1rem;
}

.kk-section {
    border-top: 1px solid #c7e2ff;
}

.kk-section h4 {
    margin: 0;
    padding: 0.42rem 0.6rem;
    color: #ffffff;
    background: #0873da;
    box-shadow: 0 4px 12px rgba(6, 29, 98, 0.18);
    font-size: 1rem;
}

.kk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
    row-gap: 0.66rem;
    padding: 0.72rem 0.72rem 0.9rem;
}

.kk-field {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 0.55rem;
    align-items: center;
}

.kk-field label {
    margin: 0;
    color: #234b78;
    font-weight: 500;
}

.kk-field label span {
    color: #d43a2f;
}

.kk-section-subtitle {
    grid-column: 1 / -1;
    margin-top: 0.25rem;
    color: #122f45;
    font-weight: 900;
}

.kk-field input,
.kk-field select {
    min-height: 37px;
    border-radius: 4px;
    background: #ffffff;
}

.kk-field input:disabled,
.kk-field select:disabled,
.kk-field input[readonly] {
    background: #ddebfa;
}

.system-value {
    color: var(--primary);
    font-size: 0.92rem;
}

.kk-inline-action,
.kk-split-field,
.kk-birth-field {
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
}

.kk-inline-action button {
    min-width: 42px;
    min-height: 37px;
    border: 0;
    border-radius: 4px;
    color: #ffffff;
    background: var(--accent);
    font-family: inherit;
    font-weight: 800;
    cursor: pointer;
}

.kk-birth-field input[type="date"] {
    min-width: 0;
}

.kk-birth-field input[type="time"] {
    width: 74px;
    padding-right: 0.4rem;
    padding-left: 0.4rem;
}

.biodata-family-lookup-grid {
    padding-bottom: 0.3rem;
}

.biodata-family-message {
    min-height: 1rem;
    margin: 0 0.72rem 0.35rem;
    color: #31557f;
    font-size: 0.82rem;
    font-weight: 700;
}

.biodata-family-message[data-status="error"] {
    color: var(--danger);
}

.biodata-family-message[data-status="success"] {
    color: var(--primary-dark);
}

.biodata-family-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
    margin: 0;
    padding: 0.12rem 0.72rem 0.9rem;
}

.biodata-family-summary > div {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr);
    gap: 0.55rem;
    color: #234b78;
    line-height: 1.42;
}

.biodata-family-summary dt {
    margin: 0;
    font-weight: 500;
}

.biodata-family-summary dt span {
    color: #d43a2f;
}

.biodata-family-summary dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
    font-weight: 700;
}

.biodata-family-summary input {
    width: 100%;
    min-height: 37px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-weight: 600;
}

.mutasi-member-field {
    align-items: start;
}

.mutasi-member-list {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.mutasi-member-header,
.mutasi-member-row {
    display: grid;
    grid-template-columns: minmax(150px, 0.9fr) minmax(180px, 1fr) auto;
    gap: 0.45rem;
    align-items: center;
}

.mutasi-member-header {
    color: #31557f;
    font-size: 0.8rem;
    font-weight: 800;
}

.mutasi-member-row input {
    width: 100%;
}

.mutasi-member-add {
    justify-self: start;
}

.requirements-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.8rem;
}

.requirements-header h3,
.requirements-header p,
.requirements-note,
.requirements-empty {
    margin: 0;
}

.requirements-header h3 {
    font-size: 1rem;
}

.requirements-header p,
.requirements-note,
.requirements-empty {
    color: var(--muted);
    line-height: 1.5;
}

.requirements-body {
    display: grid;
    gap: 0.78rem;
}

.requirement-list {
    display: grid;
    gap: 0.55rem;
}

.field-hint {
    display: block;
    margin-top: 0.3rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.requirement-item {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.58rem;
    align-items: start;
    margin: 0;
    padding: 0.66rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    background: #fbfcfd;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
}

.requirement-item > input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin-top: 0.12rem;
    accent-color: var(--primary);
}

.requirement-content {
    display: grid;
    gap: 0.45rem;
    min-width: 0;
}

.requirement-label {
    display: block;
}

.uploaded-file,
.uploaded-documents a {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
    color: var(--primary-dark);
    font-size: 0.84rem;
    font-weight: 800;
}

.uploaded-documents {
    display: grid;
    gap: 0.35rem;
    padding: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.uploaded-documents strong {
    font-size: 0.86rem;
}

.uploaded-documents span {
    margin-left: 0.25rem;
    color: var(--muted);
    font-weight: 700;
}

.requirements-legal {
    padding: 0.72rem;
    border-left: 4px solid var(--primary);
    background: #f7fbfa;
}

.requirements-legal strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
}

.requirements-legal ul {
    display: grid;
    gap: 0.25rem;
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.requirements-legal.compact {
    margin-top: 0.75rem;
}

.requirement-summary {
    display: grid;
    gap: 0.18rem;
    margin-bottom: 0.72rem;
}

.requirement-summary strong {
    line-height: 1.35;
}

.requirement-summary small {
    color: var(--muted);
    font-weight: 700;
}

.requirement-status-list {
    display: grid;
    gap: 0.55rem;
}

.requirement-status-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
}

.requirement-status-row p {
    margin: 0;
    color: #30454e;
    font-size: 0.88rem;
    line-height: 1.45;
}

.document-actions {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 0.3rem;
}

.document-actions a {
    overflow-wrap: anywhere;
    font-size: 0.82rem;
}

.document-actions span {
    color: var(--muted);
    font-weight: 700;
}

.document-actions form {
    margin: 0;
}

.link-danger {
    border: 0;
    padding: 0;
    color: var(--danger);
    background: transparent;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
}

.additional-documents {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.8rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line);
}

.additional-documents strong {
    font-size: 0.86rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
}

.detail-grid div {
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfcfd;
}

.detail-grid .detail-span {
    grid-column: 1 / -1;
}

dt {
    margin-bottom: 0.22rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

dd {
    margin: 0;
    overflow-wrap: anywhere;
    line-height: 1.5;
}

.role-list {
    display: grid;
    gap: 0.55rem;
}

.role-row {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.66rem 0.72rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbff;
}

.role-row span {
    color: var(--muted);
    font-weight: 700;
}

.alert {
    padding: 0.78rem 0.9rem;
    border: 1px solid transparent;
    border-radius: 8px;
    margin-bottom: 0.9rem;
}

.alert.success {
    color: var(--success);
    background: var(--success-soft);
    border-color: #bbebc8;
}

.alert.error {
    color: var(--danger);
    background: var(--danger-soft);
    border-color: #ffd0c8;
}

.flash-list {
    margin: 0.4rem 0 0;
    padding-left: 1.1rem;
}

.pagination-wrap {
    margin-top: 0.9rem;
}

.pagination-admin {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination-admin-info {
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
}

.pagination-admin-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.32rem;
    margin: 0;
    padding: 0;
}

.pagination-admin-link {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.36rem 0.6rem;
    color: #173f7e;
    background: #ffffff;
    font-size: 0.82rem;
    font-weight: 800;
}

.pagination-admin-link.is-active {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

.pagination-admin-link.is-disabled,
.pagination-admin-link.is-dots {
    color: #80909a;
    background: #edf3fa;
}

.login-screen {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.2rem;
    overflow-x: hidden;
    background-color: #061a5f;
    background-image:
        linear-gradient(115deg, rgba(4, 12, 48, 0.98) 0%, rgba(5, 38, 118, 0.96) 48%, rgba(4, 74, 168, 0.94) 100%),
        repeating-linear-gradient(0deg, rgba(119, 203, 255, 0.08) 0 1px, transparent 1px 44px),
        repeating-linear-gradient(90deg, rgba(119, 203, 255, 0.08) 0 1px, transparent 1px 44px);
}

.login-screen::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(30deg, transparent 0 44%, rgba(104, 204, 255, 0.16) 45% 46%, transparent 47% 100%),
        linear-gradient(150deg, transparent 0 58%, rgba(104, 204, 255, 0.12) 59% 60%, transparent 61% 100%);
    background-size: 360px 220px, 420px 260px;
    opacity: 0.48;
}

.login-shell {
    width: min(1360px, 100%);
    display: grid;
    grid-template-columns: minmax(270px, 1fr) minmax(360px, 430px) minmax(270px, 1fr);
    grid-template-areas:
        "header header header"
        "left login right";
    gap: 0.9rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

.login-page-header {
    grid-area: header;
    width: min(760px, 100%);
    justify-self: center;
    border: 1px solid rgba(93, 199, 255, 0.46);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    color: #ffffff;
    background: rgba(3, 23, 78, 0.74);
    box-shadow: 0 18px 42px rgba(0, 7, 32, 0.3);
}

.login-meaning-panel-left {
    grid-area: left;
}

.login-card {
    grid-area: login;
}

.login-meaning-panel-right {
    grid-area: right;
}

.login-meaning-panel {
    min-width: 0;
    border: 1px solid rgba(93, 199, 255, 0.46);
    border-radius: 8px;
    padding: 0.9rem;
    color: #ffffff;
    background: rgba(3, 23, 78, 0.72);
    box-shadow: 0 24px 52px rgba(0, 7, 32, 0.36);
}

.login-meaning-hero {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0.78rem;
    align-items: center;
}

.login-meaning-hero img {
    width: 96px;
    height: 96px;
    object-fit: contain;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.login-meaning-hero p,
.login-meaning-hero h2,
.login-meaning-hero span,
.login-meaning-side-heading p,
.login-meaning-side-heading h2,
.login-meaning-item h3,
.login-meaning-item p {
    margin: 0;
}

.login-meaning-hero p,
.login-meaning-side-heading p {
    color: #f9c42d;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.login-meaning-hero h2,
.login-meaning-side-heading h2 {
    margin-top: 0.1rem;
    color: #ffffff;
    font-size: 2rem;
    line-height: 0.98;
    letter-spacing: 0;
    text-shadow: 0 4px 14px rgba(0, 0, 0, 0.42);
}

.login-meaning-hero span {
    display: block;
    margin-top: 0.42rem;
    color: #d8eeff;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.35;
}

.login-meaning-side-heading {
    margin-bottom: 0.78rem;
    padding-bottom: 0.78rem;
    border-bottom: 1px solid rgba(93, 199, 255, 0.28);
}

.login-meaning-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.58rem;
}

.login-meaning-item {
    min-width: 0;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 0.66rem;
    align-items: start;
    padding: 0.68rem;
    border: 1px solid rgba(93, 199, 255, 0.34);
    border-radius: 8px;
    background: rgba(0, 52, 139, 0.5);
}

.login-meaning-icon {
    width: 58px;
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    padding: 2px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: rgba(9, 78, 183, 0.58);
    box-shadow:
        0 8px 18px rgba(0, 0, 0, 0.22),
        inset 0 -8px 16px rgba(0, 0, 0, 0.16);
}

.login-meaning-icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.login-meaning-item h3 {
    color: #ffffff;
    font-size: 0.88rem;
    line-height: 1.24;
    text-transform: uppercase;
}

.login-meaning-item p {
    margin-top: 0.28rem;
    color: #e8f4ff;
    font-size: 0.78rem;
    line-height: 1.42;
}

.login-color-meaning {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.48rem;
    margin-top: 0.8rem;
}

.login-color-meaning span {
    min-width: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 0.38rem;
    align-items: center;
    color: #e8f4ff;
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.32;
}

.login-color-meaning b {
    width: 20px;
    height: 20px;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    display: block;
}

.login-color-meaning .blue {
    background: #0b68e8;
}

.login-color-meaning .gold {
    background: #f9c42d;
}

.login-color-meaning .orange {
    background: #ff6a00;
}

.login-color-meaning .green {
    background: #2e8b46;
}

.login-card {
    width: 100%;
    border: 1px solid rgba(93, 199, 255, 0.46);
    border-top: 4px solid #f9c42d;
    border-radius: 8px;
    padding: 1.18rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 52px rgba(0, 7, 32, 0.3);
}

.login-brand {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 0.85rem;
    align-items: center;
    margin-bottom: 1rem;
}

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

.login-brand h1,
.login-brand p,
.login-brand small {
    margin: 0;
}

.login-brand h1 {
    color: var(--navy);
    font-size: 1.52rem;
    letter-spacing: 0;
}

.login-brand p {
    margin-top: 0.25rem;
    color: var(--muted);
    font-weight: 700;
}

.login-brand small {
    display: block;
    margin-top: 0.35rem;
    color: #df6300;
    font-size: 0.82rem;
    font-weight: 800;
}

.login-form .form-group + .form-group {
    margin-top: 0.8rem;
}

@media (max-width: 1180px) {
    .login-shell {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-areas:
            "header header"
            "login login"
            "left right";
        align-items: start;
    }

    .login-card {
        justify-self: center;
        max-width: 560px;
    }

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

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

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

    .dashboard-feature-grid,
    .dashboard-lower-grid,
    .report-grid {
        grid-template-columns: 1fr;
    }

    .identity-settings-grid {
        grid-template-columns: 1fr;
    }

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

    .filter-form,
    .report-filter-form,
    .report-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 820px) {
    .login-shell {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "login"
            "left"
            "right";
    }

    .login-meaning-hero {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .login-meaning-hero img {
        width: 96px;
        height: 96px;
    }

    .login-meaning-hero h2,
    .login-meaning-side-heading h2 {
        font-size: 2rem;
    }

    .register-layout {
        grid-template-columns: 1fr;
    }

    .register-sidebar {
        position: static;
        height: auto;
    }

    .register-topbar {
        flex-direction: column;
    }

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

    .requirements-header {
        flex-direction: column;
    }

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

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

    .mutasi-member-header {
        display: none;
    }

    .mutasi-member-row {
        grid-template-columns: 1fr;
    }

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

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

    .api-secret-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .login-screen {
        padding: 0.75rem;
    }

    .login-meaning-panel,
    .login-card {
        padding: 0.85rem;
    }

    .login-meaning-hero {
        grid-template-columns: 82px minmax(0, 1fr);
        gap: 0.72rem;
    }

    .login-meaning-hero img {
        width: 82px;
        height: 82px;
    }

    .login-meaning-hero h2,
    .login-meaning-side-heading h2 {
        font-size: 1.78rem;
    }

    .login-meaning-hero span {
        font-size: 0.88rem;
    }

    .login-color-meaning {
        grid-template-columns: 1fr;
    }

    .register-content {
        padding: 0.9rem;
    }

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

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

    .dashboard-metric-grid,
    .report-summary-grid,
    .dashboard-wilayah-summary,
    .dashboard-quick-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-metric {
        min-height: 104px;
    }

    .identity-color-grid {
        grid-template-columns: 1fr;
    }

    .settings-tabs {
        display: grid;
    }

    .user-role-guide {
        grid-template-columns: 1fr;
    }

    .dashboard-chart {
        height: 224px;
        grid-template-columns: repeat(6, minmax(42px, 1fr));
    }

    .btn,
    .register-sidebar-footer button {
        width: 100%;
    }

    .login-brand {
        grid-template-columns: 82px 1fr;
    }

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

    .kk-field,
    .kk-inline-action,
    .kk-split-field,
    .kk-birth-field {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .kk-inline-action button {
        width: 100%;
    }

    .biodata-family-summary > div {
        grid-template-columns: 1fr;
        gap: 0.18rem;
    }

    .pagination-admin {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media print {
    body {
        background: #ffffff;
    }

    .register-layout {
        display: block;
    }

    .register-sidebar,
    .service-mega-bar,
    .topbar-actions,
    .filter-panel,
    .pagination-wrap {
        display: none !important;
    }

    .register-content {
        padding: 0;
    }

    .panel,
    .stat-card {
        box-shadow: none;
    }
}


/* SIDIGOEL entry form polish: Biodata-aligned */
:root {
  --sidigoel-form-green: #0f63da;
  --sidigoel-form-green-dark: #073b8e;
  --sidigoel-form-green-soft: #edf6ff;
  --sidigoel-form-border: #b9d8ff;
  --sidigoel-form-text: #173b5f;
  --sidigoel-form-muted: #66738b;
  --sidigoel-form-blue: #0f63da;
}

.page-header {
  margin-bottom: 1rem;
}

.page-header h1,
.page-header h2 {
  letter-spacing: 0;
}

.panel {
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  box-shadow: 0 12px 32px rgba(9, 44, 87, 0.08);
}

.panel > h3:first-child,
.panel-heading h3,
.panel-heading h4 {
  color: #06244a;
}

.filter-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.filter-form {
  gap: 0.75rem;
  align-items: end;
}

.filter-form .form-group label,
.kk-field label,
.form-group label {
  color: var(--sidigoel-form-text);
  font-weight: 700;
  line-height: 1.28;
}

.filter-form .form-group input,
.filter-form .form-group select,
.form-group input,
.form-group select,
.form-group textarea {
  border: 1px solid #cddbea;
  border-radius: 5px;
  color: #06244a;
  min-height: 38px;
}

.table-wrap {
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  overflow: auto;
  background: #fff;
}

.table-wrap table {
  border-collapse: separate;
  border-spacing: 0;
  min-width: 760px;
}

.table-wrap thead th {
  background: #eaf4ff;
  color: #133d70;
  font-size: 0.82rem;
  letter-spacing: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.table-wrap tbody td {
  border-top: 1px solid #dce8f5;
  vertical-align: top;
}

.badge {
  border-radius: 999px;
  font-weight: 800;
}

.kk-entry-tabs {
  margin: 0 0 1rem;
}

.entry-tab-list {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #cfe0f2;
}

.entry-tab {
  border: 1px solid #cfe0f2;
  border-bottom-color: transparent;
  border-radius: 6px 6px 0 0;
  background: #f8fbff;
  color: #2f4d72;
  min-height: 40px;
  padding: 0.55rem 0.85rem;
}

.entry-tab.active {
  background: var(--sidigoel-form-green);
  border-color: var(--sidigoel-form-green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(15, 99, 218, 0.22);
}

.entry-tab-panel {
  border: 1px solid #cfe0f2;
  border-top: 0;
  border-radius: 0 0 7px 7px;
  background: #fff;
  padding: 0.7rem;
}

.kk-form {
  display: grid;
  gap: 0;
  margin: 0;
  border: 1px solid var(--sidigoel-form-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--sidigoel-form-green-soft);
  box-shadow: 0 12px 34px rgba(6, 57, 44, 0.08);
}

.kk-form + .kk-form {
  margin-top: 1rem;
}

.kk-form-title {
  margin: 0;
  padding: 0.8rem 0.9rem;
  background: #fff;
  color: #8b96ad;
  font-size: 1rem;
  font-weight: 800;
}

.kk-section {
  border-top: 1px solid var(--sidigoel-form-border);
  background: var(--sidigoel-form-green-soft);
}

.kk-section h4,
.kk-section > h4:first-child {
  margin: 0;
  padding: 0.52rem 0.72rem;
  background: var(--sidigoel-form-green);
  color: #fff;
  border: 0;
  border-radius: 0;
  box-shadow: 0 7px 16px rgba(15, 99, 218, 0.22);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
}

.kk-section-subtitle {
  grid-column: 1 / -1;
  margin: 0.15rem 0 -0.15rem;
  color: #183a63;
  font-weight: 900;
}

.kk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 1rem;
  row-gap: 0.7rem;
  padding: 0.72rem 0.72rem 0.9rem;
  background: var(--sidigoel-form-green-soft);
}

.kk-field {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
}

.kk-field label {
  margin: 0;
  font-size: 0.88rem;
}

.kk-field input,
.kk-field select,
.kk-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 37px;
  border: 1px solid #cddbea;
  border-radius: 5px;
  background: #fff;
  color: #08294f;
  padding: 0.48rem 0.62rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.kk-field textarea {
  min-height: 76px;
  resize: vertical;
}

.kk-field input[readonly],
.kk-field input:disabled,
.kk-field select:disabled,
.kk-field textarea:disabled {
  background: #e3efff;
  color: #5d7087;
  opacity: 1;
}

.kk-field input:focus,
.kk-field select:focus,
.kk-field textarea:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: #0f63da;
  box-shadow: 0 0 0 3px rgba(15, 99, 218, 0.18);
  outline: 0;
}

.kk-field .generated-value,
.generated-value {
  color: #1b61d4;
  font-weight: 900;
}

.kk-inline-action,
.kk-split-field,
.kk-birth-field {
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr) auto;
}

.kk-inline-action .btn,
.kk-birth-field .btn,
.lookup-button,
.btn.lookup-button {
  min-width: 40px;
  min-height: 37px;
  border-radius: 5px;
  background: #ffb31a;
  border-color: #ffb31a;
  color: #fff;
  box-shadow: none;
}

.kk-split-field .split-inputs,
.kk-birth-field .birth-inputs,
.kk-phone-field .phone-input,
.kk-upload-field .upload-input,
.file-input-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.kk-split-field .split-inputs input {
  max-width: 92px;
}

.kk-birth-field .birth-inputs input[type="date"] {
  max-width: 190px;
}

.kk-birth-field .birth-inputs input[type="time"] {
  max-width: 86px;
}

.kk-field-full,
.kk-field.full,
.kk-grid .full-width {
  grid-column: 1 / -1;
}

.biodata-family-summary {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  padding: 0.7rem;
  border: 1px solid #bdd9ff;
  border-radius: 6px;
  background: #f5fbff;
}

.biodata-family-summary div {
  min-width: 0;
}

.biodata-family-summary strong,
.detail-grid strong {
  color: #173b5f;
}

.mutasi-member-list,
.mutasi-member-card,
.requirements-panel,
.uploaded-documents,
.additional-documents,
.requirement-summary {
  border: 1px solid #cfe0f2;
  border-radius: 7px;
  background: #fff;
}

.mutasi-member-list,
.requirements-panel,
.uploaded-documents,
.additional-documents {
  padding: 0.75rem;
}

.mutasi-member-card,
.requirement-status-row,
.uploaded-document-row,
.requirement-item {
  border-radius: 6px;
  border: 1px solid #d8e7f6;
  background: #f8fcff;
}

.requirements-legal,
.requirements-legal.compact {
  border-left: 4px solid #0f63da;
  background: #f7fcff;
  color: #294f78;
}

.detail-grid {
  gap: 0.65rem;
}

.detail-grid > div,
.detail-span,
.requirement-status-row {
  border: 1px solid #d8e7f6;
  border-radius: 6px;
  background: #fbfdff;
  padding: 0.7rem;
}

.form-actions {
  gap: 0.6rem;
  align-items: center;
}

.btn {
  border-radius: 7px;
  font-weight: 900;
}

.btn-primary {
  background: #0f63da;
  border-color: #0f63da;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #0b4faf;
  border-color: #0b4faf;
}

.btn-secondary {
  background: #e9f1f8;
  border-color: #d4e0eb;
  color: #183a63;
}

.alert {
  border-radius: 7px;
}

@media (max-width: 1100px) {
  .kk-field,
  .kk-inline-action,
  .kk-split-field,
  .kk-birth-field {
    grid-template-columns: minmax(118px, 150px) minmax(0, 1fr);
  }

  .kk-inline-action .btn,
  .kk-birth-field .btn {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 820px) {
  .kk-grid,
  .biodata-family-summary {
    grid-template-columns: 1fr;
  }

  .table-wrap table {
    min-width: 680px;
  }
}

@media (max-width: 640px) {
  .panel,
  .kk-form,
  .entry-tab-panel {
    border-radius: 6px;
  }

  .kk-grid {
    padding: 0.68rem;
  }

  .kk-field,
  .kk-inline-action,
  .kk-split-field,
  .kk-birth-field {
    grid-template-columns: 1fr;
    gap: 0.35rem;
  }

  .kk-inline-action .btn,
  .kk-birth-field .btn {
    grid-column: auto;
  }

  .kk-split-field .split-inputs,
  .kk-birth-field .birth-inputs,
  .kk-phone-field .phone-input,
  .kk-upload-field .upload-input,
  .file-input-row {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .kk-split-field .split-inputs input,
  .kk-birth-field .birth-inputs input[type="date"],
  .kk-birth-field .birth-inputs input[type="time"] {
    max-width: none;
    flex: 1 1 120px;
  }

  .entry-tab-list {
    border-bottom: 0;
  }

  .entry-tab {
    border-radius: 6px;
    border-bottom-color: #cfe0f2;
  }

  .entry-tab-panel {
    border-top: 1px solid #cfe0f2;
  }
}
/* End SIDIGOEL entry form polish */

/* SIDIGOEL generic capil fallback polish */
.kk-generic-capil-form .service-filter-pill,
.kk-field .service-filter-pill {
  min-height: 37px;
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid #cddbea;
  border-radius: 5px;
  background: #e9f5ff;
  color: #0b4b86;
  font-weight: 900;
  padding: 0.48rem 0.62rem;
}

.kk-generic-capil-form .kk-field-full textarea {
  min-height: 94px;
}

.kk-generic-capil-form + .requirements-panel {
  margin-top: 0;
}
/* End SIDIGOEL generic capil fallback polish */

/* SIDIGOEL dashboard simplified layout */
.dashboard-feature-grid.dashboard-feature-grid-single,
.dashboard-lower-grid.dashboard-lower-grid-single {
    grid-template-columns: minmax(0, 1fr);
}

.dashboard-feature-grid-single .dashboard-chart-panel,
.dashboard-lower-grid-single .dashboard-recent-panel {
    width: 100%;
}
/* End SIDIGOEL dashboard simplified layout */

/* SIDIGOEL BAKAK form helpers */
.bakak-document-list {
  display: grid;
  gap: 0.5rem;
}

.bakak-check-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 0.55rem;
  color: var(--sidigoel-form-text);
  font-weight: 600;
}

.bakak-check-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  accent-color: #f59e0b;
  margin-top: 0.1rem;
}

.kk-field .field-addon {
  color: #244f7e;
  font-weight: 800;
}
/* End SIDIGOEL BAKAK form helpers */
