﻿/* Page shell */
.page-shell {
    max-width: 1200px;
    margin: 28px auto;
    padding: 0 16px;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
}

.page-subtitle {
    margin-top: 6px;
    color: #6c757d;
}

.page-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Cards */
.card-soft {
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(0,0,0,.04);
    overflow: hidden;
}

.card-soft-head {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    background: linear-gradient(180deg, rgba(13,110,253,.05), rgba(13,110,253,0));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.card-soft-body {
    padding: 18px;
}

.head-title {
    font-weight: 700;
    font-size: 16px;
}

.head-meta {
    font-size: 12px;
}

/* Chips / badges */
.badge-soft {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(13,110,253,.10);
    color: #0d6efd;
    font-weight: 600;
    font-size: 12px;
}

.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 999px;
    font-size: 12px;
    color: #495057;
    background: #fff;
}

/* Modern table */
.table-modern thead th {
    background: #f8f9fb;
    color: #495057;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding: 12px 12px;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.table-modern td {
    padding: 10px 12px;
    border-bottom: 1px solid rgba(0,0,0,.06);
}

.table-modern tbody tr:hover {
    background: rgba(13,110,253,.03);
}

.items-footer {
    padding: 12px 18px;
    border-top: 1px solid rgba(0,0,0,.06);
    background: #fcfcfd;
}

/* Buttons */
.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Small skeleton */
.skeleton-line {
    height: 12px;
    border-radius: 999px;
    background: linear-gradient(90deg, #f1f3f5, #e9ecef, #f1f3f5);
    background-size: 200% 100%;
    animation: sk 1.2s infinite;
}

@keyframes sk {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Optional: Sticky header */
.table-sticky thead th {
    position: sticky;
    top: 0;
    z-index: 2;
}

/* Empty state */
.empty-emoji {
    font-size: 32px;
}

/* Chips */
.chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(0,0,0,.08);
    background: #fff;
}

.chip-ok {
    color: #146c43;
    background: rgba(25,135,84,.10);
    border-color: rgba(25,135,84,.20);
}

.chip-warn {
    color: #997404;
    background: rgba(255,193,7,.12);
    border-color: rgba(255,193,7,.25);
}

.sales-page {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 16px;
}

.sales-header,
.sales-document-header,
.sales-toolbar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.sales-process {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 12px;
}

.sales-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid #d0d7de;
    background: #fff;
    color: #1f2328;
    font-size: 12px;
    font-weight: 600;
}

.sales-status.is-current {
    border-color: #0d6efd;
    color: #0d6efd;
    background: #f0f6ff;
}

.sales-card,
.sales-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
}

.sales-table,
.sales-line-grid {
    width: 100%;
    border-collapse: collapse;
}

.sales-table th,
.sales-table td,
.sales-line-grid th,
.sales-line-grid td {
    padding: 6px 8px;
    border-bottom: 1px solid #eef0f2;
    font-size: 13px;
}

.sales-table .num,
.sales-summary .num,
.sales-total-panel .num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.sales-related-documents a {
    margin-right: 10px;
}

.sales-print-page {
    background: #fff;
    color: #111;
}

.sales-print-watermark {
    color: #b42318;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin: 8px 0;
}

