:root {
    --apqp-scale: 1;
    --navy: #0F294A;
    --blue: #0066CC;
    --cover-bg: #2C4C74;
    --cover-card: #395F8E;
    --cover-accent: #5B8EC9;
    --tbl-hdr: #D6E4F0;
    --tr-orange: #E36C0A;
    --en-gray: #475569;
    --border: #CBD5E1;
    --row-alt: #F4F7FB;
}

.apqp-content {
    font-size: calc(1rem * var(--apqp-scale));
    line-height: 1.55;
}

.apqp-subhead .tr-txt,
.apqp-title-center .tr-txt,
.apqp-subtitle-center .tr-txt,
.heading-left .tr-txt,
.fig-caption .tr-txt,
table.apqp-table thead th .tr-txt {
    color: var(--navy);
    font-weight: bold;
}

.apqp-subhead .en-txt,
.apqp-title-center .en-txt,
.apqp-subtitle-center .en-txt,
.heading-left .en-txt,
table.apqp-table thead th .en-txt {
    color: var(--blue);
    font-style: italic;
}

.tr-txt {
    display: block;
}

.apqp-para .tr-txt,
.apqp-bullet .tr-txt,
.apqp-note .tr-txt,
.apqp-form-row .tr-txt,
.heading-body .tr-txt,
table.apqp-table tbody td .tr-txt,
.apqp-plain-lines {
    color: var(--tr-orange);
    margin-bottom: 0.35em;
}

.apqp-para,
.apqp-bullet,
.apqp-form-row,
.apqp-plain-lines,
.apqp-subhead,
.note-box,
.heading-block,
.table-responsive {
    margin-bottom: 1.15em;
}

.apqp-bullet {
    padding-left: 1.35em;
    position: relative;
}

.apqp-bullet .bullet-dot {
    position: absolute;
    left: 0.25em;
    top: 0;
    color: var(--tr-orange);
    font-weight: bold;
}

.note-box {
    border-left: 4px solid var(--tr-orange);
    background: #FFF8F1;
    padding: 0.7em 1em;
    border-radius: 0 6px 6px 0;
}

.heading-block {
    border-top: none;
    padding-top: 0.5em;
    margin-bottom: 1.4em;
}

.heading-left {
    align-self: flex-start;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 0.45em;
    margin-bottom: 0.5em;
}

.heading-left-empty {
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

.heading-block-cont {
    padding-top: 0;
    margin-bottom: 0.9em;
}

@media (min-width: 992px) {
    .heading-block-titled .heading-body {
        padding-top: 1.55em;
    }
}

.page-card-section-cover {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 175px);
}

.section-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #F8FBFF 0%, #EAF2FB 100%);
    border: 1px solid #C7DAEE;
    border-left: 10px solid var(--navy);
    border-radius: 12px;
    padding: 4.5rem 2.5rem;
    text-align: center;
    margin: 1.25rem 0;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75), 0 8px 24px rgba(15, 41, 74, 0.06);
}

.section-hero-inner {
    max-width: 780px;
    width: 100%;
}

.section-kicker {
    font-size: 1.45em;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--tr-orange);
    margin-bottom: 0.45rem;
}

.section-main-title {
    font-size: 2.35em;
    font-weight: 800;
    line-height: 1.2;
    color: var(--navy);
    letter-spacing: -0.01em;
}

.section-hero-rule {
    width: 96px;
    height: 4px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--navy), var(--tr-orange));
    margin: 1.75rem auto;
}

.section-hero-en {
    font-style: normal !important;
    font-size: 1em !important;
}

.section-kicker-en {
    font-size: 1.15em;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.3rem;
}

.section-main-title-en {
    font-size: 1.7em;
    font-weight: 700;
    font-style: italic;
    line-height: 1.25;
    color: #334155;
}

body.lang-tr-only .section-hero-rule,
body.lang-en-only .section-hero-rule {
    display: none;
}

@media (max-width: 768px) {
    .page-card-section-cover {
        min-height: 62vh;
    }
    .section-hero {
        padding: 3rem 1.25rem;
    }
    .section-main-title {
        font-size: 1.75em;
    }
    .section-main-title-en {
        font-size: 1.3em;
    }
}

.en-txt {
    display: block;
    color: var(--en-gray);
    font-style: italic;
    font-size: 0.90em;
}

.apqp-title-center {
    text-align: center;
    font-size: 1.45em;
    margin-bottom: 0.25em;
}

.apqp-subtitle-center {
    text-align: center;
    font-size: 1.15em;
    margin-bottom: 1.2em;
}

.apqp-subhead {
    font-size: 1.12em;
    border-bottom: 2px solid var(--navy);
    padding-bottom: 0.35em;
}

.apqp-output-bullet .tr-txt,
.apqp-output-bullet .en-txt,
.apqp-output-bullet .bullet-dot,
.apqp-bold-item .tr-txt,
.apqp-bold-item .en-txt,
.apqp-bold-item .bullet-dot {
    font-weight: 700;
}

body.lang-tr-only .en-txt {
    display: none !important;
}

body.lang-en-only .tr-txt {
    display: none !important;
}

table.apqp-table thead th {
    background-color: var(--tbl-hdr) !important;
    color: var(--navy);
}

.apqp-table tr.chk-sec-row td {
    background: #E8F0FA !important;
    border-top: 1.5px solid #93B4DC;
}

.apqp-table tr.chk-sec-row .tr-txt {
    font-weight: 700 !important;
    color: var(--navy) !important;
}

.apqp-table tr.chk-sec-row .en-txt {
    font-weight: 700 !important;
    color: #1E3A5F !important;
}

.apqp-table td.chk-bold-cell .tr-txt {
    font-weight: 700 !important;
    color: var(--tr-orange) !important;
}

.apqp-table td.chk-bold-cell .en-txt {
    font-weight: 700 !important;
    color: var(--en-gray) !important;
}

