/* Rezervace admin — scoped (.crm-rez-admin) z vps/rezervace-admin.html */
.crm-rez-admin {
    --primary: #45225e;
    --primary-light: #6a3e85;
    --secondary: #0f172a;
    --accent: #a78bfa;
    --card-bg: #ffffff;
    --radius: 12px;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    --danger: #b91c1c;
}
.crm-rez-admin .main-content { flex: 1; padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.crm-rez-admin .page-title { margin: 0; font-size: 1.5rem; color: var(--secondary); display: flex; align-items: center; gap: 10px; }
.crm-rez-admin .dotykacka-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 0; border-bottom: 2px solid #e8e8e8; }
.crm-rez-admin .dotykacka-tab { padding: 12px 20px; border-radius: 10px 10px 0 0; cursor: pointer; font-weight: 600; color: #6b7280; transition: all 0.2s; border: 1px solid transparent; border-bottom: none; background: transparent; }
.crm-rez-admin .dotykacka-tab:hover { color: var(--primary); background: #f8f6fa; }
.crm-rez-admin .dotykacka-tab.active { background: var(--card-bg); color: var(--primary); border-color: #e8e8e8; margin-bottom: -2px; box-shadow: 0 -2px 8px rgba(0,0,0,0.04); }
.crm-rez-admin .tab-panel { display: none; }
.crm-rez-admin .tab-panel.active { display: block; }
.crm-rez-admin .card-rez { background: var(--card-bg); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; border: 1px solid #eee; }
.crm-rez-admin .card-rez h2 { margin: 0 0 14px 0; font-size: 1.05rem; color: #333; }
.crm-rez-admin .card-head-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.crm-rez-admin .card-head-row h2 { margin: 0; }
.crm-rez-admin .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-items: end; }
.crm-rez-admin .form-group label { display: block; font-size: 0.8rem; color: #666; margin-bottom: 4px; font-weight: 600; }
.crm-rez-admin .form-group input { width: 100%; padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.9rem; }
.crm-rez-admin .form-group input:focus { border-color: var(--primary); outline: none; }
.crm-rez-admin .btn-save { background: var(--primary); color: #fff; border: none; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.crm-rez-admin .btn-save:hover { opacity: 0.92; }
.crm-rez-admin .btn-comment-secondary { background: #fff; color: #4b5563; border: 1px solid #d1d5db; padding: 10px 16px; border-radius: 8px; cursor: pointer; font-weight: 600; }
.crm-rez-admin .btn-comment-secondary:hover { background: #f9fafb; }
.crm-rez-admin .btn-ghost { background: #fff; color: #374151; border: 1px solid #d1d5db; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.85rem; }
.crm-rez-admin .btn-ghost:hover { background: #f9fafb; }
.crm-rez-admin .btn-danger { background: #fff; color: var(--danger); border: 1px solid var(--danger); }
.crm-rez-admin .btn-danger:hover { background: #fef2f2; }
.crm-rez-admin .exceptions-list { margin-top: 8px; }
.crm-rez-admin .exception-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.crm-rez-admin .exception-row input { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; }
.crm-rez-admin .pause-summary {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.9rem;
    white-space: pre-wrap;
}
.crm-rez-admin .pause-summary.active {
    border-color: #f59e0b;
    background: #fffbeb;
    color: #92400e;
}
.crm-rez-admin .pause-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    margin-right: 8px;
}
.crm-rez-admin .pause-status-badge.active {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fcd34d;
}
.crm-rez-admin .pause-status-badge.inactive {
    background: #e2e8f0;
    color: #334155;
    border: 1px solid #cbd5e1;
}
.crm-rez-admin .pause-modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
.crm-rez-admin .pause-modal-grid label {
    font-size: 0.86rem;
    color: #4b5563;
    font-weight: 600;
}
.crm-rez-admin .pause-modal-grid textarea,
.crm-rez-admin .pause-modal-grid input[type="date"] {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 0.9rem;
    background: #fff;
}
.crm-rez-admin .pause-modal-grid textarea {
    min-height: 90px;
    resize: vertical;
}
.crm-rez-admin .pause-mode-row {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 0.88rem;
    color: #334155;
}
.crm-rez-admin .pause-date-range {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
}
.crm-rez-admin .preference-list { list-style: none; padding: 0; margin: 0; }
.crm-rez-admin .preference-list li { padding: 8px 0; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: #fff; }
.crm-rez-admin .preference-list li:last-child { border-bottom: none; }
.crm-rez-admin .preference-list input[type="text"], .preference-list input[type="number"] { padding: 6px 10px; border: 1px solid #ddd; border-radius: 6px; }
.crm-rez-admin .preference-list input[type="text"] { width: 160px; }
.crm-rez-admin .preference-list input[type="number"] { width: 90px; }
.crm-rez-admin .pref-drag { color: #9ca3af; cursor: grab; font-size: 1.05rem; user-select: none; }
.crm-rez-admin .preference-list li.dragging { opacity: 0.55; }
.crm-rez-admin .preference-list li.drag-over { border-top: 2px solid var(--primary); }
.crm-rez-admin .sums-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.crm-rez-admin .sum-box { background: #f0f4ff; padding: 10px 14px; border-radius: 10px; border: 1px solid #d0dcf0; }
.crm-rez-admin .sum-box strong { font-size: 1.1rem; color: var(--primary); }
.crm-rez-admin .sum-box span { font-size: 0.8rem; color: #666; margin-left: 6px; }
.crm-rez-admin .top-filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
.crm-rez-admin .top-filters input[type="date"] { padding: 8px 10px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.95rem; min-width: 150px; }
.crm-rez-admin .quick-filter-btn { padding: 6px 10px; border-radius: 999px; border: 1px solid #d1d5db; background: #fff; color: #334155; font-size: 0.8rem; cursor: pointer; }
.crm-rez-admin .quick-filter-btn:hover { background: #f8fafc; }
.crm-rez-admin .quick-filter-btn.active { background: #e0f2fe; border-color: #7dd3fc; color: #0c4a6e; font-weight: 700; }
.crm-rez-admin .quick-filter-btn-icon { width: 34px; height: 34px; padding: 0; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; }
.crm-rez-admin .date-nav-wrap { display: inline-flex; align-items: center; gap: 6px; }
.crm-rez-admin .filter-date-weekday { font-size: 0.84rem; font-weight: 700; color: #475569; min-width: 96px; }
.crm-rez-admin .table-section-title { margin: 8px 0 10px 0; font-size: 0.98rem; color: #334155; }
.crm-rez-admin .secondary-table-wrap { margin-top: 16px; padding-top: 12px; border-top: 1px dashed #d1d5db; }
.crm-rez-admin .rez-cards { display: grid; gap: 10px; }
.crm-rez-admin .rez-card { border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; cursor: pointer; transition: box-shadow 0.15s; }
.crm-rez-admin .rez-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.06); }
.crm-rez-admin .rez-card-new { background: #fff8e6; border-color: #fde68a; }
.crm-rez-admin .rez-card-confirmed { background: #effcf3; border-color: #bbf7d0; }
.crm-rez-admin .rez-card-seated { background: #eff6ff; border-color: #93c5fd; }
.crm-rez-admin .rez-card-left { background: #f8fafc; border-color: #cbd5e1; opacity: 0.92; }
.crm-rez-admin .rez-card-cancelled { background: #fff1f2; border-color: #fecdd3; opacity: 0.8; }
.crm-rez-admin .rez-card-cancelled .rez-card-name { text-decoration: line-through; }
.crm-rez-admin .rez-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; margin-bottom: 6px; }
.crm-rez-admin .rez-card-time { font-size: 1.05rem; font-weight: 700; color: #1e293b; white-space: nowrap; }
.crm-rez-admin .rez-card-name { font-size: 0.95rem; font-weight: 600; color: #334155; }
.crm-rez-admin .rez-card-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 0.74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.crm-rez-admin .rez-badge-pending { background: #fff7ed; border: 1px solid #fdba74; color: #9a3412; }
.crm-rez-admin .rez-badge-confirmed { background: #dcfce7; border: 1px solid #86efac; color: #166534; }
.crm-rez-admin .rez-badge-cancelled { background: #fee2e2; border: 1px solid #fca5a5; color: #991b1b; }
.crm-rez-admin .rez-badge-quiz { background: #ede9fe; border: 1px solid #c4b5fd; color: #5b21b6; }
.crm-rez-admin .rez-card-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.84rem; color: #475569; margin-bottom: 6px; }
.crm-rez-admin .rez-card-meta span { display: inline-flex; align-items: center; gap: 4px; }
.crm-rez-admin .rez-card-meta i { font-size: 0.78rem; color: #94a3b8; width: 14px; text-align: center; }
.crm-rez-admin .rez-card-stul { font-size: 0.82rem; color: #166534; font-weight: 700; margin-bottom: 6px; }
.crm-rez-admin .rez-card-stul-missing { font-size: 0.82rem; color: #c2410c; font-weight: 700; margin-bottom: 4px; }
.crm-rez-admin .rez-card-pref-only { font-size: 0.8rem; color: #6d28d9; font-weight: 600; margin-bottom: 6px; }
.crm-rez-admin .rez-card-note { font-size: 0.82rem; color: #64748b; font-style: italic; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.crm-rez-admin .rez-card-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.crm-rez-admin .btn-state { padding: 6px 10px; border-radius: 8px; border: 1px solid #d1d5db; background: #fff; font-size: 0.78rem; cursor: pointer; white-space: nowrap; }
.crm-rez-admin .btn-state:disabled { opacity: 0.45; cursor: not-allowed; }
.crm-rez-admin .btn-state.confirmed { background: #dcfce7; border-color: #86efac; color: #166534; }
.crm-rez-admin .btn-state.pending { background: #fff7ed; border-color: #fdba74; color: #9a3412; }
.crm-rez-admin .btn-state.missed { background: #fee2e2; border-color: #fca5a5; color: #991b1b; }
.crm-rez-admin .btn-state.seated { background: #dbeafe; border-color: #93c5fd; color: #1e3a8a; }
.crm-rez-admin .btn-state.left { background: #ede9fe; border-color: #c4b5fd; color: #5b21b6; }
.crm-rez-admin .btn-state.blink { animation: left-alert 1.2s ease-in-out infinite; }
.crm-rez-admin .left-res-wrap { margin-top: 12px; border-top: 1px dashed #cbd5e1; padding-top: 10px; }
.crm-rez-admin .left-res-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    color: #334155;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 700;
}
.crm-rez-admin .left-res-toggle:hover { background: #f1f5f9; }
.crm-rez-admin .left-res-list { margin-top: 8px; }
.crm-rez-admin @keyframes left-alert {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    50% { box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.05); border-color: #ef4444; }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
}
.crm-rez-admin .error-msg { color: var(--danger); padding: 10px; background: #fff5f5; border-radius: 8px; display: none; }
.crm-rez-admin .error-msg.show { display: block; }
.crm-rez-admin .loading-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.82); z-index: 999; display: none; justify-content: center; align-items: center; flex-direction: column; gap: 10px; color: var(--primary); }
.crm-rez-admin .loading-overlay.show { display: flex; }
.crm-rez-admin .modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1000; display: none; align-items: center; justify-content: center; padding: 14px; }
.crm-rez-admin .modal-overlay.show { display: flex; }
.crm-rez-admin .modal-content { background: #fff; border-radius: 12px; width: 100%; max-width: 520px; box-shadow: 0 25px 50px rgba(0,0,0,0.2); }
.crm-rez-admin .modal-header { padding: 14px 16px; border-bottom: 1px solid #eee; display: flex; justify-content: space-between; align-items: center; }
.crm-rez-admin .modal-header h3 { margin: 0; font-size: 1rem; }
.crm-rez-admin .modal-body { padding: 16px; }
.crm-rez-admin .modal-grid { display: grid; grid-template-columns: 1fr; gap: 8px; font-size: 0.92rem; }
.crm-rez-admin .modal-grid strong { color: #374151; }
.crm-rez-admin .modal-note { margin-top: 10px; padding: 10px; background: #f9fafb; border: 1px solid #eee; border-radius: 8px; white-space: pre-wrap; }
.crm-rez-admin .detail-edit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.crm-rez-admin .detail-edit-group label { display: block; font-size: 0.82rem; color: #4b5563; margin-bottom: 4px; font-weight: 600; }
.crm-rez-admin .detail-edit-group input, .detail-edit-group select, .detail-edit-group textarea {
    width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; background: #fff;
}
.crm-rez-admin .detail-edit-group textarea { min-height: 86px; resize: vertical; }
.crm-rez-admin .detail-meta { margin: 0 0 10px 0; font-size: 0.82rem; color: #6b7280; }
.crm-rez-admin .readonly-panel {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f8fafc;
    color: #374151;
    padding: 9px 10px;
    font-size: 0.9rem;
    min-height: 46px;
    white-space: pre-wrap;
}
.crm-rez-admin .readonly-panel.empty { color: #94a3b8; font-style: italic; }
.crm-rez-admin .comment-list { margin-top: 10px; display: grid; gap: 8px; }
.crm-rez-admin .comment-item { border: 1px solid #e5e7eb; border-radius: 8px; padding: 8px; background: #fff; }
.crm-rez-admin .comment-item.comment-empty { background: #f8fafc; border-style: dashed; color: #64748b; }
.crm-rez-admin .comment-head { font-size: 0.78rem; color: #6b7280; margin-bottom: 4px; display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.crm-rez-admin .comment-text { font-size: 0.88rem; color: #1f2937; white-space: pre-wrap; }
.crm-rez-admin .comment-delete { margin-left: 8px; color: #b91c1c; border-color: #fca5a5; padding: 4px 8px; font-size: 0.75rem; }
.crm-rez-admin .comment-add { margin-top: 10px; border-top: 1px dashed #d1d5db; padding-top: 10px; }
.crm-rez-admin .comment-add textarea { width: 100%; min-height: 74px; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; resize: vertical; }
.crm-rez-admin .modal-content.wide { max-width: 760px; }
.crm-rez-admin .add-rez-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.crm-rez-admin .add-rez-group label { display: block; font-size: 0.82rem; color: #4b5563; margin-bottom: 4px; font-weight: 600; }
.crm-rez-admin .add-rez-group input, .add-rez-group select, .add-rez-group textarea {
    width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 0.9rem; background: #fff;
}
.crm-rez-admin .add-rez-group textarea { min-height: 90px; resize: vertical; }
.crm-rez-admin .add-rez-lookup { margin-bottom: 12px; padding: 10px; border: 1px solid #e5e7eb; border-radius: 10px; background: #f8fafc; }
.crm-rez-admin .add-rez-lookup-actions { margin-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-rez-admin .lookup-status { font-size: 0.82rem; color: #475569; }
.crm-rez-admin .lookup-status.error { color: #b91c1c; }
.crm-rez-admin .lookup-status.success { color: #166534; }
.crm-rez-admin .add-rez-required::after { content: " *"; color: #b91c1c; }
.crm-rez-admin .stoly-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.crm-rez-admin .stoly-toolbar select, .stoly-toolbar input[type="color"] { height: 34px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 10px; background: #fff; color: #1f2937; font-size: 0.86rem; }
.crm-rez-admin .stoly-meta { color: #6b7280; font-size: 0.82rem; }
.crm-rez-admin .btn-sync { background: #fff; color: #1f2937; border: 1px solid #d1d5db; padding: 8px 12px; border-radius: 8px; cursor: pointer; font-size: 0.86rem; }
.crm-rez-admin .btn-sync:hover { background: #f9fafb; }
.crm-rez-admin .stoly-map-wrap { border: 1px solid #e5e7eb; border-radius: 12px; background: #f8fafc; padding: 10px; min-height: 240px; }
.crm-rez-admin .stoly-map-empty { color: #6b7280; font-size: 0.9rem; padding: 10px; }
.crm-rez-admin .stoly-canvas {
    position: relative; min-height: 520px; max-width: 820px; aspect-ratio: 5 / 4; margin: 0 auto;
    border-radius: 10px; background: linear-gradient(180deg, #f5f3ff, #ede9fe); border: 1px dashed #d1d5db; overflow: hidden;
}
.crm-rez-admin .stul-node {
    position: absolute; transform: translate(-50%, -50%); border: 1px solid transparent; background: transparent;
    cursor: pointer; width: 64px; height: 64px; display: flex; align-items: center; justify-content: center; padding: 0;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
    user-select: none;
}
.crm-rez-admin .stul-node:hover { box-shadow: 0 8px 18px rgba(30, 41, 59, 0.16); }
.crm-rez-admin .stul-node.selected { border-color: var(--primary); background: rgba(142, 98, 161, 0.12); border-radius: 12px; box-shadow: 0 0 0 3px rgba(142, 98, 161, 0.18), 0 10px 20px rgba(15,23,42,0.2); z-index: 5; }
.crm-rez-admin .stul-node.text-node { width: auto; min-width: 80px; min-height: 36px; height: auto; padding: 4px 8px; border: 1px dashed #a78bfa; border-radius: 10px; background: rgba(255,255,255,0.66); }
.crm-rez-admin .stul-node-content { display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; width: 100%; }
.crm-rez-admin .stul-icon { font-size: 32px; line-height: 1; }
.crm-rez-admin .stul-icon-img { object-fit: contain; display: block; pointer-events: none; }
.crm-rez-admin .stul-column-dot { border-radius: 999px; border: 2px solid rgba(15,23,42,0.35); }
.crm-rez-admin .stul-text-content { font-weight: 700; color: #4c1d95; line-height: 1.1; text-align: center; white-space: pre-wrap; }
.crm-rez-admin .editor-transform-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 8px 0; }
.crm-rez-admin .editor-transform-row label { font-size: 0.78rem; color: #4b5563; font-weight: 600; white-space: nowrap; }
.crm-rez-admin .editor-transform-row input[type="range"] { width: 100px; }
.crm-rez-admin .editor-transform-row .val { font-size: 0.78rem; color: #6b7280; min-width: 30px; }
.crm-rez-admin .btn-rotate { background: #ede9fe; color: #6d28d9; border: 1px solid #c4b5fd; border-radius: 8px; padding: 6px 10px; cursor: pointer; font-size: 0.82rem; font-weight: 600; }
.crm-rez-admin .btn-rotate:hover { background: #ddd6fe; }
.crm-rez-admin .stul-editor-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0 8px 0; }
.crm-rez-admin .stul-editor-fields input, .stul-editor-fields select, .stul-editor-fields textarea {
    width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px 10px; font-size: 0.88rem; background: #fff;
}
.crm-rez-admin .stul-editor-fields label { display: block; font-size: 0.78rem; color: #4b5563; margin-bottom: 4px; font-weight: 600; }
.crm-rez-admin .stul-editor-fields .full { grid-column: 1 / -1; }
.crm-rez-admin .stul-editor { margin-top: 12px; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px; background: #fff; display: none; }
.crm-rez-admin .stul-editor.show { display: block; }
.crm-rez-admin .stul-editor-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.crm-rez-admin .stul-editor-head h3 { margin: 0; font-size: 1rem; color: #334155; }
.crm-rez-admin .stul-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.crm-rez-admin .stul-badge { font-size: 0.74rem; color: #475569; background: #f1f5f9; border: 1px solid #cbd5e1; border-radius: 999px; padding: 4px 8px; }
.crm-rez-admin .stul-editor-grid { display: grid; grid-template-columns: 180px 1fr; gap: 14px; align-items: start; }
.crm-rez-admin .stul-preview {
    width: 180px; height: 140px; border-radius: 10px; border: 1px solid #d1d5db; background: #f8fafc;
    display: flex; align-items: center; justify-content: center; overflow: hidden; color: #94a3b8; font-size: 0.8rem;
}
.crm-rez-admin .stul-preview img { width: 100%; height: 100%; object-fit: cover; }
.crm-rez-admin .stul-editor-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.crm-rez-admin .stul-file { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; color: #374151; }
.crm-rez-admin .stul-file input[type="file"] { font-size: 0.8rem; }
.crm-rez-admin .frontend-preview-image { width: 100%; max-height: 320px; object-fit: contain; border: 1px solid #ddd6fe; border-radius: 12px; background: #faf5ff; }
.crm-rez-admin .frontend-preview-empty { border: 1px dashed #c4b5fd; border-radius: 12px; padding: 26px 16px; text-align: center; color: #6d28d9; background: #faf5ff; }
@media (max-width: 768px) {
.crm-rez-admin .main-content { padding: 70px 12px 12px; }
.crm-rez-admin .sums-row { justify-content: flex-start; }
.crm-rez-admin .top-filters { width: 100%; margin-left: 0; }
.crm-rez-admin .stul-editor-grid { grid-template-columns: 1fr; }
.crm-rez-admin .stul-preview { width: 100%; max-width: 220px; }
.crm-rez-admin .stoly-canvas { min-height: 420px; max-width: 100%; aspect-ratio: 1 / 1; }
.crm-rez-admin .stul-editor-fields { grid-template-columns: 1fr; }
}
