/* SalesChannel: local composition; controls and Kendo inherit the shared theme. */
.saleschannel-list {
    border: 1px solid var(--mkp-border);
    border-radius: var(--mkp-radius-lg);
    background: var(--mkp-surface);
}

.saleschannel-toolbar {
    display: flex;
    padding: 16px;
    border-bottom: 1px solid var(--mkp-border);
}

.saleschannel-search {
    width: min(100%, 360px);
}

.saleschannel-search .admin-search {
    width: 100%;
}

.saleschannel-page #Grid td:first-child {
    font-weight: 500;
    overflow-wrap: anywhere;
}

.saleschannel-list #Grid {
    --mkp-grid-cell-x: 16px;
    --mkp-grid-cell-y: 8px;
    border: 0;
    border-radius: 0 0 var(--mkp-radius-lg) var(--mkp-radius-lg);
}

/* Let the name absorb spare space; keep configured/resized column widths. */
.saleschannel-list #Grid :is(.k-grid-header-table, .k-grid-table) > colgroup > col:not([style*="width"]) {
    width: auto;
}

/* The MVC toolbar currently emits only an invisible overflow trigger. */
.saleschannel-list #Grid > .k-grid-toolbar:has(> .k-toolbar-overflow-button.k-hidden:only-child),
.saleschannel-list #Grid > .k-grid-toolbar:empty {
    display: none;
}

.saleschannel-list #Grid .k-grid-header th {
    color: var(--mkp-foreground);
    font-size: 14px;
    font-weight: 600;
    height: 44px;
}

.saleschannel-list #Grid th[data-field="Id"] .k-cell-inner > .k-link {
    justify-content: center;
}

.saleschannel-list #Grid td .btn-group {
    gap: 6px;
}

.saleschannel-list #Grid td .btn-group > .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    margin: 0;
    padding: 6px;
    border: 1px solid var(--mkp-border);
    border-radius: var(--mkp-radius-sm);
}

.saleschannel-list #Grid td .btn-group > .btn .fa {
    font-size: 16px;
}

.saleschannel-form {
    max-width: var(--mkp-form-width);
}

.saleschannel-form .card-body {
    padding: var(--mkp-form-padding);
}

.saleschannel-section-title {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.saleschannel-section-description {
    margin: 0 0 24px;
    color: var(--mkp-muted-foreground);
}

.saleschannel-status {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--mkp-border);
}

.saleschannel-status .form-check {
    margin-top: 16px;
}

.saleschannel-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 24px;
    background: var(--mkp-surface);
}

.saleschannel-empty {
    padding: 32px 16px;
    text-align: center;
}

.saleschannel-empty strong {
    display: block;
    color: var(--mkp-foreground);
    font-weight: 600;
}

.saleschannel-empty p {
    margin: 8px 0 0;
    color: var(--mkp-muted-foreground);
}

@media (max-width: 575.98px) {
    .saleschannel-form .card-body { padding: 16px; }
    .saleschannel-actions { padding: 16px; }
}
