

.ship-page {
    max-width: 960px;
    margin: 24px auto;
    padding: 0 16px;
}

.ship-title {
    font-size: 24px;
    margin: 0 0 16px;
}

.ship-subtitle {
    font-size: 15px;
    margin: 18px 0 8px;
}

.ship-empty,
.ship-hint {
    color: #666;
    font-size: 14px;
}

.ship-list {
    display: grid;
    gap: 14px;
}

.ship-card {
    background: #fff;
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    padding: 16px;
}

.ship-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.ship-product {
    font-weight: 600;
    color: inherit;
    text-decoration: none;
}

.ship-product:hover {
    text-decoration: underline;
}

.ship-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 12px;
    background: #eee;
    color: #333;
    white-space: nowrap;
}

.ship-badge-Requested { background: #fff4d6; color: #7a5a00; }
.ship-badge-Accepted { background: #dbeafe; color: #1e40af; }
.ship-badge-Paid,
.ship-badge-Registered,
.ship-badge-Delivered { background: #dcfce7; color: #166534; }
.ship-badge-Declined,
.ship-badge-Cancelled,
.ship-badge-Failed,
.ship-badge-Returned { background: #fee2e2; color: #991b1b; }

.ship-meta {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 6px 16px;
    margin: 0 0 12px;
    font-size: 14px;
}

.ship-meta dt {
    color: #666;
}

.ship-meta dd {
    margin: 0;
}

.ship-actions,
.ship-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ship-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #cfcfcf;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
}

.ship-btn:hover {
    background: #f4f4f4;
}

.ship-btn-primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.ship-btn-primary:hover {
    background: #333;
}

.ship-modal {
    width: min(640px, calc(100vw - 32px));
    max-height: calc(100vh - 48px);
    overflow-y: auto;
}

.ship-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0 14px;
}



.ship-locker-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-height: 220px;
    min-height: 96px;
    padding: 6px;
    overflow-y: auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
}

.ship-locker-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    text-align: left;
    cursor: pointer;
}

    .ship-locker-item:hover {
        background: #eeeeee;
    }

    .ship-locker-item.active {
        border-color: #1a1a1a;
        background: #e6e6e6;
    }

.ship-locker-name {
    font-weight: 600;
}

.ship-locker-addr {
    font-size: 12px;
    color: #666;
}

.ship-locker-empty {
    margin: 0;
    padding: 10px;
    color: #666;
    font-size: 14px;
}

.ship-locker-selected {
    margin: 0;
    color: #00695c;
    font-size: 13px;
    font-weight: 600;
}

.ship-locker-selected[hidden] {
    display: none;
}

.ship-weight-hint {
    margin: 0;
}

.ship-weight-hint-error {
    color: #b91c1c;
    font-weight: 600;
}

.ship-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    margin: 10px 0;
    background: #f7f7f7;
    border-radius: 8px;
    font-size: 15px;
}

.ship-error {
    color: #b91c1c;
    font-size: 14px;
    margin: 10px 0 0;
}

.ship-error[hidden] {
    display: none;
}

.ship-my-requests:empty {
    display: none;
}

.ship-my-request {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.ship-my-state,
.ship-my-locker,
.ship-my-barcode {
    color: #555;
}

.details-ship-btn {
    margin-top: 8px;
}



.dark-theme .ship-card {
    background: var(--bg-card);
    border-color: var(--border);
}

.dark-theme .ship-meta dt,
.dark-theme .ship-empty,
.dark-theme .ship-hint {
    color: var(--text-secondary);
}

.dark-theme .ship-btn {
    background: #2a2a2a;
    border-color: #444;
    color: #dddddd;
}

    .dark-theme .ship-btn:hover {
        background: #333333;
    }

.dark-theme .ship-btn-primary {
    background: #00b0a3;
    border-color: #00b0a3;
    color: #ffffff;
}

    .dark-theme .ship-btn-primary:hover {
        background: #009688;
        border-color: #009688;
    }

.dark-theme .ship-badge {
    background: #333;
    color: #ddd;
}

.dark-theme .ship-badge-Requested {
    background: rgba(245, 166, 35, 0.18);
    color: #ffb74d;
}

.dark-theme .ship-badge-Accepted {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

.dark-theme .ship-badge-Paid,
.dark-theme .ship-badge-Registered,
.dark-theme .ship-badge-Delivered {
    background: rgba(0, 176, 163, 0.2);
    color: #4dd0c4;
}

.dark-theme .ship-badge-Declined,
.dark-theme .ship-badge-Cancelled,
.dark-theme .ship-badge-Failed,
.dark-theme .ship-badge-Returned {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
}

.dark-theme .ship-price-line {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.dark-theme .ship-my-request {
    border-bottom-color: var(--border);
}

.dark-theme .ship-my-state,
.dark-theme .ship-my-locker,
.dark-theme .ship-my-barcode {
    color: var(--text-secondary);
}

.dark-theme .ship-error {
    color: #f87171;
}

.dark-theme .ship-locker-list {
    background: var(--bg-secondary);
    border-color: var(--border);
}

.dark-theme .ship-locker-item {
    color: var(--text-primary);
}

.dark-theme .ship-locker-item:hover {
    background: var(--bg-hover);
}

.dark-theme .ship-locker-item.active {
    border-color: #00b0a3;
    background: rgba(0, 176, 163, 0.16);
    color: #ffffff;
}

.dark-theme .ship-locker-addr,
.dark-theme .ship-locker-empty {
    color: var(--text-secondary);
}

.dark-theme .ship-locker-selected {
    color: #4dd0c4;
}

.dark-theme .ship-weight-hint-error {
    color: #f87171;
}
