        /* Shipped boxes redesign - reference mock-up implementation */
        .ship-page-redesign {
            color: #1f2933;
            background: #f8fafc;
            margin: -2px -4px -30px -4px;
            min-height: calc(100vh - 90px);
            font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            text-rendering: geometricPrecision;
            font-synthesis: none;
        }

        .ship-page-redesign * {
            font-family: inherit;
        }

        .ship-page-redesign svg {
            display: block;
            flex: 0 0 auto;
            vector-effect: non-scaling-stroke;
        }

        .ship-svg {
            stroke-width: 1.85;
        }

        .ship-page-shell {
            display: grid;
            grid-template-columns: minmax(0, 1fr) 418px;
            gap: 0;
            align-items: stretch;
            min-height: calc(100vh - 90px);
            background: #f8fafc;
            transition: grid-template-columns 260ms ease;
        }

        .ship-page-shell.ship-detail-closed {
            grid-template-columns: minmax(0, 1fr) 0px;
        }

        .ship-main-panel {
            min-width: 0;
            padding: 0 18px 24px 0;
            transition: padding-right 260ms ease;
        }

        .ship-page-topbar {
            display: flex;
            align-items: center;
            justify-content: flex-start;
            gap: 18px;
            margin: 0 0 22px 0;
            min-height: 38px;
        }

        .ship-page-title {
            font-size: 24px;
            line-height: 1.18;
            color: #20242a;
            letter-spacing: 0.004em;
            margin: 0;
            font-weight: 700;
        }

        .ship-page-subtitle {
            display: none;
        }

        .ship-page-actions {
            display: flex;
            gap: 14px;
            align-items: center;
        }

        .ship-icon-btn,
        .ship-filter-btn,
        .ship-table-action,
        .ship-date-filter,
        .ship-footer-select,
        .ship-page-step-btn {
            border: 1px solid #e5e9ee;
            background: #fff;
            color: #4b5563;
            border-radius: 9px;
            cursor: pointer;
            transition: all 0.15s ease;
        }

        .ship-icon-btn {
            width: 34px;
            height: 34px;
            border: none;
            background: transparent;
            color: #1f2937;
            position: relative;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .ship-notification-dot {
            display: none;
        }

        .ship-icon-btn:hover,
        .ship-filter-btn:hover,
        .ship-table-action:hover,
        .ship-date-filter:hover,
        .ship-page-step-btn:hover {
            border-color: #cfd8e3;
            box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
        }

        .ship-kpi-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 22px;
            margin-bottom: 26px;
        }

        .ship-kpi-card {
            background: #fff;
            border: 1px solid #eef1f4;
            border-radius: 11px;
            min-height: 92px;
            padding: 17px 18px;
            display: flex;
            align-items: center;
            gap: 17px;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.055);
        }

        .ship-kpi-card span {
            display: block;
            color: #2f343b;
            font-size: 12.25px;
            line-height: 1.25;
            font-weight: 560;
            margin-bottom: 7px;
        }

        .ship-kpi-card strong {
            display: block;
            color: #111827;
            font-size: 24px;
            line-height: 1;
            letter-spacing: -0.025em;
            font-weight: 700;
        }

        .ship-kpi-icon {
            width: 58px;
            height: 58px;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            flex: 0 0 auto;
        }

        .ship-kpi-green .ship-kpi-icon {
            background: #e2f3e3;
            color: #3f9b42;
        }

        .ship-kpi-blue .ship-kpi-icon {
            background: #e2eeff;
            color: #2f80ed;
        }

        .ship-kpi-orange .ship-kpi-icon {
            background: #ffe8cf;
            color: #ef8d2f;
        }

        .ship-browser-card {
            background: #fff;
            border: 1px solid #edf0f2;
            border-radius: 12px;
            box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
            overflow: hidden;
        }

        .ship-toolbar {
            display: grid;
            grid-template-columns: minmax(290px, 1fr) 148px 148px minmax(240px, 285px);
            gap: 12px;
            padding: 16px 14px;
            border-bottom: 1px solid #eef1f4;
            align-items: center;
        }

        .ship-search-box {
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid #e3e8ef;
            border-radius: 7px;
            padding: 0 14px;
            background: #fff;
            min-width: 0;
            height: 44px;
            color: #8a94a3;
        }

        .ship-search-box input {
            width: 100%;
            border: none;
            outline: none;
            padding: 12px 0;
            font-size: 12.25px;
            line-height: 1.34;
            font-weight: 420;
            color: #1f2933;
            background: transparent;
        }

        .ship-search-box input::placeholder {
            color: #9aa3af;
        }

        .ship-toolbar select,
        .ship-date-filter {
            border: 1px solid #e3e8ef;
            border-radius: 7px;
            padding: 0 12px;
            background: #fff;
            color: #374151;
            font-size: 12.5px;
            line-height: 1.2;
            font-weight: 600;
            height: 44px;
        }

        .ship-date-filter {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            white-space: nowrap;
        }

        .ship-date-range {
            height: 44px;
            border: 1px solid #e3e8ef;
            border-radius: 7px;
            display: flex;
            align-items: center;
            gap: 7px;
            padding: 0 10px;
            background: #fff;
            color: #6b7280;
            min-width: 0;
        }

        .ship-date-range input {
            min-width: 0;
            width: 104px;
            border: none;
            outline: none;
            background: transparent;
            color: #374151;
            font-size: 12px;
            line-height: 1.2;
            font-weight: 520;
            font-family: inherit;
        }

        .ship-date-range-invalid {
            border-color: #f59e0b;
            background: #fffbeb;
        }

        .ship-filter-btn {
            width: 44px;
            height: 44px;
            border-radius: 7px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .ship-table-wrap {
            overflow-x: auto;
        }

        .ship-table {
            margin: 0;
            border-collapse: separate;
            border-spacing: 0;
            min-width: 875px;
            width: 100%;
        }

        .ship-table th {
            background: #fbfcfd;
            color: #3b4149;
            font-size: 11.35px;
            line-height: 1.25;
            font-weight: 600;
            border-bottom: 1px solid #e7ebef;
            padding: 13px 16px;
            text-align: left;
            white-space: nowrap;
        }

        .ship-table th:last-child,
        .ship-table td:last-child {
            text-align: right;
        }

        .ship-table td {
            color: #374151;
            font-size: 12.25px;
            line-height: 1.34;
            font-weight: 420;
            border-bottom: 1px solid #eceff3;
            vertical-align: middle;
            padding: 10px 16px;
            height: 48px;
        }

        .ship-table tbody tr {
            cursor: pointer;
            position: relative;
        }

        .ship-table tbody tr:hover {
            background: #f8fbf7;
        }

        .ship-row-selected {
            background: #edf8ec !important;
            box-shadow: inset 4px 0 0 #4caf50;
        }

        .ship-box-id-cell,
        .ship-courier-cell {
            display: flex;
            align-items: center;
            gap: 10px;
            font-weight: 600;
            color: #20242a;
            white-space: nowrap;
        }

        .ship-box-cube {
            width: 22px;
            height: 22px;
            border-radius: 6px;
            border: 1px solid #d5dce3;
            color: #7c8794;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            flex: 0 0 auto;
        }

        .ship-logo-placeholder {
            min-width: 38px;
            height: 20px;
            border-radius: 5px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: transparent;
            color: #2563eb;
            font-size: 9.5px;
            line-height: 1;
            font-weight: 640;
            letter-spacing: -0.02em;
            flex: 0 0 auto;
            text-transform: lowercase;
        }

        .ship-logo-large {
            min-width: 24px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            background: #f97316;
            color: #fff;
            font-size: 11px;
            letter-spacing: 0;
            text-transform: lowercase;
        }

        .ship-logo-postnord { color: #0074bd; }
        .ship-logo-dhl { color: #dc2626; background: #ffe047; min-width: 42px; }
        .ship-logo-dex { color: #ea580c; }
        .ship-logo-default { color: #111827; }

        .ship-logo-img-wrap {
            min-width: 38px;
            width: 38px;
            height: 22px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            border: 1px solid #e1e7ee;
            overflow: hidden;
            padding: 2px;
            flex: 0 0 auto;
        }

        .ship-logo-img-wrap img {
            display: block;
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        .ship-logo-img-wrap.ship-logo-large {
            min-width: 32px;
            width: 32px;
            height: 32px;
            border-radius: 10px;
            background: #fff;
            color: inherit;
            padding: 4px;
        }

        .ship-logo-img-fallback {
            display: none;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            font-size: 9.5px;
            font-weight: 640;
            line-height: 1;
            color: #111827;
            letter-spacing: -0.02em;
        }

        .ship-logo-img-wrap.ship-logo-large .ship-logo-img-fallback {
            font-size: 11px;
            letter-spacing: 0;
            text-transform: lowercase;
        }

        .ship-tracking-link {
            color: #5b4bb7;
            font-weight: 600;
            text-decoration: underline;
            text-underline-offset: 2px;
            white-space: nowrap;
        }

        .ship-tracking-missing {
            color: #6b7280;
            text-decoration: none;
            font-weight: 500;
        }

        .ship-status-pill {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 22px;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 11px;
            font-weight: 580;
            white-space: nowrap;
            line-height: 1;
        }

        .ship-status-pill::before {
            content: '';
            width: 7px;
            height: 7px;
            border-radius: 50%;
            margin-right: 6px;
            background: currentColor;
        }

        .ship-status-transit {
            background: #eaf2ff;
            color: #2f80ed;
        }

        .ship-status-delivered {
            background: #eaf8e8;
            color: #3a9c34;
        }

        .ship-status-pending {
            background: #fff4e6;
            color: #e07b18;
        }

        .ship-status-loading {
            background: #eef2f7;
            color: #64748b;
        }

        .ship-status-loading::before,
        .ship-inline-loading span,
        .ship-history-loading span {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            border: 2px solid currentColor;
            border-top-color: transparent;
            animation: shipSpin 0.85s linear infinite;
            flex: 0 0 auto;
        }

        @keyframes shipSpin {
            to { transform: rotate(360deg); }
        }

        .ship-row-tracking-loading {
            background-image: linear-gradient(90deg, rgba(47,128,237,0.04), transparent);
        }

        .ship-inline-loading,
        .ship-tracking-loading-banner,
        .ship-history-loading {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            color: #64748b;
            font-size: 11.5px;
            font-weight: 560;
        }

        .ship-tracking-loading-banner {
            display: flex;
            align-items: center;
            gap: 10px;
            margin: 8px 0 12px;
            padding: 11px 13px;
            border-radius: 8px;
            border: 1px solid #dbeed9;
            background: #edf8eb;
            color: #2f7d32;
            font-size: 11.8px;
            line-height: 1.2;
            font-weight: 620;
        }

        .ship-tracking-loading-dots {
            display: inline-flex;
            align-items: center;
            gap: 7px;
            flex: 0 0 auto;
        }

        .ship-tracking-loading-dots i {
            width: 5px;
            height: 5px;
            border-radius: 999px;
            background: #2f8f35;
            opacity: 0.42;
            animation: shipTrackingDotPulse 1.15s ease-in-out infinite;
        }

        .ship-tracking-loading-dots i:nth-child(2) { animation-delay: 0.16s; }
        .ship-tracking-loading-dots i:nth-child(3) { animation-delay: 0.32s; }

        .ship-row-loading-dots {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            min-height: 22px;
            min-width: 54px;
            vertical-align: middle;
        }

        .ship-row-loading-dots i {
            width: 6px;
            height: 6px;
            border-radius: 999px;
            background: #2f8f35;
            opacity: 0.42;
            animation: shipTrackingDotPulse 1.15s ease-in-out infinite;
        }

        .ship-row-loading-dots i:nth-child(2) { animation-delay: 0.16s; }
        .ship-row-loading-dots i:nth-child(3) { animation-delay: 0.32s; }

        @keyframes shipTrackingDotPulse {
            0%, 80%, 100% { opacity: 0.34; transform: translateY(0); }
            35% { opacity: 1; transform: translateY(-1px); }
        }

        .ship-history-loading,
        .ship-history-empty {
            width: 100%;
            padding: 12px 2px;
            color: #64748b;
            font-size: 11.5px;
            font-weight: 540;
        }

        .ship-table-action {
            width: 34px;
            height: 34px;
            border-radius: 7px;
            color: #111827;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .ship-row-menu {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            color: #111827;
        }

        .ship-actions-cell {
            display: inline-flex;
            justify-content: flex-end;
            align-items: center;
            gap: 10px;
        }

        .ship-table-footer {
            padding: 16px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            color: #4b5563;
            font-size: 13px;
            min-height: 58px;
        }

        .ship-pagination {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        .ship-page-number {
            width: 30px;
            height: 30px;
            border-radius: 8px;
            border: 1px solid #cfe5d0;
            background: #f3fbf2;
            color: #4caf50;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 650;
        }

        .ship-page-step-btn {
            border: 0;
            background: transparent;
            font-size: 20px;
            padding: 3px 4px;
        }

        .ship-page-step-btn:disabled {
            color: #c4cad3;
            cursor: not-allowed;
            box-shadow: none;
        }

        .ship-footer-select {
            height: 36px;
            padding: 0 13px;
            font-weight: 650;
            color: #374151;
            font-family: inherit;
        }

        .ship-empty-row {
            text-align: center;
            color: #6b7280 !important;
            padding: 32px !important;
        }

        .ship-detail-panel {
            min-width: 0;
            background: #fff;
            border-left: 1px solid #e7ebef;
            box-shadow: -10px 0 32px rgba(15, 23, 42, 0.05);
            padding: 0;
            position: sticky;
            top: 0;
            height: calc(100vh - 60px);
            max-height: calc(100vh - 60px);
            min-height: 0;
            align-self: start;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            opacity: 1;
            transform: translateX(0);
            transition: opacity 220ms ease, transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
        }

        .ship-page-shell.ship-detail-closed .ship-detail-panel {
            opacity: 0;
            transform: translateX(18px);
            pointer-events: none;
            border-left-color: transparent;
            box-shadow: none;
        }

        .ship-detail-header-bar {
            height: 58px;
            padding: 0 22px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            border-bottom: 1px solid #eef1f4;
        }

        .ship-detail-header-title {
            display: flex;
            align-items: center;
            gap: 11px;
            color: #242933;
            font-size: 14.5px;
            line-height: 1.25;
            font-weight: 640;
        }

        .ship-detail-close {
            border: 0;
            background: transparent;
            color: #111827;
            cursor: pointer;
            line-height: 1;
            width: 30px;
            height: 30px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }

        .ship-detail-body {
            padding: 20px 20px 18px;
            overflow: auto;
        }

        .ship-detail-id-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 13px;
        }

        .ship-detail-id-row h2 {
            font-size: 21px;
            line-height: 1.1;
            letter-spacing: 0.005em;
            color: #111827;
            margin: 0;
            font-weight: 640;
        }

        .ship-detail-courier {
            display: flex;
            align-items: center;
            gap: 10px;
            color: #2f343b;
            font-size: 12.5px;
            line-height: 1.25;
            margin-bottom: 22px;
        }

        .ship-detail-courier strong {
            font-weight: 600;
        }

        .ship-detail-metrics {
            display: grid;
            grid-template-columns: 1fr 1fr 0.85fr;
            gap: 14px;
            margin-bottom: 20px;
        }

        .ship-detail-metric {
            min-width: 0;
        }

        .ship-detail-metric span,
        .ship-route-block span {
            display: block;
            color: #4b5563;
            font-size: 10.7px;
            line-height: 1.25;
            font-weight: 580;
            margin-bottom: 8px;
        }

        .ship-detail-metric strong,
        .ship-detail-metric a {
            color: #111827;
            font-size: 12.5px;
            line-height: 1.28;
            font-weight: 600;
            word-break: break-word;
        }

        .ship-detail-metric a {
            color: #5b4bb7;
        }
        .ship-detail-metric strong {
            display: inline-flex;
            align-items: center;
            gap: 5px;
        }


        .ship-detail-metric-main {
            display: flex;
            align-items: center;
            gap: 7px;
        }

        .ship-copy-icon,
        .ship-info-icon {
            color: #7b8794;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-style: normal;
        }

        .ship-progress-track {
            position: relative;
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 0;
            margin: 12px 5px 20px;
            padding-top: 3px;
        }

        .ship-progress-track::before {
            content: '';
            position: absolute;
            left: 9%;
            right: 9%;
            top: 17px;
            height: 3px;
            background: #dce3eb;
            border-radius: 999px;
        }

        .ship-progress-fill {
            position: absolute;
            left: 9%;
            top: 17px;
            height: 3px;
            background: #2f80ed;
            border-radius: 999px;
            z-index: 1;
        }

        .ship-progress-step {
            position: relative;
            z-index: 2;
            text-align: center;
            color: #9ca3af;
            min-width: 0;
        }

        .ship-progress-dot {
            width: 24px;
            height: 24px;
            border-radius: 50%;
            margin: 0 auto 9px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #fff;
            border: 2px solid #dce3eb;
            color: #9ca3af;
        }

        .ship-progress-step.done .ship-progress-dot {
            background: #43a047;
            border-color: #43a047;
            color: #fff;
        }

        .ship-progress-step.current .ship-progress-dot {
            background: #2f80ed;
            border-color: #2f80ed;
            color: #fff;
        }

        .ship-progress-step b {
            display: block;
            color: #3b424a;
            font-size: 9.8px;
            line-height: 1.22;
            font-weight: 600;
            min-height: 24px;
        }

        .ship-progress-step small {
            display: block;
            color: #6b7280;
            font-size: 9.6px;
            line-height: 1.2;
            margin-top: 3px;
        }

        .ship-map-card {
            position: relative;
            overflow: hidden;
            border: 1px solid #e9edf2;
            border-radius: 12px;
            min-height: 95px;
            padding: 17px 16px;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 60px;
            align-items: center;
            margin-bottom: 16px;
            background: #f8fbf7;
        }

        .ship-map-card::before {
            content: '';
            position: absolute;
            inset: 0;
            opacity: 0.42;
            background:
                radial-gradient(circle at 38% 55%, rgba(76,175,80,0.26) 0 4px, transparent 5px),
                radial-gradient(circle at 70% 57%, rgba(76,175,80,0.26) 0 4px, transparent 5px),
                linear-gradient(135deg, transparent 0 42%, rgba(76,175,80,0.15) 42% 46%, transparent 46% 100%),
                repeating-linear-gradient(25deg, rgba(76,175,80,0.10) 0 6px, transparent 6px 18px);
        }

        .ship-map-card::after {
            content: '';
            position: absolute;
            left: 35%;
            right: 28%;
            top: 43%;
            height: 26px;
            border-top: 2px dashed #4caf50;
            border-radius: 50%;
            transform: rotate(8deg);
        }

        .ship-route-block {
            position: relative;
            z-index: 1;
        }

        .ship-route-block strong {
            display: block;
            color: #111827;
            font-size: 13px;
            font-weight: 650;
            margin-bottom: 5px;
        }

        .ship-route-block small {
            color: #4b5563;
            font-size: 11px;
        }

        .ship-route-pin {
            width: 11px;
            height: 11px;
            border-radius: 50%;
            background: #43a047;
            display: inline-block;
            margin-right: 6px;
            box-shadow: 0 0 0 3px rgba(67,160,71,0.16);
        }

        .ship-detail-section {
            border: 1px solid #edf0f3;
            border-radius: 12px;
            padding: 14px;
            margin-bottom: 16px;
            background: #fff;
        }

        .ship-detail-section-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 12px;
        }

        .ship-detail-section h3 {
            font-size: 12.5px;
            line-height: 1.25;
            color: #111827;
            margin: 0;
            font-weight: 640;
        }

        .ship-detail-section-head span {
            color: #111827;
            font-size: 11.5px;
            font-weight: 640;
        }

        .ship-package-tags {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 10px;
        }

        .ship-package-tags span {
            display: inline-flex;
            padding: 7px 11px;
            border-radius: 7px;
            background: #f2f4f7;
            color: #4b5563;
            font-size: 10.8px;
            line-height: 1.1;
            font-weight: 600;
        }

        .ship-package-list-link {
            color: #2f80ed;
            font-size: 11.5px;
            line-height: 1.2;
            font-weight: 600;
            text-decoration: none;
            border: none;
            background: transparent;
            padding: 0;
            cursor: pointer;
            font-family: inherit;
        }

        .ship-package-list-link:hover {
            text-decoration: underline;
            text-underline-offset: 2px;
        }

        .ship-package-expanded-list {
            margin-top: 12px;
            border: 1px solid #edf0f4;
            border-radius: 10px;
            background: #fbfcfd;
            overflow: hidden;
        }

        .ship-package-expanded-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-bottom: 1px solid #edf0f4;
            color: #293241;
            font-size: 11.5px;
            line-height: 1.25;
        }

        .ship-package-expanded-item:last-child {
            border-bottom: none;
        }

        .ship-package-expanded-item span {
            width: 20px;
            height: 20px;
            border-radius: 6px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: #eef6ee;
            color: #3d9b41;
            font-weight: 680;
            font-size: 10px;
            flex: 0 0 auto;
        }

        .ship-package-expanded-item strong {
            font-weight: 560;
            overflow-wrap: anywhere;
        }

        .ship-package-empty-state {
            padding: 12px;
            color: #6b7280;
            font-size: 11.5px;
            line-height: 1.35;
        }

        .ship-history-list {
            position: relative;
            display: flex;
            flex-direction: column;
            gap: 0;
        }

        .ship-history-list::before {
            content: '';
            position: absolute;
            left: 6px;
            top: 10px;
            bottom: 14px;
            width: 2px;
            background: #dce3eb;
        }

        .ship-history-item {
            display: grid;
            grid-template-columns: 14px 1fr auto;
            gap: 11px;
            align-items: start;
            position: relative;
            padding: 0 0 13px;
        }

        .ship-history-item > span {
            width: 12px;
            height: 12px;
            border-radius: 50%;
            border: 2px solid #cbd5e1;
            background: #fff;
            margin-top: 4px;
            z-index: 1;
        }

        .ship-history-item.done > span {
            background: #43a047;
            border-color: #43a047;
        }

        .ship-history-item.current > span {
            background: #2f80ed;
            border-color: #2f80ed;
            box-shadow: 0 0 0 3px rgba(47,128,237,0.12);
        }

        .ship-history-item strong {
            display: block;
            font-size: 11.6px;
            line-height: 1.25;
            color: #111827;
            font-weight: 640;
            margin-bottom: 3px;
        }

        .ship-history-item small,
        .ship-history-item em {
            color: #6b7280;
            font-size: 10.6px;
            line-height: 1.25;
            font-style: normal;
        }

        .ship-detail-footer {
            margin-top: 4px;
            display: flex;
            align-items: center;
            justify-content: flex-end;
            gap: 12px;
        }

        .ship-last-updated {
            display: inline-flex;
            align-items: center;
            gap: 9px;
            color: #4b5563;
            font-size: 11.5px;
            line-height: 1.2;
            font-weight: 600;
        }

        .ship-full-tracking-btn {
            display: inline-flex;
            justify-content: center;
            align-items: center;
            min-height: 38px;
            padding: 0 18px;
            border-radius: 8px;
            background: #fff;
            border: 1px solid #8bd08a;
            color: #2e7d32;
            font-size: 11.5px;
            line-height: 1.2;
            font-weight: 640;
            text-decoration: none;
        }

        .ship-detail-empty {
            color: #6b7280;
            text-align: center;
            padding: 40px 0;
        }

        @media (max-width: 1280px) {
            .ship-page-shell,
            .ship-page-shell.ship-detail-closed {
                grid-template-columns: 1fr;
            }
            .ship-main-panel {
                padding-right: 0;
            }
            .ship-detail-panel {
                position: static;
                height: auto;
                max-height: none;
                min-height: auto;
                border-left: 0;
                border-top: 1px solid #e7ebef;
                margin-top: 20px;
            }
            .ship-page-shell.ship-detail-closed .ship-detail-panel {
                max-height: 0;
                margin-top: 0;
                border-top-color: transparent;
            }
        }

        @media (max-width: 980px) {
            .ship-kpi-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
            .ship-toolbar {
                grid-template-columns: 1fr 1fr;
            }
            .ship-search-box {
                grid-column: 1 / -1;
            }
        }

        @media (max-width: 640px) {
            .ship-kpi-grid,
            .ship-detail-metrics,
            .ship-progress-track,
            .ship-map-card {
                grid-template-columns: 1fr;
            }
            .ship-toolbar {
                grid-template-columns: 1fr;
            }
            .ship-table-footer,
            .ship-detail-footer {
                flex-direction: column;
                gap: 10px;
                align-items: flex-start;
            }
        }

        @media (max-width: 768px) {
            .login-container {
                flex-direction: column;
            }
            
            .login-left {
                padding: 40px 20px;
            }
            
            .login-right {
                padding: 20px;
            }
            
            .dashboard-container {
                flex-direction: column;
                height: auto;
                min-height: 100vh;
                overflow: visible;
            }
            
            .sidebar {
                width: 100%;
                flex: 0 0 auto;
                height: auto;
                position: static;
                overflow: visible;
            }

            .sidebar.sidebar-collapsed {
                width: 100%;
                flex-basis: auto;
            }

            .sidebar.sidebar-collapsed .sidebar-flyout,
            .sidebar.sidebar-collapsed.sidebar-hover-open .sidebar-flyout {
                position: static;
                width: 100%;
                height: auto;
                padding: 18px 16px;
                box-shadow: none;
            }

            .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .nav-label,
            .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .sidebar-user-details,
            .sidebar.sidebar-collapsed:not(.sidebar-hover-open) .logout-label {
                opacity: 1;
                max-width: 180px;
                transform: none;
                pointer-events: auto;
            }
            
            .main-content {
                height: auto;
                min-height: 0;
                overflow: visible;
                padding: 20px 15px;
            }
        }
    