table.apqp-table tbody tr:nth-child(odd) {
    background-color: #FFFFFF;
}

table.apqp-table tbody tr:nth-child(even) {
    background-color: var(--row-alt);
}

table.apqp-table tbody tr td {
    border: 1px solid var(--border);
}

/* Table of Contents (AIAG original left-aligned hierarchy) */
.apqp-toc-table td.toc-main,
.apqp-toc-table td.toc-section {
    font-weight: 700;
}

.apqp-toc-table td.toc-main .tr-txt,
.apqp-toc-table td.toc-section .tr-txt {
    color: var(--navy);
}

.apqp-toc-table td.toc-main .en-txt,
.apqp-toc-table td.toc-section .en-txt {
    color: var(--blue);
    font-weight: 600;
}

.apqp-toc-table td.toc-main {
    padding-top: 0.65rem;
    padding-left: 0.5rem !important;
}

.apqp-toc-table td.toc-section {
    padding-left: 0.5rem !important;
}

.apqp-toc-table td.toc-section-indent {
    padding-left: 1.45rem !important;
}

.apqp-toc-table td.toc-sub {
    padding-left: 2.35rem !important;
    font-weight: 400;
}

.apqp-toc-table .toc-page-col {
    width: 90px;
    white-space: nowrap;
    color: var(--navy);
}

.apqp-toc-table tbody tr.toc-row-link {
    cursor: pointer;
}

.apqp-toc-table tbody tr.toc-row-link:hover td {
    background-color: #E8F1FA !important;
}

#topNavbar {
    position: sticky;
    top: 0;
    z-index: 1030;
}

#sidebarNav {
    width: 280px;
    min-width: 280px;
    max-height: calc(100vh - 64px);
    position: sticky;
    top: 60px;
    overflow-y: auto;
    border-right: 1px solid var(--border);
    background: #F8FAFC;
}

body.sidebar-collapsed #sidebarNav {
    display: none !important;
}

.chapter-item {
    cursor: pointer;
    font-size: 0.84rem;
}

.chapter-item.active-ch {
    background-color: var(--tbl-hdr) !important;
    color: var(--navy) !important;
    font-weight: 600;
    border-left: 4px solid var(--navy);
}

.page-btn {
    min-width: 36px;
    font-size: 0.72rem;
    padding: 2px 4px;
}

.page-btn.active {
    background-color: var(--navy) !important;
    color: #fff !important;
}

#mainWrapper {
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    transition: max-width 0.2s;
}

body.mode-fullwidth #mainWrapper {
    max-width: 100% !important;
}

.page-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    box-shadow: 0 2px 8px rgba(15, 41, 74, 0.05);
    margin-bottom: 1.5rem;
}

.page-card::after {
    content: "www.erkinguler.com";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-45deg);
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(15, 41, 74, 0.065);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    z-index: 20;
}

.page-card:has(.cover-hero)::after {
    color: rgba(15, 41, 74, 0.065);
}

.chrome-hdr {
    border-bottom: 2px solid var(--navy);
    padding-bottom: 0.45rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}

.chrome-ftr {
    border-top: 1px solid var(--border);
    padding-top: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.82rem;
    color: #64748B;
}

.cover-hero {
    background: linear-gradient(160deg, #F8FAFC 0%, #EEF4FA 55%, #E4EEF8 100%);
    border: 1px solid #CBD5E1;
    border-left: 12px solid #7FA6CF;
    color: #0F294A;
    padding: 2.5rem;
    border-radius: 8px;
}

.cover-hero-soft {
    background: linear-gradient(160deg, #F8FAFC 0%, #EEF4FA 55%, #E4EEF8 100%);
    border: 1px solid #CBD5E1;
    border-left: 10px solid #7FA6CF;
    color: #0F294A;
    padding: 2.25rem 2rem;
    border-radius: 8px;
}

.cover-info-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #BFDBFE;
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
}

.chk-cell-input {
    width: 100%;
    min-width: 85px;
    font-size: 0.85em;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 2px 6px;
    background: #fff;
}

#searchResults {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 420px;
    overflow-y: auto;
    z-index: 1060;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
}

mark.search-hit {
    background: #FEF08A;
    padding: 0 2px;
    border-radius: 2px;
}

.fig-img {
    cursor: zoom-in;
    max-height: 75vh;
    width: auto;
    max-width: 100%;
    border: 1px solid var(--border);
    border-radius: 6px;
}

#figModal .modal-dialog {
    max-width: 92vw;
}

#figModalBody {
    overflow: auto;
    max-height: 78vh;
    text-align: center;
    background: #F8FAFC;
}

#figModalImg {
    transition: transform 0.15s ease;
    transform-origin: center top;
    max-width: 100%;
}

