* {
    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: minmax(180px, 1fr) 100px 120px 110px;
    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-table thead th:nth-child(1),
.package1-saved-table tbody td:nth-child(1) {
    width: 100%;
}

.package1-saved-table thead th:nth-child(2),
.package1-saved-table tbody td:nth-child(2),
.package1-saved-table thead th:nth-child(3),
.package1-saved-table tbody td:nth-child(3),
.package1-saved-table thead th:nth-child(4),
.package1-saved-table tbody td:nth-child(4) {
    width: 1%;
    white-space: nowrap;
}

.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;
}

/* 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;
}

/* Remove button */
.package1-saved-actions-cell {
    text-align: right;
}

.package1-saved-remove-btn {
    min-height: 36px;
    padding: 8px 13px;
    border: 1px solid #f5c2c7;
    border-radius: 12px;
    background: #fff1f2;
    color: #be123c;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.package1-saved-remove-btn:hover {
    background: #ffe4e6;
    border-color: #fda4af;
}

.package1-saved-remove-btn:active {
    transform: scale(0.97);
}

/* 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;
}