/* ===== Modül içinde AtmoSpace (Services/ModuleHost.cs): modülün içindeki Çalışma Alanı sayfası (Views/Modules/Host/Workspaces.cshtml,
   js/pages/host-workspaces.js). Sol: modüle bağlı çalışma alanları; sağ: seçili alanın tabloları. Telefonda alt alta. ===== */
.mh-page { min-width: 0; }
.mh-grid { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 14px; align-items: start; }
.mh-side, .mh-main { display: flex; flex-direction: column; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-surface); min-width: 0; }
.mh-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mh-head > b, .mh-title b { font-family: var(--font-display); font-size: 15px; color: var(--text-primary); }
.mh-title { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex-wrap: wrap; }
.mh-title b { overflow-wrap: anywhere; }
.mh-sub { font-size: 12.5px; color: var(--text-muted); }
.mh-acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mh-hint { margin: 0; font-size: 12px; line-height: 1.45; color: var(--text-muted); }

.mh-list { display: flex; flex-direction: column; gap: 6px; }
.mh-ws { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); color: var(--text-primary); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.mh-ws b { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-ws:hover { border-color: var(--border-strong); }
.mh-ws.on { border-color: var(--accent-dim); background: var(--accent-soft); }
.mh-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.mh-link-btn { align-self: flex-start; }
.mh-link-btn[hidden] { display: none; }

.mh-tables { display: flex; flex-direction: column; gap: 6px; }
.mh-table { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elevated); }
.mh-table:hover { border-color: var(--border-strong); }
.mh-table-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 11px; padding: 8px 8px; color: inherit; text-decoration: none; }
.mh-table-main > svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.mh-table-main span { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mh-table-main b { font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mh-table-main small { font-size: 12px; color: var(--text-muted); }

.mh-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 16px; text-align: center; color: var(--text-secondary); }
.mh-empty[hidden] { display: none; }
.mh-empty > svg { width: 34px; height: 34px; color: var(--text-muted); }
.mh-empty p { margin: 0; max-width: 460px; font-size: 14px; line-height: 1.5; }
.mh-empty-sm { padding: 22px 12px; border: 1px dashed var(--border); border-radius: 12px; }
.mh-empty-sm > svg { width: 26px; height: 26px; }

.mh-page .btn-sm { width: auto; }   /* .btn-sm varsayılanı tam genişlik (04-common.css) */

/* Modülün içinde açılan tam sayfalar (iş akışları, bağlantılar…; Views/Modules/_HostBack.cshtml): geri bağlantısı + telefonda "Menü" */
.mh-back-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mh-back-row .back-link { margin-bottom: 0; }
.mh-back-row .ms-menu-btn { width: auto; }
/* İş Akışları: modülün çalışma alanları arasında seçici */
.mh-ws-pick { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; color: var(--text-secondary); font-size: 13.5px; }
.mh-ws-pick svg { width: 16px; height: 16px; flex: none; }
.mh-ws-pick select { max-width: 280px; padding: 7px 30px 7px 10px; border: 1px solid var(--border-strong); border-radius: 9px; background-color: var(--bg-surface); color: var(--text-primary); font: inherit; font-size: 13.5px; }

/* Modülün içinde açılan tablo sayfası (Views/Tables/Details.cshtml): geri bağlantısının yanındaki "Menü" düğmesi (telefonda) */
.sheet-head .ms-menu-btn { width: auto; }

@media (max-width: 860px) {
    .mh-grid { grid-template-columns: 1fr; }
    .mh-table-main b { white-space: normal; }
}