/* Minimal offline fallback if Bootstrap CDN is unavailable */
.d-none { display: none !important; }
.d-flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-grow-1 { flex: 1 1 auto; min-width: 0; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-between { justify-content: space-between; }
.justify-content-center { justify-content: center; }
.text-center { text-align: center; }
.table-responsive { overflow-x: auto; width: 100%; }
.img-fluid { max-width: 100%; height: auto; }
@media (min-width: 992px) {
    .row.heading-block { display: flex; gap: 1rem; }
    .col-lg-3 { flex: 0 0 24%; max-width: 24%; }
    .col-lg-9 { flex: 1 1 74%; max-width: 74%; }
}

/* AIAG PDF s. 71 — Gate Overview Table */
table.apqp-gate-overview-table {
    border: 1.5px solid #64748B;
    font-size: 0.92em;
}
table.apqp-gate-overview-table th,
table.apqp-gate-overview-table tbody tr td {
    border: 1px solid #94A3B8 !important;
    vertical-align: top !important;
    padding: 0.55rem 0.65rem !important;
}
table.apqp-gate-overview-table thead th:first-child {
    width: 66px;
    text-align: center;
}
table.apqp-gate-overview-table thead th:nth-child(2) {
    width: 34%;
}
table.apqp-gate-overview-table td.gate-col-badge {
    text-align: center;
    padding-top: 0.95rem !important;
    width: 66px;
}
.gate-diamond {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #64748B 0%, #334155 100%);
    border: 1.5px solid #1E293B;
    border-radius: 3px;
    transform: rotate(45deg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.25);
}
.gate-diamond span {
    transform: rotate(-45deg);
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}
.gate-decision-title .tr-txt,
.gate-decision-title .en-txt {
    font-weight: 700;
}
.gate-doc-line {
    margin-top: 0.55rem;
    padding-left: 1.15rem;
    font-style: italic;
}
.gate-doc-line .tr-txt {
    color: var(--tr-orange);
    font-size: 0.94em;
}
.gate-doc-line .en-txt {
    font-size: 0.9em;
}
.gate-info-list {
    display: flex;
    flex-direction: column;
    gap: 0.24rem;
}
.gate-info-item {
    padding-bottom: 0.2rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
    line-height: 1.32;
}
.gate-info-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.gate-info-item .en-txt {
    font-size: 0.88em;
    margin-top: 1px;
}

/* AIAG Gate / Summary Structured Form (PDF s. 73, 75, 77, etc.) */
.gf-wrap {
    padding: 0.35rem 0.25rem 0.75rem;
}
.gf-header {
    text-align: center;
    margin-bottom: 1.1rem;
}
.gf-title .tr-txt {
    font-size: 1.12em;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.02em;
}
.gf-title .en-txt {
    font-size: 0.96em;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.gf-subtitle {
    margin-top: 0.2rem;
}
.gf-subtitle .tr-txt {
    font-size: 1.04em;
    font-weight: 700;
    color: var(--navy);
}
.gf-subtitle .en-txt {
    font-size: 0.92em;
    font-weight: 600;
}
.gf-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem 2.2rem;
    margin-bottom: 1.45rem;
}
.gf-meta-item {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}
.gf-meta-label {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9em;
    line-height: 1.2;
}
.gf-meta-label .tr-txt {
    color: var(--navy);
}
.gf-meta-label .en-txt {
    font-size: 0.85em;
}
.gf-line-input,
.gf-sig-input {
    border: none !important;
    border-bottom: 1.5px solid #475569 !important;
    border-radius: 0 !important;
    background: transparent !important;
    padding: 2px 4px !important;
    font-size: 0.88em !important;
    min-width: 60px !important;
    box-shadow: none !important;
}
.gf-line-input:focus,
.gf-sig-input:focus {
    outline: none;
    border-bottom-color: var(--blue) !important;
    background: #F8FAFC !important;
}
.gf-section {
    margin-top: 1.35rem;
}
.gf-sec-head {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.55rem;
}
.gf-sec-num {
    font-weight: 700;
    min-width: 1.35rem;
    color: var(--navy);
}
.gf-sec-title {
    border-bottom: 1.5px solid #334155;
    padding-bottom: 2px;
    font-weight: 700;
    font-size: 0.96em;
}
.gf-sec-title .tr-txt {
    color: var(--navy);
}
.gf-sec-title .en-txt {
    font-size: 0.88em;
    font-weight: 500;
}
.gf-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.25rem;
}
.gf-empty-th {
    border: none !important;
    background: transparent !important;
    width: 60%;
}
.gf-box-th {
    border: 1.5px solid #334155 !important;
    background: #F1F5F9 !important;
    text-align: center;
    padding: 0.35rem 0.45rem;
    width: 20%;
    vertical-align: middle;
    font-size: 0.86em;
}
.gf-box-th .tr-txt {
    font-weight: 700;
    color: var(--navy);
}
.gf-box-th .en-txt {
    font-size: 0.88em;
    font-weight: 600;
}
.gf-label-td {
    border: none !important;
    text-align: right;
    padding: 0.32rem 0.95rem 0.32rem 0.75rem;
    vertical-align: middle;
    line-height: 1.28;
}
.gf-table.gf-align-left .gf-label-td {
    text-align: left;
    padding: 0.32rem 0.75rem 0.32rem 1.85rem;
}
.gf-label-td .tr-txt {
    font-weight: 600;
    color: #1E293B;
    font-size: 0.91em;
}
.gf-label-td .en-txt {
    font-size: 0.83em;
}
.gf-box-td {
    border: 1.5px solid #334155 !important;
    padding: 3px 6px;
    text-align: center;
    vertical-align: middle;
    background: #fff;
}
.gf-box-input {
    border: none !important;
    background: transparent !important;
    text-align: center;
    width: 100%;
    min-width: 50px !important;
    padding: 3px 4px !important;
    box-shadow: none !important;
}
.gf-box-input:focus {
    outline: none;
    background: #F8FAFC !important;
}
.gf-notes {
    margin: 0.55rem 0 0 36%;
    font-size: 0.86em;
    line-height: 1.35;
}
.gf-note-line {
    margin-bottom: 0.28rem;
}
.gf-note-line .tr-txt {
    color: var(--tr-orange);
    font-weight: 600;
}
.gf-note-line .en-txt {
    font-size: 0.9em;
}
.gf-sig-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2.8rem;
    margin: 1rem 0.5rem 0.5rem 1.85rem;
}
.gf-sig-cell {
    display: flex;
    flex-direction: column;
}
.gf-sig-label {
    margin-top: 3px;
    font-size: 0.82em;
    font-weight: 600;
    line-height: 1.25;
}
.gf-sig-label .tr-txt {
    color: var(--navy);
}
.gf-table[data-cols="3"] .gf-empty-th,
.gf-table[data-cols="3"] .gf-label-th,
.gf-table[data-cols="3"] .gf-label-td {
    width: 52%;
}
.gf-table[data-cols="3"] .gf-box-th {
    width: 16%;
}
.gf-table[data-cols="4"] .gf-empty-th,
.gf-table[data-cols="4"] .gf-label-th,
.gf-table[data-cols="4"] .gf-label-td {
    width: 34%;
}
.gf-table[data-cols="4"] .gf-box-th {
    width: 16.5%;
}
.gf-label-th {
    border: 1.5px solid #334155 !important;
    background: #F1F5F9 !important;
    text-align: left;
    padding: 0.35rem 0.55rem;
    vertical-align: middle;
    font-size: 0.86em;
}
.gf-label-th .tr-txt {
    font-weight: 700;
    color: var(--navy);
}
.gf-approval-block {
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}
.gf-approval-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem 1.25rem;
}
.gf-approval-left {
    flex: 1 1 310px;
}
.gf-approval-left .gf-sec-head {
    margin-bottom: 0.15rem;
}
.gf-subline {
    padding-left: 1.9rem;
    font-size: 0.86em;
    font-style: italic;
}
.gf-approval-right {
    flex: 1 1 360px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.gf-check-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem 0.9rem;
    font-size: 0.86em;
}
.gf-check-line-full {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem 1.15rem;
    margin-top: 0.45rem;
    padding-top: 0.3rem;
    font-size: 0.86em;
}
.gf-check-lbl {
    font-weight: 700;
}
.gf-check-lbl .tr-txt {
    color: var(--navy);
}
.gf-radio-grp {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}
.gf-radio-opt {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    font-weight: 600;
}
.gf-radio-opt input[type="radio"] {
    border-color: #475569;
}
.gf-date-wrap {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.35rem;
    min-width: 175px;
}
.gf-date-lbl {
    white-space: nowrap;
    font-weight: 600;
    font-size: 0.9em;
}
.gf-date-lbl .tr-txt {
    color: var(--navy);
}
.gf-date-input {
    width: 110px !important;
    min-width: 90px !important;
}
.gf-status-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1.5rem;
}
.gf-status-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 240px;
}
.gf-status-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border: 1.5px solid #334155;
    padding: 0.25rem 0.55rem;
    background: #fff;
    cursor: pointer;
    font-size: 0.87em;
    font-weight: 600;
}
.gf-status-opt .tr-txt {
    color: var(--navy);
}
.gf-followup-line {
    display: flex;
    align-items: flex-end;
    gap: 0.65rem;
    margin: 0.55rem 0 0 1.85rem;
    font-size: 0.88em;
    font-weight: 600;
}
.gf-followup-line .tr-txt {
    color: var(--navy);
}
.gf-feas-intro {
    margin: 0.25rem 0 0.7rem 0;
    font-size: 0.89em;
    line-height: 1.32;
}
.gf-feas-intro p {
    margin-bottom: 0.4rem;
}
.gf-feas-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 0.35rem;
    border: 1.5px solid #334155;
    font-size: 0.86em;
}
.gf-feas-table th,
.gf-feas-table td {
    border: 1px solid #334155 !important;
    padding: 0.26rem 0.5rem;
    vertical-align: middle;
    line-height: 1.25;
}
.gf-feas-table th {
    background: #fff !important;
    text-align: center;
    font-weight: 700;
    font-size: 0.92em;
    border-bottom: 1.5px solid #334155 !important;
}
.gf-feas-table th.gf-feas-qhdr {
    text-align: center;
}
.gf-feas-yn {
    width: 56px;
    text-align: center;
}
.gf-feas-shaded {
    background: #CBD5E1 !important;
}
.gf-feas-sub .tr-txt,
.gf-feas-sub .en-txt {
    padding-left: 2.4rem;
}
.gf-conclusion-list {
    margin: 0.5rem 0 0 1.25rem;
    border: none;
}
.gf-conclusion-row {
    display: flex;
    align-items: stretch;
    gap: 0.85rem;
    padding: 0;
    border-bottom: none;
    cursor: pointer;
}
.gf-conc-box {
    width: 48px;
    flex-shrink: 0;
    min-height: 30px;
    border: 1.5px solid #334155;
    border-bottom: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}
