/* ==========================================================
   ASP.NET glue for the Mourvi admin theme (admin.css)
   Server-rendered pieces the static template doesn't have:
   validation text, the live-edit canvas frame, Summernote.
   ========================================================== */

.text-danger,.field-validation-error{display:block;margin-top:6px;font-size:13px;font-weight:600;color:var(--red,#D93636)}
.field-validation-valid,.validation-summary-valid{display:none}
.validation-summary-errors ul{margin:0 0 14px;padding-left:18px;color:var(--red,#D93636);font-size:13.5px;font-weight:600}
.input-validation-error{border-color:var(--red,#D93636)!important}

/* form controls rendered by Html.TextBoxFor etc. */
.field input.form-control,.field textarea.form-control{width:100%}
.field>input,.field>textarea,.field>select{width:100%}

/* live-edit canvas (iframe of the real public page) */
.design-hint{font-size:13px;color:var(--muted);margin:0 0 10px}
.edit-canvas-wrap{border-radius:var(--r-sm,12px);overflow:hidden;box-shadow:inset 0 0 0 1px var(--border);background:#fff}
.edit-canvas-wrap iframe{width:100%;height:80vh;border:0;display:block;background:#fff}

.form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:6px}
.form-grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 16px}
@media (max-width:760px){.form-grid-2{grid-template-columns:minmax(0,1fr)}}

/* table helpers for server-rendered rows */
.table td .row-actions{justify-content:flex-end}
.t-right{text-align:right}
.badge-inline{display:inline-flex}

/* Summernote (Create Page) sits on a white surface in both themes */
.note-editor.note-frame{border-radius:12px;border-color:var(--border);overflow:hidden}
.note-editor .note-toolbar{background:var(--panel-2)}
.note-editor .note-btn{background:var(--panel);color:var(--ink)}
.note-editor .note-editing-area,.note-editor .note-editable{background:#fff;color:#14172E}
.note-modal .btn{min-height:auto}

/* change-password result dialog (replaces the old Bootstrap modal) */
.modal[hidden]{display:none}
