@charset "utf-8";

/* ===================================================
   Atomy Tour - Dedicated Document Viewer Styles
   - Strict 1:1 reproduction of AtomyTour_en.pdf content
   - Clean, professional document layout with top action bar
   =================================================== */

:root {
    --atomy-blue: #00aceb;
    --atomy-blue-dark: #0087be;
    --atomy-blue-soft: #cbe7f7;
    --doc-text: #1a1a1a;
    --doc-muted: #555555;
    --border-gray: #d4d8dd;
    --table-border: #9ecbe8;
}

* {
    box-sizing: border-box;
}

body.atomy-doc-body {
    margin: 0;
    padding: 0;
    background-color: #f1f4f8;
    color: var(--doc-text);
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------
   1. Sticky Top Action Bar
   --------------------------------------------------- */
.doc-top-bar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    padding: 12px 24px;
}

.doc-top-bar-inner {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.doc-title-badge {
    display: flex;
    align-items: center;
    gap: 10px;
}

.doc-title-badge img {
    height: 24px;
    width: auto;
    display: block;
}

.doc-title-badge span {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    letter-spacing: -0.01em;
}

.doc-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-doc-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #0077b6;
    border: 1.5px solid #00aceb;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-doc-download:hover {
    background: #f0f9ff;
    border-color: #0087be;
    color: #005a8a;
    transform: translateY(-1px);
}

.btn-doc-apply {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: #00aceb;
    background: #00aceb;
    color: #ffffff !important;
    ` border: none;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-doc-apply:hover {
    background-color: #0096ce;
    background: #0096ce;
    transform: translateY(-1px);
    color: #ffffff !important;
}

.btn-icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

/* ---------------------------------------------------
   2. Main Paper Container (Exact 1:1 PDF Layout)
   --------------------------------------------------- */
.doc-page-wrapper {
    max-width: 860px;
    margin: 32px auto 60px;
    padding: 0 16px;
}

.doc-paper {
    background: #ffffff;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 56px 64px 60px;
    position: relative;
    border: 1px solid #e5e7eb;
}

/* Header with Logo */
.doc-header {
    position: relative;
    margin-bottom: 28px;
}

.doc-logo-wrap {
    position: absolute;
    top: 0;
    right: 0;
    width: 90px;
}

.doc-logo-wrap img {
    width: 100%;
    height: auto;
    display: block;
}

.doc-main-title {
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    margin: 16px 0 36px;
    color: #111827;
    letter-spacing: -0.01em;
}

/* Document Meta Details (To, From, Subject) */
.doc-meta-table {
    width: 100%;
    margin-bottom: 24px;
    font-size: 15px;
    background-color: #f1f5f9;
    border-radius: 6px;
    padding: 18px 22px;
}

.doc-meta-row {
    display: flex;
    margin-bottom: 8px;
    line-height: 1.5;
}

.doc-meta-row:last-child {
    margin-bottom: 0;
}

.doc-meta-label {
    width: 90px;
    font-weight: 700;
    color: #1e293b;
    flex-shrink: 0;
}

.doc-meta-val {
    color: #334155;
}

/* Opening Greeting Text */
.doc-intro-text {
    font-size: 14.5px;
    color: #374151;
    margin: 0 0 28px;
    line-height: 1.6;
}

/* Section Subtitles */
.doc-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin: 28px 0 12px;
}

/* Overview Key-Values */
.overview-lines {
    font-size: 14.5px;
    color: #1e293b;
    margin-bottom: 28px;
    background-color: #e6f4fa;
    border-radius: 6px;
    padding: 18px 22px;
}

.overview-line {
    display: flex;
    margin-bottom: 10px;
    line-height: 1.55;
}

.overview-line:last-child {
    margin-bottom: 0;
}

.overview-label {
    width: 130px;
    font-weight: 700;
    color: #0369a1;
    flex-shrink: 0;
}

.overview-val {
    flex: 1;
    color: #0f172a;
}

/* ---------------------------------------------------
   3. Tables (Exact PDF Style with Blue Header)
   --------------------------------------------------- */
.table-container {
    overflow-x: auto;
    margin-bottom: 28px;
}

.doc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: #1f2937;
}

.doc-table th,
.doc-table td {
    border: 1px solid var(--border-gray);
    padding: 10px 14px;
    line-height: 1.45;
}

.doc-table th {
    background-color: var(--atomy-blue);
    color: #ffffff;
    font-weight: 700;
    text-align: left;
}

.doc-table th.th-time {
    width: 130px;
    text-align: center;
}

.doc-table th.th-itinerary {
    text-align: left;
}

.doc-table th.th-remarks {
    width: 150px;
    text-align: center;
}

.doc-table td.td-time {
    text-align: center;
    white-space: nowrap;
}

.doc-table td.td-remarks {
    text-align: center;
}

/* Bold Row in PDF */
.doc-table tr.row-bold td {
    font-weight: 700;
    background-color: #ebf6fd;
    color: #026aa7;
}

/* Two-Day Divider Row in PDF */
.doc-table tr.row-divider td {
    background-color: var(--atomy-blue-soft);
    text-align: center;
    font-weight: 700;
    color: #0369a1;
    padding: 9px 14px;
}

/* Bottom Sign-Off */
.doc-footer-sign {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    color: #111827;
    margin-top: 40px;
    margin-bottom: 10px;
}

/* Bottom Action Bar inside document */
.doc-bottom-actions {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------------------------------------------------
   4. Responsive Breakpoints
   --------------------------------------------------- */
@media (max-width: 720px) {
    .doc-paper {
        padding: 32px 20px 40px;
    }

    .doc-main-title {
        font-size: 22px;
        margin: 40px 0 24px;
    }

    .doc-logo-wrap {
        width: 75px;
    }

    .overview-line {
        flex-direction: column;
        margin-bottom: 12px;
    }

    .overview-label {
        width: 100%;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .doc-actions {
        width: 100%;
        justify-content: stretch;
    }

    .btn-doc-download,
    .btn-doc-apply {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
        font-size: 13.5px;
        padding: 9px 12px;
    }
}

/* ---------------------------------------------------
   5. Print Styles
   --------------------------------------------------- */
@media print {

    .doc-top-bar,
    .doc-bottom-actions {
        display: none !important;
    }

    body.atomy-doc-body {
        background: #ffffff;
    }

    .doc-page-wrapper {
        margin: 0;
        padding: 0;
        max-width: 100%;
    }

    .doc-paper {
        box-shadow: none;
        border: none;
        padding: 0;
    }
}