/*
 * Panduan Tim (fitur 009) — CSS biasa, tanpa build (server tanpa Node).
 * Warna sama dengan resources/css/filament/theme.css (--app-brand, --app-chrome).
 * Mobile-first: harus nyaman di lebar 375px tanpa scroll samping.
 */

:root {
    --pd-brand: #2d5fa3;
    --pd-brand-hover: #1e3a6e;
    --pd-chrome: #142a4d;
    --pd-on-chrome: #e8eef7;
    --pd-on-chrome-muted: #a9bddb;
    --pd-text: #1f2937;
    --pd-muted: #6b7280;
    --pd-line: #e5e7eb;
    --pd-bg: #f5f7fb;
    --pd-card: #ffffff;
    --pd-ok-bg: #e7f6ec;
    --pd-ok-text: #17663a;
    --pd-plan-bg: #f1f2f4;
    --pd-plan-text: #4b5563;
    --pd-note-bg: #fff8e6;
    --pd-note-line: #f3d48a;
    --pd-radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--pd-text);
    background: var(--pd-bg);
    overflow-wrap: anywhere;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--pd-brand);
}

a:hover {
    color: var(--pd-brand-hover);
}

h1,
h2,
h3 {
    line-height: 1.25;
    margin: 0 0 .5rem;
}

h1 {
    font-size: 1.75rem;
}

h2 {
    font-size: 1.3rem;
}

h3 {
    font-size: 1.1rem;
}

p,
ul,
ol,
dl {
    margin: 0 0 1rem;
}

ul,
ol {
    padding-left: 1.25rem;
}

li + li {
    margin-top: .25rem;
}

kbd {
    display: inline-block;
    padding: 0 .4em;
    font: inherit;
    font-size: .85em;
    border: 1px solid var(--pd-line);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: #fff;
}

.pd-wrap {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem;
}

.pd-muted {
    color: var(--pd-muted);
}

/* Header */
.pd-header {
    background: var(--pd-chrome);
    color: var(--pd-on-chrome);
}

.pd-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}

.pd-brand {
    display: flex;
    align-items: center;
    gap: .6rem;
    color: var(--pd-on-chrome);
    text-decoration: none;
}

.pd-brand:hover {
    color: #fff;
}

.pd-brand__logo {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 6px;
}

.pd-brand__text {
    font-weight: 700;
}

.pd-brand__sub {
    font-weight: 400;
    color: var(--pd-on-chrome-muted);
}

.pd-header__nav {
    display: flex;
    gap: .25rem;
}

.pd-header__nav a {
    padding: .35rem .7rem;
    border-radius: 6px;
    color: var(--pd-on-chrome-muted);
    text-decoration: none;
    font-size: .95rem;
}

.pd-header__nav a:hover,
.pd-header__nav a.is-active {
    color: #fff;
    background: color-mix(in srgb, var(--pd-on-chrome) 12%, transparent);
}

/* Isi */
.pd-main {
    padding: 1.5rem 0 2.5rem;
}

.pd-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-bottom: 1rem;
    font-size: .9rem;
    color: var(--pd-muted);
}

.pd-hero,
.pd-page-head {
    margin-bottom: 1.75rem;
}

.pd-page-head__title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
    margin-bottom: .5rem;
}

.pd-page-head__title h1 {
    margin: 0;
}

.pd-lead {
    font-size: 1.05rem;
    color: #374151;
}

.pd-section {
    margin-bottom: 2rem;
}

.pd-section > h2 {
    padding-bottom: .4rem;
    border-bottom: 1px solid var(--pd-line);
    margin-bottom: 1rem;
}

.pd-callout {
    display: block;
    padding: 1rem 1.1rem;
    border-radius: var(--pd-radius);
    background: var(--pd-brand);
    color: #fff;
    text-decoration: none;
}

.pd-callout:hover {
    background: var(--pd-brand-hover);
    color: #fff;
}

.pd-callout strong {
    display: block;
    font-size: 1.05rem;
}

