/* ========== Przesylki ========== */
.sh-shell {
    --sh-ink: #f3f4f6;
    --sh-muted: #9ca3af;
    --sh-line: #3a3a3a;
    --sh-panel: #2c2c2c;
    --sh-soft: #262626;
    --sh-accent: #c2410c;
    --sh-accent-hover: #ea580c;

    margin: -15px;
    padding: 20px;
    min-height: calc(100vh - 220px);
    color: var(--sh-ink);
    font-family: 'Outfit', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    background:
        radial-gradient(ellipse 70% 40% at 100% 0%, rgba(194, 65, 12, 0.12), transparent 55%),
        linear-gradient(160deg, #1a1a1a 0%, #1e1e1e 45%, #222 100%);
    border-radius: 0 0 8px 8px;
}

.sh-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.sh-header__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--sh-muted);
    margin-bottom: 4px;
}

.sh-header__title {
    margin: 0;
    font-family: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    line-height: 1.15;
}

.sh-header__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.sh-btn--primary {
    background: var(--sh-accent);
    border-color: var(--sh-accent);
    color: #fff;
    box-shadow: 0 8px 20px rgba(194, 65, 12, 0.25);
}

.sh-btn--primary:hover {
    background: var(--sh-accent-hover);
    border-color: var(--sh-accent-hover);
    color: #fff;
}

.sh-btn--accent {
    background: rgba(194, 65, 12, 0.18);
    border-color: rgba(194, 65, 12, 0.45);
    color: #fdba74;
}

.sh-btn--accent:hover {
    background: var(--sh-accent);
    border-color: var(--sh-accent);
    color: #fff;
}

.sh-btn--ghost {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--sh-line);
    color: var(--sh-ink);
}

.sh-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.sh-toolbar {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.sh-search {
    position: relative;
    flex: 1;
    min-width: 220px;
}

.sh-search i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--sh-muted);
    pointer-events: none;
}

.sh-shell .form-control {
    height: 38px;
    border-radius: 10px;
    border: 1px solid var(--sh-line);
    background: #1f1f1f;
    color: var(--sh-ink);
    box-shadow: none;
}

.sh-search .form-control {
    padding-left: 34px;
}

.sh-shell .form-control:focus {
    border-color: var(--sh-accent);
    box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.25);
    background: #1a1a1a;
    color: #fff;
}

.sh-select {
    width: auto;
    min-width: 180px;
}

.sh-banner {
    margin-bottom: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--sh-line);
    font-size: 13px;
    line-height: 1.45;
}

.sh-banner--info {
    background: rgba(255, 255, 255, 0.04);
    color: var(--sh-muted);
}

.sh-banner--warn {
    background: rgba(194, 65, 12, 0.12);
    border-color: rgba(194, 65, 12, 0.35);
    color: #fdba74;
}

.sh-banner__title {
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.sh-banner__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--sh-ink);
}

.sh-banner__item {
    font-size: 12px;
    color: var(--sh-muted);
}

.sh-banner__item strong {
    color: #fff;
}

.sh-chip {
    display: inline-block;
    padding: 1px 7px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--sh-line);
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
}

.sh-selection {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.sh-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 180px;
    color: var(--sh-muted);
    font-weight: 600;
}

.sh-loading i {
    font-size: 28px;
    color: var(--sh-accent);
}

.sh-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--sh-line);
    border-radius: 14px;
    background: rgba(38, 38, 38, 0.72);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.sh-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    color: var(--sh-ink);
}

.sh-table thead th {
    padding: 11px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--sh-muted);
    background: rgba(0, 0, 0, 0.22);
    border-bottom: 1px solid var(--sh-line);
    white-space: nowrap;
}

.sh-table tbody td {
    padding: 12px;
    border-bottom: 1px solid rgba(58, 58, 58, 0.85);
    vertical-align: middle;
    font-size: 13px;
}

.sh-table tbody tr:last-child td {
    border-bottom: 0;
}

.sh-table tbody tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.sh-check {
    width: 36px;
    text-align: center;
}

.sh-id {
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

.sh-muted {
    color: var(--sh-muted);
}

.sh-place {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    max-width: 220px;
}

.sh-place i {
    margin-top: 2px;
    color: #fdba74;
}

.sh-person {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sh-person strong {
    color: #fff;
    font-weight: 600;
}

.sh-person small {
    color: var(--sh-muted);
    font-size: 12px;
}

.sh-tracking {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12px;
    color: #fdba74;
}

.sh-date {
    white-space: nowrap;
    color: var(--sh-muted);
    font-size: 12px;
}

.sh-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin: 0 4px 4px 0;
    border: 1px solid transparent;
}

.sh-status--draft {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--sh-line);
    color: var(--sh-muted);
}

.sh-status--created {
    background: rgba(194, 65, 12, 0.16);
    border-color: rgba(194, 65, 12, 0.4);
    color: #fdba74;
}

.sh-status--sent {
    background: rgba(234, 179, 8, 0.14);
    border-color: rgba(234, 179, 8, 0.35);
    color: #fde68a;
}

.sh-status--delivered {
    background: rgba(34, 197, 94, 0.14);
    border-color: rgba(34, 197, 94, 0.35);
    color: #86efac;
}

.sh-status--dispatch {
    background: rgba(59, 130, 246, 0.14);
    border-color: rgba(59, 130, 246, 0.35);
    color: #93c5fd;
}

.sh-ops {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    max-width: 180px;
}

.sh-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--sh-line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--sh-ink);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.sh-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.sh-icon-btn--ok {
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.35);
}

.sh-icon-btn--accent {
    color: #fdba74;
    border-color: rgba(194, 65, 12, 0.4);
}

.sh-icon-btn--danger {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.35);
}

.sh-empty-row {
    text-align: center;
    padding: 48px 16px !important;
    color: var(--sh-muted);
}

.sh-empty-row i {
    display: block;
    font-size: 28px;
    margin-bottom: 10px;
    color: var(--sh-accent);
    opacity: 0.7;
}

.sh-pager {
    margin-top: 14px;
    text-align: center;
}

.sh-shell .pagination > li > a,
.sh-shell .pagination > li > span {
    background: #1f1f1f;
    border-color: var(--sh-line);
    color: var(--sh-muted);
}

.sh-shell .pagination > li > a:hover {
    background: var(--sh-panel);
    color: #fff;
}

.sh-shell .pagination > .active > a,
.sh-shell .pagination > .active > span {
    background: var(--sh-accent);
    border-color: var(--sh-accent);
    color: #fff;
}

.sh-shell .pagination > .disabled > a {
    background: #1a1a1a;
    border-color: var(--sh-line);
    color: #6b7280;
}

/* Status chips also usable in Bootstrap modals */
.label.sh-status--draft,
.label.sh-status--created,
.label.sh-status--sent,
.label.sh-status--delivered {
    border-radius: 999px;
}

@media (max-width: 991px) {
    .sh-shell {
        margin: -10px;
        padding: 14px;
    }

    .sh-header__title {
        font-size: 22px;
    }

    .sh-ops {
        max-width: 140px;
    }
}
