/* Shared look of the shop admin pages (inside the CRM). */
.sa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.sa-head h1 { font-size: 1.6rem; margin: 0; }
.sa-head h2 { font-size: 1.25rem; margin: 0; }
.sa-muted { color: #7a8394; font-size: .85rem; font-weight: 400; }
.sa-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.sa-card { background: #fff; border: 1px solid #e3e6ec; border-radius: 6px; padding: 18px 20px; margin-bottom: 16px; }
.sa-card h2 { font-size: 1.1rem; margin: 0 0 10px; }
.sa-table { width: 100%; background: #fff; border-collapse: collapse; border: 1px solid #e3e6ec; }
.sa-table th { background: #f0f2f5; font-weight: 600; font-size: .85rem; padding: 8px 10px; text-align: left; }
.sa-table td { padding: 8px 10px; border-top: 1px solid #eef0f3; vertical-align: middle; }
.sa-compact td { padding: 4px 6px; }
.sa-dim { opacity: .55; }
.sa-thumb { width: 44px; height: 54px; object-fit: cover; border-radius: 3px; }
.sa-empty { padding: 40px; text-align: center; color: #7a8394; background: #fff; border: 1px dashed #d6dae2; }
.sa-modal-back { position: fixed; inset: 0; background: rgba(20, 25, 35, .45); z-index: 1000; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 40px 16px; }
.sa-modal { background: #fff; border-radius: 8px; width: min(1100px, 100%); padding: 22px 24px; }
.sa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px 16px; }
.sa-grid label, .sa-label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; color: #5a6272; margin-top: 8px; }
.sa-check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.sa-photos { display: flex; gap: 8px; flex-wrap: wrap; }
.sa-photos img { width: 70px; height: 90px; object-fit: cover; border: 1px solid #e3e6ec; }
.sa-photos.big { gap: 12px; margin-bottom: 8px; }
.sa-photo { position: relative; width: 140px; height: 186px; border: 1px solid #e3e6ec; border-radius: 6px; overflow: hidden; background: #fafbfc; cursor: grab; }
.sa-photo img { width: 100%; height: 100%; object-fit: cover; border: 0; }
.sa-photo.dragging { opacity: .4; }
.sa-photo-main { position: absolute; left: 6px; bottom: 6px; background: #ff8084; color: #fff; font-size: .72rem; font-weight: 600; padding: 1px 7px; border-radius: 10px; }
.sa-photo-wait { position: absolute; left: 6px; top: 6px; font-size: .8rem; }
.sa-photo-del { position: absolute; right: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: #c0262d; font-weight: 700; cursor: pointer; line-height: 1; }
.sa-photo-move { position: absolute; right: 6px; bottom: 6px; display: flex; gap: 4px; }
.sa-photo-move button { width: 26px; height: 24px; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: .7rem; }
.sa-photo-add { display: flex; align-items: center; justify-content: center; text-align: center; color: #5a6272; border-style: dashed; cursor: pointer; font-size: .85rem; }
.sa-photo-add:hover { background: #f0f4ff; }
.sa-banner { display: grid; grid-template-columns: 200px 1fr auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid #eef0f3; }
.sa-banner img { width: 200px; height: 100px; object-fit: cover; border: 1px solid #e3e6ec; background: #fafafa; }
label.sa-check { display: flex; margin: 6px 0; cursor: pointer; }
.sa-step { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid #eef0f4; }
.sa-step-n { flex: 0 0 30px; height: 30px; border-radius: 50%; background: #ff8084; color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sa-step > div { flex: 1; }
.sa-progress { height: 10px; background: #e9ecf1; border-radius: 5px; overflow: hidden; }
.sa-progress div { height: 100%; background: #ff8084; }
.sa-split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.sa-tree-side { background: #fff; border: 1px solid #e3e6ec; border-radius: 6px; padding: 8px 0; max-height: calc(100vh - 120px); overflow-y: auto; position: sticky; top: 10px; }
.sa-tree-side a { display: block; padding: 5px 10px; color: #2b2f36; text-decoration: none; font-size: .9rem; }
.sa-tree-side a:hover { background: #f3f5f8; }
.sa-tree-side a.on { background: #e8eefc; color: #1b4fd1; font-weight: 600; }
.sa-massbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: #2b3441; color: #fff; border-radius: 6px; padding: 8px 14px; margin-bottom: 12px; }
.sa-massbar .btn-link { color: #cfe0ff; }
.sa-sections { border: 1px solid #e3e6ec; border-radius: 6px; padding: 6px 12px; max-height: 260px; overflow-y: auto; background: #fbfcfd; }
.sa-sections label.sa-check { margin: 3px 0; }
.sa-related { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-related-item { display: flex; align-items: center; gap: 8px; border: 1px solid #e3e6ec; border-radius: 6px; padding: 4px 4px 4px 6px; background: #fff; max-width: 340px; font-size: .85rem; }
.sa-related-item img { width: 34px; height: 44px; object-fit: cover; border-radius: 3px; }
@media (max-width: 900px) { .sa-split { grid-template-columns: 1fr; } .sa-tree-side { position: static; max-height: 240px; } }
.cn-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cn-top h1 { font-size: 1.4rem; margin: 0; }
.cn-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.cn-hint { margin-bottom: 8px; }
.cn-frame-wrap { border: 1px solid #d6dae2; border-radius: 6px; overflow: hidden; background: #fff; height: calc(100vh - 150px); min-height: 500px; }
.cn-frame-wrap iframe { width: 100%; height: 100%; border: 0; display: block; margin: 0 auto; }
.cn-frame-wrap.phone { background: #eef0f4; }
.cn-frame-wrap.phone iframe { width: 390px; background: #fff; box-shadow: 0 0 0 1px #d6dae2; }
.cn-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 900; background: #fff; box-shadow: -10px 0 30px rgba(20, 25, 35, .2); padding: 18px 20px; overflow-y: auto; }
.cn-kind { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; border: 1px solid #e3e6ec; background: #fff; border-radius: 6px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.cn-kind:hover:not([disabled]) { background: #f0f4ff; border-color: #b9ccff; }
.cn-kind[disabled] { opacity: .5; cursor: default; }
.cn-pic { display: flex; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f1f2f5; }
.cn-pic img { width: 64px; height: 64px; object-fit: cover; border-radius: 4px; border: 1px solid #e3e6ec; }
.cn-note { background: #fff8e6; border: 1px solid #f3dca0; border-radius: 6px; padding: 8px 10px; font-size: .82rem; margin: 8px 0; }
.cn-slide { display: flex; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid #f1f2f5; }
.cn-slide label { border: 1px dashed #c9ced8; border-radius: 4px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #7a8394; font-size: .7rem; text-align: center; flex: none; }
.cn-slide-pc { width: 128px; height: 60px; }
.cn-slide-mob { width: 30px; height: 60px; }
.cn-slide img { width: 100%; height: 100%; object-fit: cover; }
.cn-menu { border: 1px solid #e3e6ec; border-radius: 6px; padding: 8px; margin: 6px 0; background: #fbfcfd; }
.cn-menu-head, .cn-menu-link { display: flex; gap: 4px; align-items: center; margin-bottom: 4px; }
.cn-menu-head input { font-weight: 600; }
.cn-menu-link { padding-left: 14px; }
.cn-tiles { display: flex; flex-wrap: wrap; gap: 10px; }
.cn-tile { width: 92px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: .75rem; text-align: center; }
.cn-tile label { width: 92px; height: 120px; border: 1px dashed #c9ced8; border-radius: 6px; overflow: hidden; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #7a8394; }
.cn-tile img { width: 100%; height: 100%; object-fit: cover; }
.cn-sub { font-size: .95rem; font-weight: 600; margin: 16px 0 4px; }
.cn-icon { width: 48px; height: 48px; border: 1px dashed #c9ced8; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .6rem; text-align: center; color: #7a8394; flex: none; }
.cn-icon img { width: 40px; height: 40px; object-fit: contain; border: 0; }
.cn-pic-fields { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cn-pic-buttons { display: flex; gap: 4px; }
.sa-dups { max-height: 62vh; overflow-y: auto; border: 1px solid #e3e6ec; border-radius: 6px; padding: 4px 12px; }
.sa-dup-row { padding: 10px 0; border-bottom: 1px solid #f1f2f5; }
.sa-dup-title { font-weight: 600; margin-bottom: 6px; }
.sa-dup-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.sa-dup-photo { position: relative; width: 96px; height: 128px; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; background: #f4f5f7; cursor: pointer; }
.sa-dup-photo img { width: 100%; height: 100%; object-fit: cover; }
.sa-dup-photo.on { border-color: #dc3545; }
.sa-dup-photo.on img { opacity: .55; }
.sa-dup-x { position: absolute; left: 0; right: 0; bottom: 0; background: #dc3545; color: #fff; font-size: .7rem; font-weight: 600; }
.sa-dup-mark { color: #dc3545; font-weight: 600; }
/* The warehouse's search, filters and the bar of chosen products stay at the top while scrolling. */
/* Hold the mouse on a product name — after a moment its description shows beside it. */
.sa-tip { position: relative; display: inline-block; }
.sa-tip-box { position: absolute; left: calc(100% + 14px); top: -6px; z-index: 60; width: 360px; max-height: 260px; overflow: hidden; background: #fff; color: #2b2f36; border: 1px solid #d6dae2; border-radius: 8px; box-shadow: 0 10px 28px rgba(20, 25, 35, .18); padding: 10px 12px; font-size: .82rem; line-height: 1.45; white-space: normal; visibility: hidden; opacity: 0; transition: opacity .15s, visibility 0s .15s; pointer-events: none; }
.sa-tip:hover .sa-tip-box { visibility: visible; opacity: 1; transition: opacity .2s .6s, visibility 0s .6s; }
.sa-pagebar { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #e3e6ec; border-radius: 6px; padding: 5px 10px; margin-bottom: 8px; }
.sa-sticky { position: sticky; top: 0; z-index: 50; background: #f4f5f7; padding-top: 6px; }
.sa-scope { background: #eef4ff; border: 1px solid #c9dafc; border-radius: 6px; padding: 8px 12px; margin-bottom: 10px; }
.sa-tile-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; border-bottom: 1px solid #f1f2f5; }
.sa-tree { list-style: none; padding-left: 0; }
.sa-tree ul { list-style: none; padding-left: 26px; }
.sa-tree li > div { display: flex; gap: 10px; align-items: center; padding: 5px 0; border-bottom: 1px solid #f1f2f5; }

/* SEO: how a page looks in the search results */
.seo-preview { border: 1px solid #e3e6ec; border-radius: 8px; padding: 10px 14px; background: #fff; max-width: 640px; margin: 6px 0 4px; font-family: Arial, sans-serif; }
.seo-p-title { color: #1a0dab; font-size: 17px; line-height: 1.3; }
.seo-p-url { color: #006621; font-size: 13px; margin: 2px 0; }
.seo-p-desc { color: #4d5156; font-size: 13px; line-height: 1.4; }
.seo-table td { vertical-align: top; font-size: .85rem; }
.seo-table .seo-src { white-space: nowrap; font-size: .78rem; }
.seo-long { color: #b45309; }
