:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1b1f2a;
    --muted: #6b7280;
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --border: #e5e7eb;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.container {
    width: min(980px, 100% - 32px);
    margin: 0 auto;
}

.site-header {
    background: var(--card);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    justify-content: space-between;
    flex-wrap: wrap;
}

.logo img {
    height: 40px;
    display: block;
}

/* .header-title {
    font-size: 18px;
    font-weight: 600;
} */

.header-back {
    margin-left: auto;
    font-size: 14px;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.header-create {
    text-decoration: none;
    /* display: inline-flex; */
    /* align-items: center; */
    /* gap: 8px; */
    justify-content: center;
    /* flex-direction: column; */
    width: 200px;
    height: 40px;
    padding: 0 0 0 0;
    border-radius: 3px;
    font-weight: 600;
    text-align: center;
}

.form-wrapper {
    padding: 24px 0 48px;
}

.list-wrapper {
    padding: 24px 0 48px;
}

.list-empty {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 18px;
    color: var(--muted);
    font-size: 14px;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.list-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.list-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.list-icon {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #e5efff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
}

.list-title {
    font-weight: 600;
    font-size: 15px;
}

.list-date {
    font-size: 12px;
    color: var(--muted);
    margin-top: 2px;
}

.list-actions {
    display: flex;
    gap: 6px;
}

.icon-btn {
    border: none;
    background: transparent;
    padding: 6px;
    color: #94a3b8;
    cursor: pointer;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.icon-btn:hover {
    color: var(--primary);
    background: #eff6ff;
}

.icon-btn--danger:hover {
    color: #dc2626;
    background: #fee2e2;
}

.cookie-debug {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    background: transparent;
    color: #000;
    font-size: 12px;
    padding: 0;
    border-radius: 0;
    z-index: 50;
    opacity: 1;
}

.card {
    background: var(--card);
    padding: 24px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.card-title {
    margin: 0 0 16px;
    font-size: 18px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

input,
textarea {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    background: #fff;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
}

.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.sub-title {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 14px;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #1f2937;
}

.check-item input {
    width: 16px;
    height: 16px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.btn {
    border: none;
    padding: 8px 10px 10px 10px;
    border-radius: 8px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.2s ease;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

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

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

.btn-light {
    background: #eef2ff;
    color: var(--primary-dark);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.status {
    margin-top: 16px;
    font-size: 14px;
}

.muted {
    font-size: 13px;
    color: var(--muted);
}

@media (max-width: 760px) {
    body {
        background: #eef1f6;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .actions {
        flex-direction: column;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--card);
        padding: 12px 16px 20px;
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.12);
        z-index: 20;
    }
    .btn {
        width: 100%;
    }
    .form-wrapper {
        padding-bottom: 120px;
    }
    .card {
        padding: 18px;
        border-radius: 14px;
    }
    .header-inner {
        padding: 12px 0;
    }
    .logo img {
        height: 32px;
    }
    .header-title {
        font-size: 16px;
    }
    .header-title {
        width: 100%;
        order: 2;
    }
    .header-create {
        order: 3;
        width: 100%;
        justify-content: center;
    }
    .header-back {
        order: 3;
        width: 100%;
    }
    .list-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .check-item {
        padding: 6px 4px;
        border-radius: 8px;
        background: #f8fafc;
    }
}

.pdf-source {
    position: fixed;
    left: -10000px;
    top: 0;
    width: 210mm;
    padding: 12mm;
    background: #fff;
    color: var(--text);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    box-sizing: border-box;
}

.html2pdf__container .pdf-source {
    position: static;
    left: 0;
    top: 0;
    width: 100%;
    padding: 0;
}

.pdf-source * {
    box-sizing: border-box;
}

.pdf-card {
    border: none;
    border-radius: 0;
    padding: 0;
    background: transparent;
}

.pdf-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.pdf-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-logo {
    height: 36px;
    display: block;
}

.pdf-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.pdf-meta {
    text-align: right;
}

.pdf-meta-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
}

.pdf-meta-value {
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.pdf-section {
    margin-top: 14px;
}

.pdf-columns--info {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.pdf-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-section-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--primary);
}

.pdf-label {
    font-size: 10px;
    text-transform: uppercase;
    color: var(--muted);
}

.pdf-value {
    font-size: 13px;
    font-weight: 600;
    margin-top: 4px;
}

.pdf-value--multiline {
    white-space: pre-line;
}

.pdf-text {
    font-size: 12px;
    color: #374151;
    margin-top: 4px;
}

.pdf-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.pdf-subsection {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #f8fafc;
}

.pdf-list {
    margin: 6px 0 0;
    padding-left: 18px;
    font-size: 12px;
    color: #111827;
}

.pdf-empty {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.pdf-addresses {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pdf-address {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    background: #fff;
}