.gf-conclusion-row:last-child .gf-conc-box {
    border-bottom: 1.5px solid #334155;
}
.gf-conc-status {
    min-width: 145px;
    font-weight: 700;
    font-size: 0.88em;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gf-conc-status .tr-txt {
    color: var(--navy);
}
.gf-conc-desc {
    flex: 1;
    font-size: 0.88em;
    padding: 4px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.gf-footer-note {
    margin-top: 1.1rem;
    font-size: 0.86em;
    font-weight: 700;
}
.gf-footer-note .tr-txt {
    color: var(--tr-orange);
}
@media (max-width: 768px) {
    .gf-meta-grid,
    .gf-sig-grid {
        grid-template-columns: 1fr;
    }
    .gf-notes {
        margin-left: 1rem;
    }
    .gf-label-td {
        padding-left: 0.4rem;
    }
}

@media print {
    #topNavbar,
    #sidebarNav,
    #pageFooterNav {
        display: none !important;
    }
    .page-card {
        border: none;
        box-shadow: none;
        page-break-after: always;
    }
    .page-card::after {
        color: rgba(15, 41, 74, 0.08);
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
    .gate-diamond,
    .gf-box-th,
    .mc-grp-th,
    .mc-date-th,
    .mc-date-hi,
    .mc-swatch-green,
    .mc-swatch-yellow,
    .mc-swatch-red,
    .cp-grid-table th,
    .oee-hdr-th,
    .oee-cat-avail,
    .oee-cat-perf,
    .oee-cat-qual,
    .oee-unsched,
    .oee-loss-cell,
    .oee-loss-gray,
    .oee-check-box,
    .pf-hdr-cell,
    .pf-pill,
    .pf-box-shaded,
    .rm-table thead th,
    .gf-feas-shaded {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}

/* Checklist Table Footer (Revision Date & Prepared By separated inside table) */
.apqp-table tfoot.chk-tfoot {
    border-top: 2px solid #2B579A;
    background-color: #F8FAFC;
}
.apqp-table tfoot tr.chk-footer-row td {
    padding: 8px 12px;
    background-color: #F8FAFC !important;
}
.chk-footer-note {
    font-size: 0.9em;
    vertical-align: middle;
}
.chk-footer-note .tr-txt {
    color: var(--tr-orange) !important;
    font-weight: 600;
}
.chk-footer-note .en-txt {
    color: var(--navy) !important;
    font-style: italic;
}
.chk-footer-meta {
    background-color: #F1F5F9 !important;
    border-left: 2px solid #CBD5E1 !important;
    vertical-align: middle;
}
.chk-meta-field {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chk-meta-label {
    white-space: nowrap;
    font-size: 0.85em;
    font-weight: 600;
    min-width: 140px;
}
.chk-meta-label .tr-txt {
    color: var(--navy) !important;
    font-weight: bold;
}
.chk-meta-label .en-txt {
    color: #475569 !important;
    font-style: italic;
}
.chk-meta-input {
    min-width: 130px;
    background-color: #FFFFFF !important;
    border: 1px solid #94A3B8;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 0.85em;
}
.chk-meta-input:focus {
    border-color: var(--navy);
    outline: none;
    box-shadow: 0 0 0 2px rgba(43, 87, 154, 0.2);
}

/* Checklist Table Header (Customer or Internal Part No & Revision Level inside table) */
.apqp-table thead tr.chk-header-meta-row th {
    background-color: #F8FAFC !important;
    border-bottom: 2px solid #2B579A;
    padding: 8px 12px;
    vertical-align: middle;
}
.apqp-table thead tr.chk-header-meta-row .chk-meta-label {
    min-width: auto;
}

/* APQP Program Metrics Example Chart (PDF 100) */
.mc-wrap {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.mc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.74em;
    background: #fff;
    border: 1.5px solid #334155;
}
.mc-table th,
.mc-table td {
    border: 1px solid #64748B;
    padding: 3px 5px;
    vertical-align: middle;
}
.mc-grp-th {
    background: #CBD5E1;
    color: #0F294A;
    font-weight: 700;
    text-align: center;
    padding: 5px 4px;
}
.mc-grp-th .en-txt {
    font-size: 0.88em;
    color: #334155;
    font-weight: 600;
}
.mc-meta-th {
    background: #F1F5F9;
    color: #0F294A;
    font-weight: 700;
    text-align: center;
}
.mc-meta-th .en-txt {
    font-size: 0.88em;
    color: #475569;
    font-weight: 500;
}
.mc-shade {
    background: #E2E8F0;
}
.mc-diag-th {
    position: relative;
    padding: 6px 8px;
    min-width: 195px;
    background: #fff;
    font-weight: 700;
}
.mc-diag-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.mc-diag-top {
    position: relative;
    z-index: 1;
    text-align: right;
    margin-bottom: 18px;
    line-height: 1.2;
}
.mc-diag-bot {
    position: relative;
    z-index: 1;
    text-align: left;
    line-height: 1.2;
}
.mc-diag-top .tr-txt,
.mc-diag-bot .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.mc-diag-top .en-txt,
.mc-diag-bot .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.mc-vth {
    padding: 6px 2px;
    text-align: center;
    vertical-align: bottom;
    width: 32px;
    min-width: 28px;
    background: #F8FAFC;
}
.mc-vtxt {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: left;
    line-height: 1.15;
    white-space: nowrap;
    font-weight: 700;
}
.mc-vth .tr-txt {
    color: #0F294A;
    font-size: 0.96em;
}
.mc-vth .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.mc-date-th {
    background: #E2E8F0;
    vertical-align: middle;
}
.mc-date-th.mc-date-hi {
    background: #94A3B8;
    color: #0F172A;
}
.mc-double-top td {
    border-top: 3px double #334155;
}
.mc-item-td {
    text-align: left;
    line-height: 1.22;
    padding: 4px 6px;
}
.mc-item-td .tr-txt {
    color: #0F294A;
    font-weight: 600;
}
.mc-item-td.mc-item-bold .tr-txt {
    font-weight: 700;
}
.mc-item-td .en-txt {
    color: #475569;
    font-size: 0.90em;
}
.mc-mark-td {
    text-align: center;
    font-weight: 700;
    color: #0F294A;
    padding: 2px;
}
.mc-stat-td {
    text-align: center;
    font-weight: 700;
    min-width: 96px;
}
.mc-stat-td .tr-txt {
    color: #0F294A;
}
.mc-stat-td .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.mc-val-td {
    text-align: left;
    min-width: 105px;
    line-height: 1.2;
}
.mc-val-td.mc-val-center {
    text-align: center;
    font-weight: 700;
}
.mc-val-td .tr-txt {
    color: #0F294A;
    font-weight: 600;
}
.mc-val-td .en-txt {
    color: #475569;
    font-size: 0.88em;
}
.mc-swatch-green {
    background: #16A34A !important;
}
.mc-swatch-yellow {
    background: #EAB308 !important;
}
.mc-swatch-red {
    background: #DC2626 !important;
}
.mc-spacer-row td {
    height: 14px;
    background: #fff;
    border-top: 1px solid #64748B;
    border-bottom: 1.5px solid #334155;
}
.mc-owner-td {
    text-align: left;
    font-weight: 600;
    color: #0F294A;
    padding: 3px 6px;
    white-space: nowrap;
}

/* Control Plan Special Characteristics Worksheet (PDF 102) */
.cp-wrap {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.cp-stage-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding: 4px 6px 8px;
    font-size: 0.80em;
}
.cp-stage-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    margin: 0;
}
.cp-stage-item input.chk-checkbox {
    width: 15px;
    height: 15px;
    accent-color: #0F294A;
    cursor: pointer;
    flex-shrink: 0;
}
.cp-stage-lbl .tr-txt {
    color: #0F294A;
    font-weight: 700;
    display: inline;
}
.cp-stage-lbl .en-txt {
    color: #475569;
    font-style: italic;
    font-size: 0.90em;
    display: block;
    line-height: 1.15;
}
.cp-sheet-box {
    border: 1.5px solid #334155;
    background: #fff;
    min-width: 780px;
}
.cp-hdr-table,
.cp-grid-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.76em;
}
.cp-hdr-table td {
    border: 1px solid #475569;
    padding: 4px 6px;
    vertical-align: top;
}
.cp-hdr-table tr:first-child td {
    border-top: none;
}
.cp-hdr-table tr td:first-child {
    border-left: none;
}
.cp-hdr-table tr td:last-child {
    border-right: none;
}
.cp-hdr-table tr:last-child td {
    border-bottom: 1.5px solid #334155;
}
.cp-fld-lbl {
    line-height: 1.18;
    margin-bottom: 3px;
}
.cp-fld-lbl .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.cp-fld-lbl .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.cp-fld-input {
    width: 100%;
    border: none;
    border-bottom: 1px dotted #CBD5E1;
    background: transparent;
    padding: 2px 2px;
    font-size: 0.95em;
    color: #0F172A;
    outline: none;
}
.cp-fld-input:focus {
    border-bottom-color: #2B579A;
    background: #F8FAFC;
}
.cp-grid-table th {
    border: 1px solid #475569;
    border-top: none;
    background: #F1F5F9;
    text-align: center;
    padding: 5px 4px;
    vertical-align: middle;
    line-height: 1.18;
}
.cp-grid-table th:first-child,
.cp-grid-table td:first-child {
    border-left: none;
}
.cp-grid-table thead th:last-child,
.cp-illust-td {
    border-right: none !important;
}
.cp-grid-table th .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.cp-grid-table th .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.cp-grid-table td {
    border: 1px solid #475569;
    padding: 2px 4px;
    height: 28px;
    vertical-align: middle;
}
.cp-grid-table tbody tr:last-child td,
.cp-illust-td {
    border-bottom: none;
}
.cp-cell-input {
    width: 100%;
    height: 24px;
    border: none;
    background: transparent;
    padding: 1px 3px;
    font-size: 0.95em;
    color: #0F172A;
    outline: none;
}
.cp-cell-input:focus {
    background: #F8FAFC;
}
.cp-cell-center {
    text-align: center;
}
.cp-illust-td {
    vertical-align: top !important;
    padding: 6px !important;
    background: #FFF;
}
.cp-illust-ta {
    width: 100%;
    height: 100%;
    min-height: 242px;
    border: none;
    resize: vertical;
    background: transparent;
    font-size: 0.92em;
    color: #0F172A;
    outline: none;
    line-height: 1.35;
}

/* OEE Calculation Example Waterfall & Losses (PDF 107) */
.oee-wrap {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.oee-card {
    border: 1.5px solid #94A3B8;
    background: #fff;
    padding: 16px 18px 14px;
    min-width: 780px;
    border-radius: 4px;
}
.oee-top-grid {
    display: grid;
    grid-template-columns: 155px 1fr;
    gap: 14px;
    align-items: start;
}
.oee-left-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 26px;
    gap: 4px;
    font-size: 0.78em;
}
.oee-ratio {
    font-weight: 700;
    color: #334155;
    font-size: 0.96em;
}
.oee-fbox {
    width: 100%;
    border: 1px solid #94A3B8;
    background: #F8FAFC;
    padding: 6px;
    border-radius: 3px;
    line-height: 1.2;
}
.oee-fbox .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.oee-fbox .en-txt {
    color: #475569;
    font-size: 0.88em;
}
.oee-fbox-formula {
    font-weight: 700;
    color: #0F294A;
    margin-top: 2px;
}
.oee-mul {
    font-weight: 800;
    color: #0F294A;
    font-size: 1.05em;
    line-height: 1;
}
.oee-arrow-down {
    font-size: 1.8em;
    line-height: 1;
    color: #0F294A;
    margin: 2px 0;
}
.oee-res-title {
    font-size: 1.25em;
    font-weight: 800;
    color: #0F294A;
    text-decoration: underline;
}
.oee-res-eq {
    font-size: 0.92em;
    color: #334155;
    font-weight: 600;
}
.oee-res-val {
    font-size: 1.08em;
    font-weight: 800;
    color: #0F294A;
    text-decoration: underline;
}
.oee-span-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 76%;
    margin-bottom: 5px;
    font-size: 0.80em;
    font-weight: 700;
    color: #0F294A;
    text-align: center;
    line-height: 1.15;
}
.oee-span-bar .en-txt {
    font-size: 0.88em;
    color: #475569;
    font-weight: 500;
}
.oee-span-line {
    flex: 1;
    height: 2px;
    background: #475569;
}
.oee-wf-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.76em;
}
.oee-hdr-th {
    border: 1.5px solid #334155;
    background: #F1F5F9;
    text-align: center;
    padding: 6px;
    font-weight: 700;
    line-height: 1.2;
}
.oee-hdr-th .tr-txt {
    color: #0F294A;
}
.oee-hdr-th .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.oee-cat-td {
    border: 1.5px solid #334155;
    text-align: center;
    vertical-align: middle;
    padding: 4px 2px;
}
.oee-cat-avail { background: #EFF6FF; }
.oee-cat-perf { background: #FEF9C3; }
.oee-cat-qual { background: #ECFDF5; }
.oee-vtxt {
    display: inline-block;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    white-space: nowrap;
    font-weight: 700;
    line-height: 1.15;
}
.oee-cat-td .tr-txt {
    color: #0F294A;
}
.oee-cat-td .en-txt {
    color: #475569;
    font-size: 0.86em;
    font-weight: 500;
}
.oee-stage-td {
    border: 1px solid #334155;
    background: #fff;
    text-align: center;
    padding: 6px;
    vertical-align: middle;
    line-height: 1.22;
}
.oee-stage-td .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.oee-stage-td .en-txt {
    color: #475569;
    font-size: 0.88em;
}
.oee-stage-sub {
    margin-top: 3px;
    font-size: 0.90em;
    color: #334155;
}
.oee-unsched {
    border: 1px solid #334155;
    border-right: 1.5px solid #334155;
    background: #F8FAFC;
    text-align: center;
    padding: 5px 4px;
    vertical-align: middle;
    font-size: 0.90em;
    line-height: 1.18;
}
.oee-unsched .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.oee-unsched .en-txt {
    color: #475569;
    font-size: 0.86em;
}
.oee-loss-cell {
    border: 1px solid #334155;
    background: #E2E8F0;
    text-align: center;
    vertical-align: middle;
    padding: 4px 2px;
}
.oee-loss-cell .oee-vtxt {
    font-size: 0.88em;
    color: #1E293B;
}
.oee-loss-cell .en-txt {
    color: #475569;
    font-size: 0.86em;
    font-weight: 500;
}
.oee-loss-gray {
    background: #E2E8F0;
    padding: 4px;
    vertical-align: middle;
}
.oee-losses-lbl {
    text-align: center;
    font-weight: 800;
    color: #0F294A;
    font-size: 1.05em;
    line-height: 1.15;
}
.oee-losses-lbl .en-txt {
    font-size: 0.86em;
    color: #334155;
    font-weight: 600;
}
.oee-note-td {
    border: none !important;
    background: transparent !important;
    text-align: left;
    vertical-align: middle;
    padding: 3px 4px 3px 8px;
    font-size: 0.88em;
    color: #334155;
    line-height: 1.22;
}
.oee-note-td .tr-txt {
    font-weight: 600;
    color: #0F294A;
}
.oee-note-td .en-txt {
    color: #475569;
    font-size: 0.90em;
}
.oee-check-box {
    margin-top: 10px;
    border: 1px solid #64748B;
    background: #F8FAFC;
    padding: 7px 12px;
    font-size: 0.78em;
    line-height: 1.35;
}
.oee-check-box .tr-txt {
    color: #0F294A;
    font-weight: 600;
}
.oee-check-box .en-txt {
    color: #475569;
}
.oee-bottom-sec {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px dashed #CBD5E1;
}
.oee-eq-title {
    text-align: center;
    font-size: 1.12em;
    font-weight: 800;
    color: #0F294A;
    text-decoration: underline;
    margin-bottom: 12px;
    line-height: 1.25;
}
.oee-eq-title .en-txt {
    font-size: 0.85em;
    color: #475569;
    font-weight: 600;
}
.oee-branch-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
    font-size: 0.84em;
}
.oee-branch-row {
    display: grid;
    grid-template-columns: 1fr 48px 250px;
    align-items: center;
    gap: 8px;
}
.oee-branch-left {
    text-align: right;
    line-height: 1.25;
}
.oee-branch-left .tr-txt {
    color: #0F294A;
    font-weight: 600;
}
.oee-branch-left .en-txt {
    color: #475569;
    font-size: 0.88em;
}
.oee-branch-svg {
    width: 48px;
    height: 44px;
    display: block;
}
.oee-branch-items {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    line-height: 1.2;
}
.oee-branch-items .tr-txt {
    color: #0F294A;
    font-weight: 600;
}
.oee-branch-items .en-txt {
    color: #475569;
    font-size: 0.88em;
}

/* Process Flow Chart Example (PDF 108) */
.pf-wrap {
    margin-top: 1.5rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
}
.pf-canvas {
    position: relative;
    width: 100%;
    min-width: 880px;
    height: 656px;
    border: 2px solid #1E293B;
    background: #fff;
    box-sizing: border-box;
}
.pf-col-bg {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    pointer-events: none;
}
.pf-col-lane {
    border-right: 1.5px solid #334155;
}
.pf-col-lane:last-child {
    border-right: none;
}
.pf-hdr-row {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 52px;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border-bottom: 2px solid #1E293B;
    z-index: 2;
}
.pf-hdr-cell {
    background: #CBD5E1;
    border-right: 1.5px solid #334155;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 3px 4px;
    font-size: 0.78em;
    font-weight: 700;
    line-height: 1.15;
}
.pf-hdr-cell:last-child {
    border-right: none;
}
.pf-hdr-cell .tr-txt {
    color: #0F294A;
}
.pf-hdr-cell .en-txt {
    color: #334155;
    font-size: 0.88em;
    font-weight: 500;
}
.pf-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}
.pf-node {
    position: absolute;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4px 6px;
    box-sizing: border-box;
    font-size: 0.71em;
    line-height: 1.18;
}
.pf-box {
    background: #fff;
    border: 2px solid #1E293B;
    border-radius: 2px;
}
.pf-box-shaded {
    background: #94A3B8;
    border: 2px solid #1E293B;
    border-radius: 2px;
}
.pf-pill {
    background: #CBD5E1;
    border: 2px solid #1E293B;
    border-radius: 999px;
}
.pf-node .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.pf-node .en-txt {
    color: #475569;
    font-size: 0.88em;
    font-weight: 500;
}
.pf-box-shaded .tr-txt {
    color: #0F172A;
}
.pf-box-shaded .en-txt {
    color: #1E293B;
}
.pf-bullets {
    position: absolute;
    z-index: 3;
    text-align: left;
    font-size: 0.68em;
    line-height: 1.28;
    padding: 2px 4px;
    color: #0F294A;
}
.pf-bullets .pf-b-item {
    margin-bottom: 2px;
}
.pf-bullets .tr-txt {
    color: #0F294A;
    font-weight: 600;
    display: inline;
}
.pf-bullets .en-txt {
    color: #475569;
    font-style: italic;
    font-size: 0.90em;
    display: inline;
    margin-left: 3px;
}
.pf-lessons {
    position: absolute;
    z-index: 3;
    background: #fff;
    border: 2px solid #1E293B;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.80em;
    line-height: 1.18;
}
.pf-lessons .tr-txt {
    color: #0F294A;
    font-weight: 700;
}
.pf-lessons .en-txt {
    color: #475569;
    font-size: 0.88em;
}

/* Risk Assessment Mitigation Plan Table (PDF 108) */
.rm-wrap {
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}
.rm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.76em;
    background: #fff;
    border: 1.5px solid #334155;
}
.rm-table th,
.rm-table td {
    border: 1px solid #475569;
    padding: 6px;
    text-align: center;
    vertical-align: middle;
    line-height: 1.22;
}
.rm-table thead th {
    background: #E2E8F0;
    color: #0F294A;
    font-weight: 700;
    border-bottom: 1.5px solid #334155;
}
.rm-table thead th.rm-guide-th {
    background: #fff;
}
.rm-table .tr-txt {
    color: #0F294A;
    font-weight: 600;
}
.rm-table thead th .tr-txt {
    font-weight: 700;
}
.rm-table .en-txt {
    color: #475569;
    font-size: 0.88em;
}
.rm-guide-td {
    background: #fff;
    vertical-align: middle;
    padding: 6px 8px;
}
.rm-guide-item {
    margin: 5px 0;
    line-height: 1.2;
}

