/* C5 deterministic presentation manifest. Import order preserves the pre-C5 cascade. */
@import url("./tokens.css");
@import url("./base.css");
@import url("./utilities.css");
@import url("./workspace/chrome.css");
@import url("./features/tasks.css");
@import url("./features/notebook.css");
@import url("./components/dialogs.css");
@import url("./widgets/numpad.css");
@import url("./features/task-details.css");
@import url("./workspace/drawer.css");
@import url("./components/feedback.css");
@import url("./workspace/workspace.css");
@import url("./features/contacts.css");
@import url("./features/accounting-settings.css");
@import url("./components/forms.css");
@import url("./features/contracts-layout.css");
@import url("./features/project-management.css");
@import url("./components/export.css");
@import url("./features/contact-exit.css");
@import url("./features/contracts.css");
@import url("./features/contact-custom-select.css");
@import url("./widgets/search-template.css");
@import url("./features/contract-search-trigger.css");
@import url("./workspace/back-navigation.css");
@import url("./components/form-template.css");
@import url("./features/contact-form-template.css");
@import url("./workspace/navigation.css");
@import url("./features/wbs-home.css?v=20260904-0130");
@import url("./features/wbs-standard-polish.css");
@import url("./features/wbs-work-tasks.css");
@import url("./features/wbs-today.css");
@import url("./features/wbs-timeline-sticky.css?v=20260904-1407");
@import url("./features/wbs-timeline-details.css?v=20260904-2230");
@import url("./features/wbs-costline.css");

body.global-surface #tabbar,
body.global-surface #workspaceProjectContext { display: none !important; }
body:not(.global-surface){background:#f2f3f5;}

/* Unified application header: project switcher right, title centered, account left. */
#projectSearch,
#modeToggle{display:none !important;}
.topbar{
  min-height:56px;
  position:relative;
  justify-content:space-between;
  padding-inline:10px;
}
.topbar:not(.workspace-context)::before{
  content:'مدیریت ساخت';
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  font-family:'IRANYekan',IRANYekan,Tahoma,sans-serif;
  font-size:16px;
  font-weight:700;
  color:var(--text);
  pointer-events:none;
  white-space:nowrap;
}
.topbar-title.project-menu-trigger{
  cursor:pointer;
  min-width:0;
  max-width:42vw;
  display:flex;
  flex-direction:row;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  border-radius:10px;
  margin-inline-end:auto;
}
.topbar-title.project-menu-trigger:active{background:var(--divider);}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger:not(.has-active-project) .app-title-main{
  font-size:0;
}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger:not(.has-active-project) .app-title-main::before{
  content:'پروژه‌ها';
  font-size:15px;
  font-weight:600;
  color:var(--text);
}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger:not(.has-active-project) .app-title-main::after,
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger.has-active-project .app-title-main::after{
  content:'';
  display:inline-block;
  width:12px;
  height:12px;
  margin-inline-start:4px;
  vertical-align:-2px;
  background:center/12px 12px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger.has-active-project .app-title-main{
  max-width:34vw;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:600;
}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger .app-title-project{display:none;}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger.global-menu-context .app-title-main{
  max-width:34vw;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  font-size:15px;
  font-weight:600;
}
.topbar:not(.workspace-context) .topbar-title.project-menu-trigger.global-menu-context .app-title-main::before{content:none;}
.topbar .account-trigger{
  margin-inline-start:auto;
  margin-inline-end:0;
  z-index:1;
}
.topbar .account-trigger > svg{display:block;color:#000;flex:0 0 auto;}
.topbar .account-trigger:not(.is-guest) .avatar-circle{border:1px solid #000;}
.account-trigger.is-guest .avatar-circle{background:transparent;color:#000;border:1px solid #000;}
.account-trigger.is-guest #avatarDefaultIcon path{stroke:currentColor;}

/* On internal footer workspaces the existing section-title behavior remains authoritative. */
.topbar.workspace-context::before{content:none;}
.topbar.workspace-context .topbar-title.project-menu-trigger{
  max-width:100%;
  flex:1 1 auto;
  margin-inline-end:0;
  cursor:default;
}
.topbar.workspace-context .topbar-title.project-menu-trigger .app-title-main::before,
.topbar.workspace-context .topbar-title.project-menu-trigger .app-title-main::after{content:none;}
.topbar.workspace-context .topbar-title.project-menu-trigger .app-title-project{display:inline;}

/* Unified right drawer: account, projects, management, profile, notebook, authentication. */
#drawerOverlay{justify-content:flex-start;}
#drawerOverlay > .drawer > .drawer-account{display:flex !important;order:0;padding-bottom:12px;border-bottom:1px solid var(--divider);margin:0 0 12px;}
#drawerOverlay #drawerProfileBtn{order:5;}
#drawerOverlay #drawerSigninBtn{margin:0;color:#4285f4;border-color:#4285f4;}
#drawerOverlay #drawerSigninBtn[data-auth-action="signout"]{color:var(--danger);}
#drawerOverlay > .drawer > #drawerSigninBtn[data-auth-action="signout"]{order:7;align-self:flex-start;margin:0;}
#drawerOverlay #drawerProjectsBtn{
  order:4;
  width:100%;
  min-height:52px;
  box-sizing:border-box;
  appearance:none;
  -webkit-appearance:none;
  border:0;
  border-radius:0;
  background:transparent;
  font:inherit;
  font-weight:600;
  padding:12px 4px;
  margin:12px 0 0;
  justify-content:space-between;
  box-shadow:inset 0 -1px 0 var(--divider);
}
#drawerOverlay #drawerProjectsBtn::after{
  content:'›';
  color:var(--text-dim);
  font-size:24px;
  font-weight:400;
  line-height:1;
  flex:0 0 auto;
}
#drawerOverlay .drawer-add-project{
  order:1;
  margin:0 0 12px;
}
#drawerOverlay .drawer-add-project::after{content:none;}
#drawerOverlay > .drawer > .drawer-section-title{
  display:block !important;
  order:2;
  margin:0 0 12px;
  padding:12px 4px;
  border-bottom:1px solid var(--divider);
  color:var(--text-dim);
  font-size:12.5px;
  font-weight:500;
}
#drawerOverlay > .drawer > .drawer-section-title::after{content:none !important;}
#drawerOverlay #drawerProjectList{order:3;}
#drawerOverlay #globalNotebookBtn{order:6;}
#drawerOverlay #drawerProfileBtn,
#drawerOverlay #globalNotebookBtn{
  width:100%;
  min-height:52px;
  box-sizing:border-box;
  border:0;
  border-radius:0;
  background:transparent;
  font:inherit;
  font-weight:600;
  padding:12px 4px;
  margin:0;
  justify-content:space-between;
  border-bottom:1px solid var(--divider);
}
#drawerOverlay #globalNotebookBtn{margin-bottom:12px;}
#drawerOverlay #globalNotebookBtn::after,
#drawerOverlay #drawerProfileBtn::after{
  content:'›';
  color:var(--text-dim);
  font-size:24px;
  font-weight:400;
  line-height:1;
  flex:0 0 auto;
}
