:root {
    --blue: #1b5fa7;
    --blue-dark: #123f72;
    --green: #3ba84b;
    --yellow: #f4bf2f;
    --red: #c73e3e;
    --ink: #172230;
    --muted: #64748b;
    --line: #dbe3ec;
    --surface: #ffffff;
    --canvas: #f3f6f9;
    --shadow: 0 16px 40px rgba(20, 47, 80, .10);
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, "Segoe UI", Arial, sans-serif; color: var(--ink); background: var(--canvas); }
a { color: inherit; }
button, input, select { font: inherit; }
.guest-body { min-height: 100vh; }
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-hero { position: relative; overflow: hidden; min-height: 100vh; padding: 70px; color: white; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(145deg, rgba(18,63,114,.96), rgba(27,95,167,.91)), radial-gradient(circle at 20% 20%, #3ba84b, transparent 36%); }
.login-hero::after { content: ""; position: absolute; width: 520px; height: 520px; border: 70px solid rgba(255,255,255,.06); border-radius: 50%; right: -180px; bottom: -190px; }
.login-hero h1 { font-size: clamp(42px, 6vw, 76px); margin: 10px 0; max-width: 650px; }
.login-hero p { font-size: 20px; max-width: 600px; line-height: 1.6; }
.iei-login-logo { width: 215px; background: white; padding: 12px 16px; border-radius: 12px; }
.login-panel { display: grid; place-items: center; padding: 35px; background: white; }
.login-card { width: min(440px, 100%); padding: 36px; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.login-logo { display: block; width: 270px; max-width: 100%; margin: 0 auto 28px; }
.login-card h2 { font-size: 30px; margin: 0 0 8px; }
.muted { color: var(--muted); margin-top: 0; }
label { display: block; font-weight: 650; margin: 20px 0 8px; }
input, select { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 13px; background: white; color: var(--ink); }
input:focus, select:focus { outline: 3px solid rgba(27,95,167,.14); border-color: var(--blue); }
.password-wrap { position: relative; }
.password-wrap input { padding-right: 95px; }
.show-password { position: absolute; right: 8px; top: 7px; border: 0; background: transparent; color: var(--blue); cursor: pointer; padding: 7px; }
.primary-button { display: inline-flex; justify-content: center; align-items: center; border: 0; border-radius: 10px; padding: 12px 18px; background: var(--blue); color: white; text-decoration: none; font-weight: 700; cursor: pointer; }
.primary-button:hover { background: var(--blue-dark); }
.full { width: 100%; margin-top: 24px; }
.language-switch { display: flex; justify-content: center; gap: 6px; margin-top: 22px; }
.language-switch button, .text-button { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: 7px 9px; border-radius: 8px; }
.language-switch button.active { background: #e7f0fa; color: var(--blue); font-weight: 700; }
.version { display: block; margin-top: 22px; text-align: center; color: #94a3b8; }
.eyebrow { font-size: 12px !important; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; color: inherit; opacity: .8; }
.alert { border-radius: 10px; padding: 12px 14px; margin: 0 0 18px; }
.alert.error { color: #8b1d1d; background: #fff0f0; border: 1px solid #f1b7b7; }
.alert.success { color: #1b6a2d; background: #ebf9ee; border: 1px solid #b8e5c0; }
.app-shell { min-height: 100vh; display: flex; }
.sidebar { width: 270px; background: #102f51; color: white; display: flex; flex-direction: column; position: fixed; inset: 0 auto 0 0; z-index: 20; }
.brand-panel { padding: 24px 20px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand-logo { display: block; width: 220px; max-width: 100%; filter: drop-shadow(0 5px 15px rgba(0,0,0,.15)); }
.sidebar-nav { padding: 15px 12px; overflow-y: auto; flex: 1; }
.nav-link { display: flex; gap: 12px; align-items: center; padding: 11px 13px; text-decoration: none; border-radius: 9px; color: #dce8f5; margin-bottom: 4px; }
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: white; }
.nav-link.disabled { opacity: .55; cursor: not-allowed; }
.nav-section { display: block; margin: 22px 13px 8px; color: #90acc8; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }
.sidebar-footer { padding: 18px; background: rgba(255,255,255,.06); }
.sidebar-footer img { width: 155px; background: white; border-radius: 7px; padding: 5px; }
.main-area { flex: 1; margin-left: 270px; min-width: 0; }
.topbar { height: 76px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 18px; padding: 0 28px; position: sticky; top: 0; z-index: 10; }
.icon-button { display: none; border: 0; background: #eef3f8; width: 42px; height: 42px; border-radius: 9px; cursor: pointer; }
.site-selector { display: flex; align-items: center; gap: 10px; }
.site-selector label { margin: 0; color: var(--muted); }
.site-selector select { width: 135px; padding: 8px 10px; }
.topbar-spacer { flex: 1; }
.user-box { display: flex; align-items: center; gap: 10px; min-width: 180px; }
.user-box small { display: block; color: var(--muted); margin-top: 2px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e4eef8; color: var(--blue); display: grid; place-items: center; font-weight: 800; }
.danger-link { border: 0; background: transparent; color: var(--red); font-weight: 650; cursor: pointer; }
.content-area { padding: 30px; }
.page-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; margin-bottom: 24px; }
.page-header h1 { font-size: 32px; margin: 3px 0 8px; }
.page-header p { margin: 0; color: var(--muted); }
.status-pill { background: #e8f5eb; color: #237536; border: 1px solid #bfe2c6; padding: 9px 13px; border-radius: 999px; font-weight: 700; white-space: nowrap; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.summary-card { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 20px; display: flex; gap: 16px; box-shadow: 0 5px 16px rgba(20,47,80,.04); }
.summary-card small { color: var(--muted); font-weight: 650; }
.summary-card strong { display: block; font-size: 31px; margin: 4px 0; }
.summary-card p { margin: 0; color: var(--muted); font-size: 13px; }
.card-icon { width: 43px; height: 43px; flex: 0 0 43px; border-radius: 11px; display: grid; place-items: center; color: white; background: var(--blue); font-weight: 800; }
.content-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.panel { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 22px; box-shadow: 0 5px 16px rgba(20,47,80,.04); }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; border-bottom: 1px solid #edf1f5; padding-bottom: 14px; margin-bottom: 14px; }
.panel-heading h2, .next-step h2 { margin: 0; font-size: 20px; }
.badge { padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.badge.green { background: #e4f6e8; color: #247234; }
.check-list { margin: 0; padding: 0; list-style: none; }
.check-list li { padding: 11px 0 11px 30px; border-bottom: 1px solid #f0f3f6; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 3px; color: var(--green); font-weight: 900; }
.profile-list { margin: 0; }
.profile-list div { display: grid; grid-template-columns: 120px 1fr; gap: 15px; padding: 10px 0; border-bottom: 1px solid #f0f3f6; }
.profile-list dt { color: var(--muted); }
.profile-list dd { margin: 0; font-weight: 650; }
.next-step { margin-top: 18px; display: grid; grid-template-columns: .8fr 1.2fr; gap: 30px; align-items: center; }
.next-step ol { margin: 0; padding-left: 22px; }
.next-step li { padding: 7px 0; }
.error-page { min-height: 70vh; display: grid; place-items: center; align-content: center; gap: 14px; text-align: center; }
.error-page h1 { font-size: 72px; margin: 0; color: var(--blue); }
@media (max-width: 1050px) {
    .summary-grid { grid-template-columns: repeat(2, 1fr); }
    .content-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
    .login-page { grid-template-columns: 1fr; }
    .login-hero { min-height: 340px; padding: 35px; }
    .login-hero h1 { font-size: 42px; }
    .login-panel { padding: 25px 15px; }
    .sidebar { transform: translateX(-100%); transition: .22s ease; box-shadow: var(--shadow); }
    .sidebar.open { transform: translateX(0); }
    .main-area { margin-left: 0; }
    .icon-button { display: inline-grid; place-items: center; }
    .topbar { padding: 0 14px; gap: 9px; }
    .site-selector label, .user-box div, .danger-link { display: none; }
    .user-box { min-width: auto; }
    .content-area { padding: 20px 14px; }
    .page-header { flex-direction: column; }
    .next-step { grid-template-columns: 1fr; }
}
@media (max-width: 570px) {
    .summary-grid { grid-template-columns: 1fr; }
    .login-card { padding: 25px 20px; }
    .status-pill { white-space: normal; }
}

/* Native PHP v1.2 - Inspection, CAPA, Incident, Audit, HIRADC */
textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 12px 13px; background: white; color: var(--ink); font: inherit; resize: vertical; }
textarea:focus { outline: 3px solid rgba(27,95,167,.14); border-color: var(--blue); }
button { font: inherit; }
.page-actions, .form-actions, .workflow-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.secondary-button, .ghost-button, .danger-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border-radius: 10px; padding: 11px 15px; font-weight: 700; text-decoration: none; cursor: pointer; }
.secondary-button { border: 1px solid #b9c9da; background: #eef5fb; color: var(--blue-dark); }
.secondary-button:hover { background: #e0edf8; }
.secondary-button.small { padding: 8px 11px; font-size: 12px; }
.ghost-button { border: 1px solid var(--line); background: white; color: var(--ink); }
.ghost-button:hover { background: #f4f7fa; }
.danger-button { border: 1px solid var(--red); background: var(--red); color: white; }
.danger-button.outline { background: white; color: var(--red); }
.small-link, .record-link { color: var(--blue); text-decoration: none; font-weight: 750; }
.small-link:hover, .record-link:hover { text-decoration: underline; }
.nav-link small { margin-left: auto; font-size: 9px; text-transform: uppercase; color: #a8bed4; }
.clickable { color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.clickable:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.yellow-bg { background: #e4a90d !important; }
.red-bg { background: #d84242 !important; }
.green-bg { background: #27a35b !important; }
.neutral-bg { background: #64748b !important; }
.five-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.six-cols { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.compact-summary { margin-bottom: 18px; }
.compact-summary .summary-card { padding: 15px; align-items: center; }
.compact-summary .summary-card strong { font-size: 26px; }
.metric-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.metric-list div { display: flex; justify-content: space-between; gap: 12px; background: #f6f8fb; border: 1px solid #edf1f5; border-radius: 10px; padding: 13px; }
.metric-list span { color: var(--muted); }
.metric-list strong { color: var(--blue-dark); }
.filter-panel { margin-bottom: 18px; }
.filter-grid, .form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: end; }
.field { min-width: 0; }
.field label { margin: 0 0 7px; font-size: 13px; color: #35465a; }
.field small { display: block; margin-top: 6px; color: var(--muted); font-size: 11px; }
.span-2 { grid-column: span 2; }
.span-3 { grid-column: span 3; }
.span-4 { grid-column: 1 / -1; }
.filter-actions { display: flex; gap: 8px; justify-content: flex-end; align-items: center; grid-column: span 2; }
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.table-responsive { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 1100px; }
.data-table th { text-align: left; padding: 13px 15px; background: #f5f7fa; border-bottom: 1px solid var(--line); color: #526274; text-transform: uppercase; letter-spacing: .04em; font-size: 11px; }
.data-table td { padding: 14px 15px; border-bottom: 1px solid #edf1f5; vertical-align: top; font-size: 13px; }
.data-table td small { display: block; color: var(--muted); margin-top: 4px; }
.data-table tr:hover td { background: #fafcfe; }
.badge { display: inline-flex; align-items: center; justify-content: center; }
.badge.success { background: #e3f7e9; color: #18713a; }
.badge.info { background: #e4effe; color: #185da5; }
.badge.warning { background: #fff3cf; color: #936400; }
.badge.danger { background: #ffe4e6; color: #b4232e; }
.badge.neutral { background: #e9eef3; color: #506174; }
.badge.large { padding: 9px 13px; font-size: 13px; }
.count-badge { display: inline-grid; place-items: center; min-width: 27px; height: 27px; padding: 0 7px; border-radius: 999px; background: #e5eff9; color: var(--blue); font-weight: 800; }
.row-actions { display: flex; gap: 7px; }
.icon-action { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; text-decoration: none; color: white; }
.icon-action.view { background: #2688c7; }
.icon-action.edit { background: #68a916; }
.empty-state { text-align: center; color: var(--muted); padding: 32px !important; }
.pagination { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; padding: 16px; }
.pagination a { display: grid; place-items: center; min-width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: white; }
.pagination a.active { color: white; background: var(--blue); border-color: var(--blue); }
.form-section { margin-bottom: 18px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #edf1f5; }
.section-heading > div { display: flex; align-items: center; gap: 10px; }
.section-heading h2 { margin: 0; font-size: 20px; }
.section-number { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--blue); color: white; font-weight: 850; }
.document-chip { background: #edf5fd; border: 1px solid #c7def3; color: var(--blue-dark); border-radius: 999px; padding: 7px 11px; font-weight: 800; }
.finding-card { border: 1px solid #d7e2ee; border-top: 4px solid var(--blue); border-radius: 13px; padding: 18px; margin-bottom: 16px; background: #fbfdff; }
.finding-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.finding-header > div { display: flex; align-items: center; gap: 9px; }
.finding-index { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: #e2eef9; color: var(--blue); font-weight: 850; }
.remove-finding { width: 32px; height: 32px; border-radius: 8px; border: 1px solid #f2b5bb; background: #fff1f2; color: var(--red); font-size: 20px; cursor: pointer; }
.checkbox-field { align-self: center; }
.checkbox-field label { display: flex; align-items: center; gap: 9px; margin: 0; }
.checkbox-field input[type="checkbox"] { width: 18px; height: 18px; flex: 0 0 auto; }
.compact-checkbox { padding-top: 24px; }
.sticky-form-actions { position: sticky; bottom: 0; z-index: 7; display: flex; justify-content: flex-end; gap: 10px; padding: 14px 18px; margin: 0 -30px -30px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); box-shadow: 0 -8px 25px rgba(20,47,80,.08); backdrop-filter: blur(10px); }
.validation-summary ul { margin: 8px 0 0; padding-left: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.detail-list { margin: 0; }
.detail-list div { display: grid; grid-template-columns: 150px 1fr; gap: 15px; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.text-block { margin-bottom: 15px; }
.text-block p { margin: 6px 0 0; color: #394b5f; line-height: 1.6; }
.finding-list { display: grid; gap: 13px; }
.finding-detail { border: 1px solid #dfe7ef; border-radius: 12px; padding: 17px; background: #fcfdff; }
.finding-detail-top { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.finding-detail h3 { margin: 12px 0 7px; }
.finding-detail p { line-height: 1.55; }
.source-ref, .source-tag { margin-left: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px 15px; font-size: 12px; color: #526274; margin-top: 14px; }
.recommendation { margin-top: 13px; padding: 11px; background: #eef8f0; border-left: 4px solid var(--green); border-radius: 7px; }
.file-list { list-style: none; margin: 0; padding: 0; }
.file-list li { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid #edf1f5; }
.file-list li small { display: block; color: var(--muted); margin-top: 3px; }
.file-list a { color: var(--blue); font-weight: 750; }
.timeline { display: grid; gap: 2px; }
.timeline-item { display: grid; grid-template-columns: 22px 1fr; gap: 9px; padding: 8px 0; }
.timeline-item > span { width: 12px; height: 12px; margin-top: 5px; border: 3px solid #cfe0f0; background: var(--blue); border-radius: 50%; }
.timeline-item strong, .timeline-item small { display: block; }
.timeline-item small { color: var(--muted); margin-top: 3px; }
.timeline-item p { margin: 6px 0 0; }
.workflow-panel, .verification-panel { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-bottom: 18px; }
.workflow-panel h2, .verification-panel h2 { margin: 0 0 5px; }
.workflow-panel p, .verification-panel p { margin: 0; color: var(--muted); }
.compact-input { width: 190px; padding: 10px; }
.capa-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capa-card { background: white; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 14px; padding: 17px; box-shadow: 0 5px 16px rgba(20,47,80,.04); }
.capa-card.overdue-card { border-top-color: var(--red); }
.capa-card-top, .capa-card-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.capa-card h2 { margin: 13px 0 5px; font-size: 17px; }
.capa-meta { display: grid; gap: 6px; margin: 13px 0; color: var(--muted); font-size: 12px; }
.capa-description { min-height: 42px; line-height: 1.45; }
.overdue-label { display: inline-flex; border-radius: 7px; padding: 5px 8px; background: #ffe5e8; color: #b51f2d; font-size: 10px; font-weight: 900; letter-spacing: .08em; }
.overdue-label.large { font-size: 12px; padding: 8px 11px; }
.progress-row { display: flex; align-items: center; gap: 10px; margin: 15px 0; }
.progress-track { flex: 1; height: 8px; border-radius: 99px; background: #e9eef3; overflow: hidden; }
.progress-track span, .big-progress div span { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); }
.big-progress { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; }
.big-progress > div { flex: 1; height: 14px; border-radius: 99px; background: #e9eef3; overflow: hidden; }
.verification-panel form { min-width: min(620px, 100%); }
.verification-panel textarea { margin-bottom: 10px; }
@media (max-width: 1350px) {
    .six-cols { grid-template-columns: repeat(3, 1fr); }
    .five-cols { grid-template-columns: repeat(3, 1fr); }
    .capa-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1050px) {
    .filter-grid, .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-grid { grid-template-columns: 1fr; }
    .mini-grid { grid-template-columns: repeat(2, 1fr); }
    .workflow-panel, .verification-panel { align-items: flex-start; flex-direction: column; }
    .verification-panel form { min-width: 100%; }
}
@media (max-width: 720px) {
    .five-cols, .six-cols { grid-template-columns: repeat(2, 1fr); }
    .filter-grid, .form-grid { grid-template-columns: 1fr; }
    .span-2, .span-3, .span-4, .filter-actions { grid-column: auto; }
    .filter-actions { justify-content: stretch; }
    .filter-actions > * { flex: 1; }
    .capa-board { grid-template-columns: 1fr; }
    .mini-grid { grid-template-columns: 1fr; }
    .sticky-form-actions { margin: 0 -14px -20px; flex-wrap: wrap; }
    .sticky-form-actions > * { flex: 1; }
    .detail-list div { grid-template-columns: 1fr; gap: 4px; }
    .page-actions { width: 100%; }
}
.inline-files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.inline-files a { display: inline-flex; align-items: center; padding: 7px 9px; border-radius: 7px; background: #edf5fd; color: var(--blue); text-decoration: none; font-size: 12px; font-weight: 700; }

.risk-preview { display:flex; flex-direction:column; gap:.35rem; justify-content:center; align-items:flex-start; padding:1rem; border:1px solid var(--border); border-radius:14px; background:#f8fafc; }
.risk-preview strong { font-size:2rem; color:var(--navy); }
.risk-comparison { display:grid; grid-template-columns:1fr 1.6fr 1fr; gap:1rem; margin-bottom:1rem; }
.risk-card { text-align:center; display:flex; flex-direction:column; align-items:center; gap:.7rem; }
.risk-card > strong { font-size:3rem; color:var(--navy); }
.controls-card p { white-space:pre-wrap; line-height:1.65; }
@media (max-width: 980px) { .risk-comparison { grid-template-columns:1fr; } }

/* Native PHP v1.3 - SIA/SIO & Certification */
.import-guide { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 16px; }
.import-guide code { background: #edf5fd; color: var(--blue-dark); border: 1px solid #c8dff4; border-radius: 8px; padding: 8px 10px; font-size: 12px; }
.import-table { min-width: 1350px; }
.import-table td { max-width: 260px; overflow-wrap: anywhere; }
.cert-expiry-note { padding: 10px 12px; border-radius: 9px; background: #fff7dc; border: 1px solid #f1d88a; color: #805c00; }
@media (max-width: 720px) { .import-guide code { width: 100%; } }

/* Native PHP v1.5 - PTW */
.success-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; border-radius: 10px; padding: 11px 15px; font-weight: 700; text-decoration: none; cursor: pointer; border: 1px solid var(--green); background: var(--green); color: #fff; }
.full-width { width: 100%; }
.workflow-form { display: grid; gap: 10px; margin-bottom: 12px; }
.workflow-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ptw-checklist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.ptw-check-item { border: 1px solid #dce6ef; border-radius: 12px; padding: 13px; background: #fbfdff; }
.ptw-check-item label { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 9px; line-height: 1.4; }
.ptw-check-item input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; flex: 0 0 auto; }
.ptw-check-item input[type="text"], .ptw-check-item input:not([type]) { width: 100%; }
.certification-picker { max-height: 460px; overflow: auto; border: 1px solid #e2e8f0; border-radius: 12px; }
.certification-picker select, .certification-picker input { min-width: 135px; }
.ptw-file-area { margin-top: 18px; }
.ptw-detail-grid { grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr); align-items: start; }
.long-text-block { margin-top: 16px; padding: 14px; border: 1px solid #e3eaf1; border-radius: 12px; background: #fbfdff; }
.long-text-block h3 { margin: 0 0 8px; }
.long-text-block p { margin: 0; line-height: 1.55; }
.muted-text { color: var(--muted); }
.document-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.document-list li { padding: 11px; border: 1px solid #e3eaf1; border-radius: 10px; }
.document-list a { color: var(--blue); font-weight: 700; text-decoration: none; }
.document-list small { display: block; color: var(--muted); margin-top: 4px; }
.summary-status-text { font-size: 16px !important; line-height: 1.2; }
.success-soft { background: #effbf3 !important; border-color: #bfe7ca !important; }
.warning-soft { background: #fff9e9 !important; border-color: #f4d98a !important; }
.danger-soft { background: #fff2f2 !important; border-color: #f1bcbc !important; }
@media (max-width: 980px) { .ptw-checklist-grid { grid-template-columns: 1fr; } .ptw-detail-grid { grid-template-columns: 1fr; } }

.record-state-selector{display:flex;align-items:center;gap:8px;margin-left:12px}.record-state-selector label{font-weight:700;color:#52657c;font-size:13px}.record-state-selector select{min-width:125px;border:1px solid #cad7e6;border-radius:10px;padding:9px 34px 9px 12px;background:#fff}.inline-action-form{display:inline-flex;margin:0}.icon-action.archive{background:#fff1f2;color:#cf2f42;border:1px solid #fecdd3}.icon-action.archive:hover{background:#cf2f42;color:#fff}.icon-action.restore{background:#e8f7ef;color:#16834e;border:1px solid #b9e8cf}.icon-action.restore:hover{background:#16834e;color:#fff}.archive-policy{margin-top:18px}.archive-policy h2{margin-top:0}.archive-policy ul{margin:0;padding-left:20px;line-height:1.8}.archived-row{background:#f8fafc;opacity:.88}.archived-indicator{display:inline-flex;margin-top:5px;padding:3px 8px;border-radius:999px;background:#e5e7eb;color:#4b5563;font-size:11px;font-weight:800}.badge.neutral{background:#e5e7eb;color:#4b5563}
@media(max-width:900px){.record-state-selector{display:none}}

/* Native PHP v1.7 - User, account, role and permission management */
.five-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.user-table { min-width: 1050px; }
.force-password-label { display:block; margin-top:6px; color:#a66a00; font-weight:800; }
.site-access-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.check-card { display:flex; align-items:center; gap:10px; margin:0; padding:13px; border:1px solid #dbe3ec; border-radius:11px; background:#fbfdff; cursor:pointer; }
.check-card input { width:18px; height:18px; flex:0 0 auto; }
.check-card span { display:flex; flex-direction:column; }
.check-card small { color:var(--muted); margin-top:3px; }
.info-box { padding:13px 15px; border:1px solid #c9def2; background:#eef6fd; border-radius:10px; color:#36526f; margin-bottom:16px; line-height:1.5; }
.field-error { display:block; color:var(--red); margin-top:6px; font-weight:650; }
.narrow-panel { max-width:720px; margin:0 auto; }
.temporary-password-alert { background:#fff8dd; border:1px solid #eed47a; color:#6e5200; }
.temporary-password-alert code { display:inline-block; padding:6px 9px; margin-left:6px; background:white; border:1px dashed #d3ad2c; border-radius:7px; font-size:16px; font-weight:900; user-select:all; }
.temporary-password-alert p { margin:8px 0 0; }
.user-detail-grid { grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr); }
.account-action-stack { display:grid; gap:10px; margin-top:18px; }
.account-action-stack form { margin:0; }
.deactivation-note { margin-top:16px; padding:13px; background:#fff2f2; border:1px solid #f1bcbc; border-radius:10px; }
.deactivation-note p { margin:6px 0; }
.deactivation-note small { color:var(--muted); }
.role-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-bottom:18px; }
.role-card p { min-height:42px; color:var(--muted); line-height:1.5; }
.permission-reference { margin-top:18px; }
.permission-group { border-top:1px solid #edf1f5; padding:16px 0; }
.permission-group:first-of-type { border-top:0; }
.permission-group h3 { margin:0 0 10px; text-transform:capitalize; }
.permission-chip-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.permission-chip { display:flex; flex-direction:column; padding:11px; border:1px solid #e2e8f0; border-radius:9px; background:#fbfdff; }
.permission-chip small { color:var(--muted); margin-top:4px; }
.permission-matrix { display:grid; gap:15px; }
.permission-module { border:1px solid #dfe7ef; border-radius:12px; overflow:hidden; }
.permission-module-head { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:13px 15px; background:#f4f8fc; border-bottom:1px solid #dfe7ef; }
.permission-module-head h2 { margin:0; font-size:18px; }
.permission-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0; }
.permission-option { display:flex; gap:10px; align-items:flex-start; padding:13px 15px; margin:0; border-bottom:1px solid #edf1f5; cursor:pointer; }
.permission-option:nth-child(odd) { border-right:1px solid #edf1f5; }
.permission-option input { width:18px; height:18px; flex:0 0 auto; margin-top:2px; }
.permission-option span { display:flex; flex-direction:column; }
.permission-option small { color:var(--muted); margin-top:4px; }
.account-security-summary { display:grid; gap:5px; margin-top:24px; padding-top:18px; border-top:1px solid #edf1f5; }
.account-security-summary small { color:var(--muted); margin-top:7px; }
.account-security-summary strong { font-size:16px; }
@media(max-width:1250px){.five-cols{grid-template-columns:repeat(3,1fr)}.role-grid{grid-template-columns:repeat(2,1fr)}.permission-chip-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:850px){.user-detail-grid{grid-template-columns:1fr}.role-grid{grid-template-columns:1fr}.permission-options{grid-template-columns:1fr}.permission-option:nth-child(odd){border-right:0}.site-access-grid{grid-template-columns:1fr}}
@media(max-width:600px){.five-cols{grid-template-columns:1fr}.permission-chip-grid{grid-template-columns:1fr}}