/* Mathematical Fraction Formula (PDF 125) */
.apqp-formula-box {
    margin: 0.75rem auto 1.15rem;
    padding: 0.65rem 1rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.55rem;
}
.apqp-frac-eq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    font-family: Georgia, "Times New Roman", serif;
    font-style: italic;
    font-size: 1.02em;
    line-height: 1.25;
}
.apqp-formula-tr {
    color: #0F294A;
    font-weight: 600;
}
.apqp-formula-en {
    color: #475569;
    font-size: 0.94em;
}
.apqp-frac {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.apqp-frac-num {
    padding: 0 0.55rem 0.2rem;
    border-bottom: 1.5px solid currentColor;
}
.apqp-frac-den {
    padding: 0.2rem 0.55rem 0;
}
.apqp-frac-mul {
    font-style: normal;
    font-weight: 600;
    white-space: nowrap;
}

/* === TOTALRISK Protected Reader & Dynamic Watermark Layer === */
.apqp-content {
    user-select: none;
    -webkit-user-select: none;
}

.apqp-content input,
.apqp-content textarea,
.apqp-content select {
    user-select: text;
    -webkit-user-select: text;
}

@media print {
    body * {
        display: none !important;
    }
    body::after {
        content: "Bu eğitim materyali koruma altındadır ve yazdırılamaz. — www.totalrisk.net / www.abckalite.com";
        display: block !important;
        font-size: 16pt;
        text-align: center;
        padding: 60px;
        color: #0F294A;
    }
}

.page-card {
    position: relative;
    overflow: hidden;
}

.apqp-dyn-wm-layer {
    position: absolute;
    inset: -25%;
    pointer-events: none;
    z-index: 2;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    align-content: space-around;
    justify-content: space-around;
    gap: 56px 40px;
    transform: rotate(-22deg);
    opacity: 0.075;
    user-select: none;
}

.apqp-dyn-wm-item {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0F294A;
    white-space: nowrap;
    letter-spacing: 0.04em;
}

canvas.fig-canvas {
    max-width: 100%;
    height: auto;
    cursor: zoom-in;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(15, 41, 74, 0.12);
    background: #fff;
}

canvas.cover-logo-canvas {
    max-height: 56px;
    width: auto;
    border-radius: 4px;
    background: #fff;
}

#figModalCanvas {
    max-width: 100%;
    height: auto;
    transition: transform 0.15s ease;
    transform-origin: top center;
}