.pd-note {
    padding: .85rem 1rem;
    margin: 0 0 1rem;
    border: 1px solid var(--pd-note-line);
    border-radius: var(--pd-radius);
    background: var(--pd-note-bg);
}

.pd-note > :last-child {
    margin-bottom: 0;
}

/* Kartu modul */
.pd-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .pd-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 2rem;
    }
}

.pd-card {
    display: flex;
    flex-direction: column;
    padding: 1.1rem;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-card);
}

.pd-card--rencana {
    background: #fbfbfc;
}

.pd-card__head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    margin-bottom: .5rem;
}

.pd-card__title {
    margin: 0;
}

.pd-card__text {
    color: #374151;
}

.pd-card__meta {
    display: grid;
    gap: .25rem;
    font-size: .92rem;
}

.pd-card__meta > div {
    display: flex;
    gap: .5rem;
}

.pd-card__meta dt {
    min-width: 4rem;
    color: var(--pd-muted);
}

.pd-card__meta dd {
    margin: 0;
}

.pd-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: auto;
    padding-top: .5rem;
}

.pd-badge {
    display: inline-block;
    padding: .1rem .55rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 600;
    white-space: nowrap;
}

.pd-badge--aktif {
    background: var(--pd-ok-bg);
    color: var(--pd-ok-text);
}

.pd-badge--rencana {
    background: var(--pd-plan-bg);
    color: var(--pd-plan-text);
}

.pd-btn {
    display: inline-block;
    padding: .45rem 1rem;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    background: #fff;
    color: var(--pd-text);
    font-weight: 600;
    text-decoration: none;
}

.pd-btn:hover {
    border-color: var(--pd-brand);
    color: var(--pd-brand);
}

.pd-btn--primary {
    border-color: var(--pd-brand);
    background: var(--pd-brand);
    color: #fff;
}

.pd-btn--primary:hover {
    background: var(--pd-brand-hover);
    color: #fff;
}

/* Daftar istilah */
.pd-terms {
    display: grid;
    gap: .75rem;
}

.pd-terms > div {
    padding: .75rem 1rem;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: var(--pd-card);
}

.pd-terms dt {
    font-weight: 700;
}

.pd-terms dd {
    margin: .15rem 0 0;
}

/* Screenshot */
.pd-shot {
    margin: 0 0 1.25rem;
}

.pd-shot img {
    display: block;
    border: 1px solid var(--pd-line);
    border-radius: var(--pd-radius);
    background: #fff;
}

.pd-shot figcaption {
    margin-top: .35rem;
    font-size: .88rem;
    color: var(--pd-muted);
}

/* Footer */
.pd-footer {
    padding: 1.5rem 0;
    border-top: 1px solid var(--pd-line);
    background: #fff;
    font-size: .95rem;
}

.pd-footer p {
    margin-bottom: .35rem;
}

.pd-footer__muted {
    color: var(--pd-muted);
    font-size: .88rem;
}

/* ================================================================
 * MOCKUP PANEL (x-panduan.mock.*) — tiruan statis tampilan Filament.
 * Bukan screenshot: label dari kode resource, data rekaan.
 * Tabel lebar di-scroll DI DALAM mockup, halaman tetap tanpa scroll samping.
 * ================================================================ */
.pd-mock {
    margin: 0 0 1.5rem;
}

.pd-mock figcaption {
    margin-top: .4rem;
    font-size: .88rem;
    color: var(--pd-muted);
}

.pd-m-window {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border: 1px solid #d5dbe5;
    border-radius: var(--pd-radius);
    background: #f9fafb;
    box-shadow: 0 6px 18px rgba(20, 42, 77, .08);
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: normal;
}

@media (min-width: 760px) {
    .pd-m-window {
        grid-template-columns: 190px minmax(0, 1fr);
    }
}

.pd-m-ico {
    width: 1.1em;
    height: 1.1em;
    flex: none;
}

