* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: #f5f3ff;
    color: #1f2937;
    font-family: "Segoe UI", Arial, sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

#main-content {
    min-height: 100vh;
    padding: 36px 20px 110px;
}

.package1-saved-section {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.package1-saved-page-header {
    margin-top: 28px;
    margin-bottom: 20px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e9ddff;
    border-radius: 24px;
    box-shadow: 0 12px 30px rgba(91, 33, 182, 0.08);
}

.package1-saved-page-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #4c1d95;
    margin-bottom: 0;
}

.package1-saved-content {
    background: #ffffff;
    border: 1px solid #e9ddff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(91, 33, 182, 0.08);
}

.package1-saved-placeholder {
    border: 1px dashed #c4b5fd;
    border-radius: 18px;
    background: #faf7ff;
    color: #6d28d9;
    font-weight: 500;
    overflow: hidden;
}

.package1-saved-placeholder strong {
    font-weight: 600;
}

.package1-saved-placeholder.is-empty,
.package1-saved-placeholder.is-loading {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.package1-saved-placeholder.is-has-table {
    min-height: 0;
}

.package1-saved-placeholder > p {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
}

/* Table wrapper */
.package1-saved-table-wrap {
    width: 100%;
}

/* Loading */
.package1-saved-loading-wrap {
    width: 100%;
    padding: 22px;
}

.package1-saved-loading-text {
    text-align: center;
    color: #5b21b6;
    font-weight: 500;
    margin-bottom: 18px;
}

.package1-saved-loading-table {
    display: grid;
    gap: 10px;
}

.package1-saved-loading-row {
    display: grid;
    grid-template-columns: 70px minmax(180px, 1fr) 100px 120px;
    gap: 10px;
}

.package1-saved-skeleton {
    display: block;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(90deg, #f1e9ff 0%, #ede9fe 50%, #f1e9ff 100%);
    background-size: 200% 100%;
    animation: package1SavedPulse 1.2s infinite linear;
}

.package1-saved-loading-row.is-header .package1-saved-skeleton {
    height: 34px;
}

@keyframes package1SavedPulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Table */
.package1-saved-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.package1-saved-table {
    width: 100%;
    min-width: 0;
    table-layout: auto;
    border-collapse: separate;
    border-spacing: 0;
    color: #111827;
    font-size: 0.92rem;
}

.package1-saved-table thead th {
    background: #f3e8ff;
    color: #3b0764;
    font-weight: 600;
    text-align: left;
    padding: 14px 16px;
    border-bottom: 1px solid #e9ddff;
    white-space: nowrap;
}

.package1-saved-table thead th:first-child {
    border-top-left-radius: 16px;
}

.package1-saved-table thead th:last-child {
    border-top-right-radius: 16px;
}

.package1-saved-table tbody td {
    background: #ffffff;
    padding: 14px 16px;
    border-bottom: 1px solid #f0e7ff;
    white-space: nowrap;
    vertical-align: middle;
}

.package1-saved-table tbody tr:last-child td {
    border-bottom: 0;
}

.package1-saved-table tbody tr:hover td {
    background: #fbf8ff;
}

/* Column sizing */
.package1-saved-comments-head,
.package1-saved-toggle-cell {
    width: 1%;
    white-space: nowrap;
    text-align: center;
}

.package1-saved-table thead th:nth-child(2),
.package1-saved-table tbody td:nth-child(2) {
    width: 100%;
}

.package1-saved-number {
    font-weight: 600;
    color: #111827;
}

/* Status colors */
.package1-status-completed {
    background: #dcfce7 !important;
}

.package1-status-progress {
    background: #fef9c3 !important;
}

.package1-status-action {
    background: #fee2e2 !important;
}

.package1-status-empty {
    background: #f3f4f6 !important;
}

/* Comments toggle */
.package1-saved-comments-toggle {
    width: 54px;
    min-height: 36px;
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.package1-saved-comments-toggle:hover {
    background: #ddd6fe;
}

.package1-saved-arrow-icon {
    width: 16px;
    height: 16px;
    display: block;
    transition: transform 0.2s ease;
}

.package1-saved-arrow-icon path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.package1-saved-comments-toggle.is-open .package1-saved-arrow-icon {
    transform: rotate(180deg);
}

.package1-saved-comment-count {
    font-size: 0.78rem;
    font-weight: 500;
}

/* Comments expanded row */
.package1-saved-comments-row td {
    background: #faf7ff !important;
    padding: 0 !important;
    white-space: normal !important;
}

.package1-saved-comments-box {
    padding: 18px;
    border-top: 1px solid #ede9fe;
    text-align: left;
}

.package1-saved-comments-topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.package1-saved-comments-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4c1d95;
}

.package1-saved-comments-note {
    margin-top: 5px;
    max-width: 560px;
    color: #6b7280;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.5;
}

.package1-saved-remove-btn {
    min-height: 38px;
    padding: 9px 14px;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    background: #fff1f2;
    color: #be123c;
    font-weight: 600;
    cursor: pointer;
}

.package1-saved-remove-btn:hover {
    background: #ffe4e6;
}

/* Add/edit comment forms */
.package1-saved-add-comment-form,
.package1-saved-edit-comment-form {
    background: #ffffff;
    border: 1px solid #e9ddff;
    border-radius: 16px;
    padding: 14px;
}

.package1-saved-add-comment-form {
    margin-bottom: 14px;
}

.package1-saved-comment-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #4c1d95;
    margin-bottom: 8px;
}

.package1-saved-comment-textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    padding: 12px 14px;
    border: 1px solid #d8c8ff;
    border-radius: 14px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    line-height: 1.5;
}

