*{box-sizing:border-box;}

body{
  margin:0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background:var(--app-bg);
  color:var(--text-primary);
  width:100vw;
  height:100vh;
  overflow:hidden;
}

.page{
  width:100vw;
  height:100vh;
  background:var(--shell-bg);
  display:flex;
  flex-direction:row;
  overflow:hidden;
}

.content{
  flex:1;
  display:flex;
  gap:0;
  padding:0;
  position:relative;
  min-width:0;
  min-height:0;
  overflow:hidden;
}

.content_main{
  flex:1;
  display:flex;
  position:relative;
  min-width:0;
  min-height:0;
  padding:16px;
  overflow:hidden;
}

body.sidebar-collapsed .content_main{
  padding-left:8px;
  padding-right:8px;
}

.content_view{
  display:none;
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

.content_view.active{
  display:flex;
}

.workspace_view.active{
  display:flex;
  flex:1;
  min-width:0;
  min-height:0;
}

.content_view.workspace_view #workspace_view_mount{
  flex:1;
  min-width:0;
  min-height:0;
  display:flex;
  width:100%;
}

.content_view.profile_center_view #profile_center_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

.content_view.permission_management_view #permission_management_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

.content_view.folder_template_admin_view #folder_template_admin_view_mount{
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
  flex:1;
}

#permission_management_view_mount > .permission_admin{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

#profile_center_view_mount > .personal_center{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

#workspace_view_mount > .workspace{
  flex:1;
  min-width:0;
  min-height:0;
}

.placeholder_panel{
  flex:1;
  background:var(--card-bg);
  border-radius:16px;
  border:1px solid var(--border-soft);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.placeholder_title{
  font-size:24px;
  font-weight:600;
  color:var(--text-primary);
}

.placeholder_text{
  font-size:14px;
  color:var(--text-secondary);
}

.breadcrumb{
  display:none;
}

/* layout fix */
#sidebar_mount{
  display:flex;
  flex-shrink:0;
}

.content_view.case_manage_test_view #case_manage_test_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

.content_view.evidence_workbench_view_shell #evidence_workbench_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

/* 从正式证据详情打开时，只将预处理中心的同一工作台作为顶层叠加层显示。 */
.content_view.evidence_workbench_view_shell.is-external-preprocess-overlay{
  display:flex;
  position:fixed;
  inset:0;
  z-index:10050;
  pointer-events:none;
}

.content_view.evidence_workbench_view_shell.is-external-preprocess-overlay .evidence_workbench_view{
  height:100%;
  padding:0;
  overflow:visible;
  background:transparent;
  pointer-events:none;
}

.content_view.evidence_workbench_view_shell.is-external-preprocess-overlay .evidence_workbench_view > :not(.ew_preprocess_editor){
  display:none!important;
}

.content_view.evidence_workbench_view_shell.is-external-preprocess-overlay .ew_preprocess_editor{
  pointer-events:auto;
}

.content_view.fact_workbench_view_shell #fact_workbench_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

#case_manage_test_view_mount > .case_manage_test{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

.content_view.evidence_task_detail_view #evidence_task_detail_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

#evidence_task_detail_view_mount > .evidence_task_detail_view{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

.content_view.party_manage_test_view #party_manage_test_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

#party_manage_test_view_mount > .party_manage_test{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}

.content_view.document_center_view #document_center_view_mount,
.content_view.historical_case_migration_view #historical_case_migration_view_mount,
.content_view.case_analysis_view #case_analysis_view_mount,
.content_view.meeting_audio_view #meeting_audio_view_mount,
.content_view.knowledge_ingest_view #knowledge_ingest_view_mount,
.content_view.template_center_view #template_center_view_mount,
.content_view.template_preview_view #template_preview_view_mount,
.content_view.recycle_bin_view #recycle_bin_view_mount,
.content_view.ai_chat_test_view #ai_chat_test_view_mount,
.content_view.law_firm_manage_view #law_firm_manage_view_mount,
.content_view.tool_page_view #tool_page_view_mount{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
  display:flex;
}

#document_center_view_mount > *,
#historical_case_migration_view_mount > *,
#case_analysis_view_mount > *,
#meeting_audio_view_mount > *,
#knowledge_ingest_view_mount > *,
#template_center_view_mount > *,
#template_preview_view_mount > *,
#recycle_bin_view_mount > *,
#ai_chat_test_view_mount > *,
#law_firm_manage_view_mount > *,
#tool_page_view_mount > *{
  flex:1;
  width:100%;
  height:100%;
  min-width:0;
  min-height:0;
}