/* Sidebar */
.pd-m-side {
    display: none;
    padding: .75rem .5rem;
    background: var(--pd-chrome);
    color: var(--pd-on-chrome-muted);
}

@media (min-width: 760px) {
    .pd-m-side {
        display: block;
    }

    .pd-m-top__menu {
        visibility: hidden;
    }
}

.pd-m-side__brand {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: 0 .4rem .7rem;
    color: var(--pd-on-chrome);
    font-weight: 700;
}

.pd-m-side__brand img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.pd-m-side__panel {
    font-weight: 400;
    color: var(--pd-on-chrome-muted);
}

.pd-m-side__group {
    padding: .7rem .5rem .25rem;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: color-mix(in srgb, var(--pd-on-chrome-muted) 78%, transparent);
}

.pd-m-side__item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem .5rem;
    border-radius: 6px;
}

.pd-m-side__item.is-active {
    background: var(--pd-brand);
    color: #fff;
}

/* Isi */
.pd-m-body {
    min-width: 0;
}

.pd-m-top {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .5rem .85rem;
    border-bottom: 1px solid var(--pd-line);
    background: #fff;
}

.pd-m-top__search {
    display: flex;
    align-items: center;
    gap: .35rem;
    margin-left: auto;
    padding: .2rem .6rem;
    border: 1px solid var(--pd-line);
    border-radius: 6px;
    color: var(--pd-muted);
}

.pd-m-top__search kbd {
    font-size: 10px;
}

.pd-m-top__avatar {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--pd-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

.pd-m-page {
    padding: .9rem;
}

.pd-m-crumb {
    margin-bottom: .2rem;
    font-size: 12px;
    color: var(--pd-muted);
}

.pd-m-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .8rem;
}

.pd-m-head__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--pd-text);
}

.pd-m-head__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

/* Tombol, badge, penanda */
.pd-m-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border: 1px solid transparent;
    border-radius: 7px;
    font-weight: 600;
    white-space: nowrap;
}

.pd-m-btn--primary {
    background: var(--pd-brand);
    color: #fff;
}

.pd-m-btn--gray {
    border-color: #d1d5db;
    background: #fff;
    color: #374151;
}

.pd-m-btn--success {
    background: #16a34a;
    color: #fff;
}

.pd-m-btn--warning {
    background: #d97706;
    color: #fff;
}

.pd-m-btn--danger {
    background: #dc2626;
    color: #fff;
}

.pd-m-btn--link {
    padding: 0;
    color: var(--pd-brand);
}

.pd-m-btn--link.is-success {
    color: #16a34a;
}

.pd-m-btn--link.is-warning {
    color: #b45309;
}

.pd-m-btn--link.is-danger {
    color: #dc2626;
}

.pd-m-btn[aria-disabled="true"],
.pd-m-btn.is-disabled {
    opacity: .5;
}

.pd-m-badge {
    display: inline-block;
    padding: .05rem .45rem;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    background: #f3f4f6;
    color: #4b5563;
    box-shadow: inset 0 0 0 1px rgba(75, 85, 99, .15);
}

.pd-m-badge--primary,
.pd-m-badge--info {
    background: #eff6ff;
    color: #1d4ed8;
    box-shadow: inset 0 0 0 1px rgba(29, 78, 216, .2);
}

.pd-m-badge--success {
    background: #f0fdf4;
    color: #15803d;
    box-shadow: inset 0 0 0 1px rgba(21, 128, 61, .2);
}

.pd-m-badge--warning {
    background: #fffbeb;
    color: #b45309;
    box-shadow: inset 0 0 0 1px rgba(180, 83, 9, .2);
}

.pd-m-badge--danger {
    background: #fef2f2;
    color: #b91c1c;
    box-shadow: inset 0 0 0 1px rgba(185, 28, 28, .2);
}

.pd-m-pin,
.pd-pin {
    display: inline-grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: #f59e0b;
    color: #111827;
    font-size: 11px;
    font-weight: 800;
    line-height: 1;
    vertical-align: middle;
}