#authScreen {
    min-height: 100vh;
    background: #020617;
    background-image:
        radial-gradient(circle at 12% 10%, rgba(37, 99, 235, 0.14), transparent 42%),
        radial-gradient(circle at 88% 88%, rgba(6, 182, 212, 0.12), transparent 42%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(51, 65, 85, 0.75);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    color: #e2e8f0;
}

.auth-logo {
    height: 62px;
    width: auto;
    border-radius: 10px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
    background: #fff;
    padding: 2px;
}

.auth-title {
    background: linear-gradient(90deg, #60a5fa, #22d3ee);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    pointer-events: none;
}

.auth-input {
    background: rgba(2, 6, 23, 0.72) !important;
    border: 1px solid #1e293b !important;
    border-radius: 12px !important;
    color: #f1f5f9 !important;
    padding: 0.75rem 1rem 0.75rem 2.6rem !important;
}

.auth-input::placeholder {
    color: #475569 !important;
}

.auth-input:focus {
    border-color: #06b6d4 !important;
    box-shadow: 0 0 0 2px rgba(6, 182, 212, 0.25) !important;
}

.btn-auth-submit {
    background: linear-gradient(90deg, #4f46e5, #06b6d4);
    border: none;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    padding: 0.8rem 1rem;
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.22);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.btn-auth-submit:hover {
    color: #fff;
    opacity: 0.94;
    transform: translateY(-1px);
}

.btn-auth-portal {
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(51, 65, 85, 0.85);
    border-radius: 12px;
    color: #cbd5e1;
    padding: 0.72rem 1rem;
    font-size: 0.9rem;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.btn-auth-portal:hover {
    border-color: #38bdf8;
    color: #fff;
}