.package1-saved-comment-textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.12);
}

.package1-saved-comment-form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.package1-saved-comment-save-btn,
.package1-saved-comment-cancel-btn,
.package1-comment-edit-btn {
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
}

.package1-saved-comment-save-btn {
    border: 1px solid #7c3aed;
    background: #7c3aed;
    color: #ffffff;
}

.package1-saved-comment-save-btn:hover {
    background: #6d28d9;
}

.package1-saved-comment-cancel-btn {
    border: 1px solid #d8c8ff;
    background: #ffffff;
    color: #6d28d9;
}

.package1-saved-comment-cancel-btn:hover {
    background: #faf7ff;
}

.package1-comment-edit-btn {
    border: 1px solid #d8c8ff;
    background: #ede9fe;
    color: #6d28d9;
}

.package1-comment-edit-btn:hover {
    background: #ddd6fe;
}

/* Existing comments list */
.package1-saved-comments-empty {
    font-size: 0.88rem;
    color: #6b7280;
    font-weight: 400;
    line-height: 1.5;
}

.package1-saved-comments-list {
    display: grid;
    gap: 10px;
}

.package1-saved-comment-item {
    background: #ffffff;
    border: 1px solid #e9ddff;
    border-radius: 14px;
    padding: 12px;
}

.package1-saved-comment-meta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.76rem;
    color: #7c3aed;
    font-weight: 500;
    margin-bottom: 6px;
}

.package1-saved-comment-text {
    color: #1f2937;
    font-size: 0.88rem;
    line-height: 1.55;
    font-weight: 400;
}

.package1-saved-comment-actions {
    margin-top: 10px;
}

/* Map link */
.package1-map-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #ede9fe;
    color: #6d28d9;
    font-weight: 600;
    font-size: 0.85rem;
    white-space: nowrap;
}

.package1-map-link:hover {
    background: #ddd6fe;
}

.package1-map-link-empty {
    color: #9ca3af;
}

/* Zone filter */
.package1-saved-zone-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #eadfff;
    background: #faf7ff;
}

.package1-saved-zone-filter::-webkit-scrollbar {
    height: 7px;
}

.package1-saved-zone-filter::-webkit-scrollbar-track {
    background: #f3e8ff;
    border-radius: 999px;
}

.package1-saved-zone-filter::-webkit-scrollbar-thumb {
    background: #c4b5fd;
    border-radius: 999px;
}

.package1-saved-zone-pill {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 8px 14px;
    border: 1px solid #ddd6fe;
    border-radius: 999px;
    background: #ffffff;
    color: #5b21b6;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.package1-saved-zone-pill:hover {
    background: #f3e8ff;
    border-color: #c4b5fd;
}

.package1-saved-zone-pill.is-active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.18);
}

.package1-saved-filter-empty {
    padding: 28px 16px !important;
    text-align: center;
    color: #6b7280;
    font-weight: 400;
    background: #ffffff !important;
    white-space: normal !important;
}