.pd-m-btn .pd-m-pin {
    position: absolute;
    top: -9px;
    right: -9px;
}

/* Kartu / section / tabel */
.pd-m-card {
    margin-bottom: .8rem;
    border: 1px solid var(--pd-line);
    border-radius: 9px;
    background: #fff;
}

.pd-m-card__head {
    padding: .55rem .8rem;
    border-bottom: 1px solid var(--pd-line);
    font-weight: 700;
}

.pd-m-card__head small {
    display: block;
    font-weight: 400;
    color: var(--pd-muted);
}

.pd-m-card__body {
    padding: .8rem;
}

.pd-m-scroll {
    overflow-x: auto;
}

.pd-m-table {
    width: 100%;
    border-collapse: collapse;
    white-space: nowrap;
}

.pd-m-table th,
.pd-m-table td {
    padding: .45rem .7rem;
    border-bottom: 1px solid #f0f1f3;
    text-align: left;
    vertical-align: top;
}

.pd-m-table th {
    font-size: 12px;
    font-weight: 600;
    color: #374151;
    background: #fafafa;
}

.pd-m-table .is-num {
    text-align: right;
}

.pd-m-table .is-wrap {
    min-width: 12rem;
    white-space: normal;
}

.pd-m-table .is-muted {
    color: #9ca3af;
}

.pd-m-table .is-error {
    color: #b91c1c;
    white-space: normal;
    min-width: 12rem;
}

.pd-m-table .pd-m-actions {
    display: flex;
    gap: .7rem;
}

.pd-m-ok {
    color: #16a34a;
}

.pd-m-no {
    color: #dc2626;
}

.pd-m-foot {
    padding: .5rem .8rem;
    font-size: 12px;
    color: var(--pd-muted);
}

/* Filter + form */
.pd-m-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: .6rem;
    padding: .8rem;
    border-bottom: 1px solid var(--pd-line);
}

.pd-m-collapse {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin: 0 .8rem .8rem;
    padding: .45rem .7rem;
    border: 1px solid var(--pd-line);
    border-radius: 8px;
    color: #374151;
}

.pd-m-collapse small {
    color: var(--pd-muted);
}

.pd-m-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .7rem;
}

.pd-m-field {
    min-width: 0;
}

.pd-m-field.is-full {
    grid-column: 1 / -1;
}

.pd-m-label {
    display: block;
    margin-bottom: .2rem;
    font-weight: 600;
    color: #374151;
}

.pd-m-label .req {
    color: #dc2626;
}

.pd-m-input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .4rem;
    min-height: 30px;
    padding: .3rem .6rem;
    border: 1px solid #d1d5db;
    border-radius: 7px;
    background: #fff;
    color: var(--pd-text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.pd-m-input.is-empty {
    color: #9ca3af;
}

.pd-m-input.is-select::after {
    content: "▾";
    color: #9ca3af;
}

.pd-m-input.is-disabled {
    background: #f3f4f6;
    color: #6b7280;
}

.pd-m-input .pre {
    padding-right: .4rem;
    border-right: 1px solid var(--pd-line);
    color: var(--pd-muted);
}

.pd-m-help {
    margin-top: .2rem;
    font-size: 12px;
    color: var(--pd-muted);
    white-space: normal;
}

.pd-m-help.is-error {
    color: #dc2626;
}

.pd-m-toggle {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
}

.pd-m-toggle::before {
    content: "";
    width: 30px;
    height: 17px;
    border-radius: 999px;
    background: var(--pd-brand) radial-gradient(circle at 21px 50%, #fff 6px, transparent 6.5px);
}

.pd-m-toggle.is-off::before {
    background: #d1d5db radial-gradient(circle at 9px 50%, #fff 6px, transparent 6.5px);
}

.pd-m-radio {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: .5rem;
}

.pd-m-radio > div {
    padding: .55rem .65rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    white-space: normal;
}

.pd-m-radio > div.is-on {
    border-color: var(--pd-brand);
    box-shadow: 0 0 0 1px var(--pd-brand);
}

.pd-m-radio strong::before {
    content: "○ ";
    color: #9ca3af;
}

.pd-m-radio .is-on strong::before {
    content: "◉ ";
    color: var(--pd-brand);
}

.pd-m-radio p {
    margin: .2rem 0 0;
    font-size: 12px;
    color: var(--pd-muted);
}

/* Statistik dasbor */
.pd-m-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: .6rem;
}

.pd-m-stat {
    padding: .65rem .75rem;
    border: 1px solid var(--pd-line);
    border-radius: 9px;
    background: #fff;
    white-space: normal;
}

.pd-m-stat__label {
    font-size: 12px;
    color: var(--pd-muted);
}

.pd-m-stat__value {
    font-size: 20px;
    font-weight: 700;
}

.pd-m-stat__desc {
    font-size: 12px;
}

.pd-m-stat__desc.is-warning {
    color: #b45309;
}

.pd-m-stat__desc.is-success {
    color: #15803d;
}

.pd-m-stat__desc.is-danger {
    color: #b91c1c;
}

.pd-m-stat__desc.is-gray {
    color: var(--pd-muted);
}

.pd-m-subhead {
    margin: .2rem 0 .5rem;
    font-weight: 700;
}

.pd-m-subhead small {
    font-weight: 400;
    color: var(--pd-muted);
}

/* Modal (pop-up) */
.pd-m-overlay {
    padding: 1rem .6rem;
    border-radius: 8px;
    background: rgba(17, 24, 39, .45);
}

.pd-m-modal {
    max-width: 640px;
    margin: 0 auto;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    white-space: normal;
}

.pd-m-modal__head {
    padding: .8rem .9rem .2rem;
    font-size: 15px;
    font-weight: 700;
}

.pd-m-modal__desc {
    padding: 0 .9rem .6rem;
    color: var(--pd-muted);
}

.pd-m-modal__body {
    padding: 0 .9rem .3rem;
}

.pd-m-modal__foot {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .6rem .9rem .9rem;
}

.pd-m-notif {
    display: flex;
    gap: .5rem;
    max-width: 320px;
    margin: 0 0 .8rem auto;
    padding: .6rem .75rem;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
    white-space: normal;
}

.pd-m-notif strong {
    display: block;
}

/* Langkah bernomor di teks panduan */
.pd-steps {
    counter-reset: langkah;
    list-style: none;
    padding-left: 0;
}

.pd-steps > li {
    position: relative;
    padding-left: 2.1rem;
    margin-bottom: .6rem;
}

.pd-steps > li::before {
    counter-increment: langkah;
    content: counter(langkah);
    position: absolute;
    left: 0;
    top: .1rem;
    display: grid;
    place-items: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--pd-brand);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
}

.pd-toc {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.pd-toc a {
    display: inline-block;
    padding: .25rem .65rem;
    border: 1px solid var(--pd-line);
    border-radius: 999px;
    background: #fff;
    font-size: .9rem;
    text-decoration: none;
}

.pd-toc li + li {
    margin-top: 0;
}

.pd-section h3 {
    margin-top: 1.25rem;
}

.pd-table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
    background: #fff;
    font-size: .95rem;
}

.pd-table th,
.pd-table td {
    padding: .5rem .65rem;
    border: 1px solid var(--pd-line);
    text-align: left;
    vertical-align: top;
}

.pd-table th {
    background: #f3f5f9;
}
/* Tabel mockup ringkas: sel boleh turun baris supaya kolom aksi di kanan tetap terlihat. */
.pd-m-table.is-compact th,
.pd-m-table.is-compact td {
    padding: .45rem .5rem;
    white-space: normal;
}

.pd-m-table.is-compact .is-wrap,
.pd-m-table.is-compact .is-error {
    min-width: 8rem;
}

.pd-m-table.is-compact .pd-m-actions {
    flex-direction: column;
    gap: .35rem;
    white-space: nowrap;
}