/* Erfan PMO 1.17.1 — unified, responsive and resilient interface layer. */
:root {
  --ui-navy-950: #0d2639;
  --ui-navy-900: #102f46;
  --ui-navy-800: #173f59;
  --ui-emerald-700: #08715e;
  --ui-emerald-600: #11856e;
  --ui-emerald-100: #e5f4ef;
  --ui-gold-500: #d9a63e;
  --ui-gold-100: #fff4d9;
  --ui-blue-600: #3b79b4;
  --ui-red-600: #b74352;
  --ui-surface: #ffffff;
  --ui-canvas: #f3f6f8;
  --ui-soft: #f7f9fa;
  --ui-line: #dfe7ec;
  --ui-line-strong: #cdd9e0;
  --ui-text: #183247;
  --ui-muted: #62788a;
  --ui-radius-sm: 8px;
  --ui-radius: 12px;
  --ui-radius-lg: 16px;
  --ui-shadow-sm: 0 2px 8px rgba(18, 48, 69, .05);
  --ui-shadow: 0 10px 30px rgba(18, 48, 69, .08);
  --ui-focus: 0 0 0 3px rgba(17, 133, 110, .17);
  --ui-sidebar: 240px;
  --ui-sidebar-compact: 78px;
}

html { background: var(--ui-canvas); scrollbar-color: #80909b #edf2f4; }
body.executive-app { min-width: 320px; background: var(--ui-canvas); color: var(--ui-text); font-family: Vazirmatn, Tahoma, sans-serif; font-size: 15px; line-height: 1.75; }
body.nav-open { overflow: hidden; }
.executive-app *, .executive-app *::before, .executive-app *::after { box-sizing: border-box; }
.executive-app :where(a, button, input, select, textarea, summary):focus-visible { outline: 0; box-shadow: var(--ui-focus); }
.executive-app :where(a, button) { -webkit-tap-highlight-color: transparent; }
.executive-app svg { flex: none; }
.skip-link { position: fixed; top: 8px; right: 8px; z-index: 200; padding: 10px 14px; border-radius: 8px; background: #fff; color: var(--ui-navy-900); transform: translateY(-150%); }
.skip-link:focus { transform: none; }

/* Stable navigation rail */
.executive-app .ex-fixed-sidebar {
  position: fixed !important;
  inset: 0 0 0 auto !important;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0 !important;
  max-height: 100dvh;
  width: var(--ui-sidebar);
  padding: 12px;
  gap: 9px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--ui-navy-950), #112d42 65%, #10283b);
  border-left: 1px solid rgba(255,255,255,.05);
  box-shadow: -12px 0 40px rgba(8, 29, 45, .08);
}
.executive-app .ex-fixed-sidebar .brand {
  min-height: 154px;
  margin: 0;
  padding: 14px 12px 12px;
  gap: 9px;
  flex: none;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--ui-radius-lg);
  background: linear-gradient(150deg, rgba(255,255,255,.09), rgba(255,255,255,.025));
  text-align: center;
}
.executive-app .brand-logo-frame { width: 82px; height: 82px; padding: 3px; border: 2px solid #dfb75e; border-radius: 50%; background: #fff; box-shadow: 0 9px 24px rgba(2,18,30,.38); }
.executive-app .ex-fixed-sidebar .brand-logo { width: 74px; height: 74px; padding: 0; border-radius: 50%; background: #fff; object-fit: contain; }
.executive-app .ex-fixed-sidebar .brand-copy { width: 100%; min-width: 0; overflow: visible; }
.executive-app .ex-fixed-sidebar .brand strong { color: #fff; font-size: 16px; font-weight: 850; line-height: 1.45; text-align: center; }
.executive-app .ex-fixed-sidebar .brand small { display: block; margin-top: 3px; color: #d2e0e9; font-size: 11.5px; font-weight: 550; line-height: 1.55; }
.executive-app .ex-fixed-sidebar .ex-side-nav {
  position: relative;
  display: flex;
  flex: 1 1 auto !important;
  min-height: 0;
  max-height: none !important;
  gap: 2px;
  margin: 0;
  padding: 0 0 2px;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  scrollbar-width: none;
  scroll-padding-block: 4px;
}
.executive-app .ex-fixed-sidebar .ex-side-nav::-webkit-scrollbar { display: none; width: 0; height: 0; }
.executive-app .ex-fixed-sidebar .ex-side-nav a {
  min-height: 40px;
  margin: 0;
  padding: 8px 10px;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 760;
  line-height: 1.5;
  transition: background .15s, border-color .15s, color .15s;
}
.executive-app .ex-fixed-sidebar .ex-side-nav a svg { width: 18px; height: 18px; color: #d6e4ec; }
.executive-app .ex-fixed-sidebar .ex-side-nav a:hover { color: #fff; background: rgba(255,255,255,.075); border-color: rgba(255,255,255,.09); }
.executive-app .ex-fixed-sidebar .ex-side-nav a.active { color: #f7c95c; background: rgba(255,255,255,.075); border-color: rgba(221,177,77,.48); border-right: 3px solid var(--ui-gold-500); box-shadow: inset 0 0 0 1px rgba(255,255,255,.025); }
.executive-app .ex-fixed-sidebar .ex-side-nav a.active svg { color: #f7c95c; }
.executive-app .ex-fixed-sidebar .ex-side-nav .ex-nav-text { width: auto; color: inherit; font: inherit; text-align: right; }
.executive-app .ex-fixed-sidebar .ex-side-nav .nav-tools { margin-top: 7px; padding-top: 9px; border-top-color: rgba(255,255,255,.13); }
.sidebar-dock { flex: 0 0 auto; display: grid; gap: 6px; min-width: 0; padding-top: 2px; background: linear-gradient(180deg, rgba(16,40,59,0), #10283b 14px); }
.executive-app .ex-fixed-sidebar .sidebar-foot { display: flex; align-items: center; justify-content: space-between; gap: 7px; margin: 0; padding: 6px 9px 1px; border: 0; color: #a9becb; font-size: 10px; }
.system-status { display: inline-flex; align-items: center; gap: 6px; }
.system-status i { width: 7px; height: 7px; border-radius: 50%; background: #3cc59e; box-shadow: 0 0 0 4px rgba(60,197,158,.11); }
.sidebar-compact-toggle { width: 100%; max-width: 100%; min-height: 34px; flex: none; display: flex; align-items: center; justify-content: center; gap: 7px; margin: 0; padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 8px; background: rgba(255,255,255,.04); color: #c6d7e1; font: inherit; font-size: 10.5px; cursor: pointer; }
.sidebar-compact-toggle:hover { background: rgba(255,255,255,.09); color: #fff; }
.sidebar-compact-toggle svg { width: 14px; height: 14px; transform: rotate(180deg); transition: transform .18s ease; }
.sidebar-scrim { position: fixed; inset: 0; z-index: 44; display: none; border: 0; background: rgba(8,28,43,.52); backdrop-filter: blur(2px); }

@media (min-width: 761px) {
  body.executive-app.sidebar-compact { --ui-sidebar: var(--ui-sidebar-compact); }
  .executive-app.sidebar-compact .ex-fixed-sidebar { height: 100vh; height: 100dvh; padding: 9px; gap: 6px; }
  .executive-app.sidebar-compact .ex-fixed-sidebar .brand { min-height: 68px; padding: 7px; border-radius: 13px; }
  .executive-app.sidebar-compact .brand-logo-frame { width: 48px; height: 48px; padding: 2px; border-width: 1px; }
  .executive-app.sidebar-compact .ex-fixed-sidebar .brand-logo { width: 42px; height: 42px; }
  .executive-app.sidebar-compact .brand-copy,
  .executive-app.sidebar-compact .ex-nav-text,
  .executive-app.sidebar-compact .nav-counter,
  .executive-app.sidebar-compact .sidebar-foot { display: none; }
  .executive-app.sidebar-compact .sidebar-dock { display: block; padding: 0; background: transparent; }
  .executive-app.sidebar-compact .ex-fixed-sidebar .ex-side-nav a { width: 100%; max-width: 100%; justify-content: center; min-height: clamp(36px, 5.6vh, 44px); padding: 7px; border-right-width: 1px; }
  .executive-app.sidebar-compact .ex-fixed-sidebar .ex-side-nav a.active { border-right-width: 1px; box-shadow: inset -3px 0 var(--ui-gold-500); }
  .executive-app.sidebar-compact .ex-fixed-sidebar .ex-side-nav a svg { width: 20px; height: 20px; }
  .executive-app.sidebar-compact .ex-fixed-sidebar .ex-side-nav { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
  .executive-app.sidebar-compact .ex-fixed-sidebar .ex-side-nav::-webkit-scrollbar { display: none; }
  .executive-app.sidebar-compact .sidebar-compact-toggle { width: 100%; min-height: 40px; margin: 0; padding: 8px; background: #173b54; box-shadow: 0 -8px 18px rgba(8,29,45,.16); }
  .executive-app.sidebar-compact .sidebar-compact-toggle span { display: none; }
  .executive-app.sidebar-compact .sidebar-compact-toggle svg { transform: none; }
}

/* Shell, utility bar and page heading */
.executive-app .main-shell { min-width: 0; margin-right: var(--ui-sidebar); }
.executive-app .utility-bar {
  position: sticky;
  top: 0;
  z-index: 38;
  min-height: 68px;
  height: auto;
  padding: 10px clamp(16px, 2.4vw, 34px);
  gap: 14px;
  border-bottom: 1px solid var(--ui-line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.executive-app .global-search { max-width: 620px; min-width: 240px; height: 44px; border: 1px solid transparent; border-radius: 11px; background: #f2f5f7; }
.executive-app .global-search:focus-within { border-color: #80b4a6; background: #fff; box-shadow: var(--ui-focus); }
.executive-app .global-search input { min-width: 0; font-size: 13.5px; }
.executive-app .utility-clock { min-height: 40px; margin-inline-start: auto; border-color: var(--ui-line); border-radius: 9px; box-shadow: none; }
.executive-app .user-area { margin-right: 0; }
.executive-app .user-badge { border-radius: 10px; background: linear-gradient(145deg, var(--ui-navy-800), var(--ui-blue-600)); }
.executive-app .menu-toggle { display: none; width: 40px; height: 40px; padding: 10px; border: 1px solid var(--ui-line); border-radius: 9px; background: #fff; }
.executive-app .menu-toggle span { display: block; width: 18px; height: 2px; margin: 3px auto; border-radius: 2px; background: var(--ui-navy-800); }
.executive-app .topbar { min-height: 116px; padding: 24px clamp(16px, 2.4vw, 34px) 15px; align-items: flex-end; background: transparent; }
.executive-app .page-heading { min-width: 0; }
.executive-app .topbar h1 { margin: 0 0 4px; color: var(--ui-navy-950); font-size: clamp(22px, 2.2vw, 29px); font-weight: 850; line-height: 1.5; letter-spacing: -.45px; overflow-wrap: anywhere; }
.executive-app .topbar p { max-width: 850px; color: var(--ui-muted); font-size: 13.5px; }
.executive-app .content { width: 100%; max-width: 1920px; padding: 12px clamp(16px, 2.4vw, 34px) 44px; }
.executive-app .page-footer { display: flex; justify-content: space-between; gap: 18px; margin: 0; padding: 16px clamp(16px, 2.4vw, 34px); border-top: 1px solid var(--ui-line); background: #fff; color: var(--ui-muted); font-size: 11px; }
.executive-app .page-footer small { font-size: inherit; }
.topbar-actions { flex: none; }

/* Shared surfaces and controls */
.executive-app :where(.panel, .surface, .ex-surface) { border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: var(--ui-surface); box-shadow: var(--ui-shadow-sm); }
.executive-app .btn { min-height: 40px; padding: 8px 14px; gap: 7px; border: 1px solid var(--ui-line-strong); border-radius: var(--ui-radius-sm); background: #fff; color: var(--ui-navy-800); font-size: 13px; font-weight: 750; box-shadow: none; transition: border-color .15s, background .15s, color .15s; }
.executive-app .btn:hover { border-color: #8db5aa; background: #f6faf9; color: var(--ui-emerald-700); filter: none; }
.executive-app .btn.primary { border-color: var(--ui-emerald-700); background: var(--ui-emerald-700); color: #fff; }
.executive-app .btn.primary:hover { background: #075f50; color: #fff; }
.executive-app .btn.gold { border-color: #bd871e; background: #bd871e; color: #fff; }
.executive-app .icon-btn { border: 1px solid var(--ui-line); background: var(--ui-soft); color: var(--ui-muted); }
.executive-app :where(input:not([type=checkbox]):not([type=radio]), select, textarea, .rich-select-button) { min-height: 43px; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: #fff; color: var(--ui-text); font-size: 14px; }
.executive-app :where(input:not([type=checkbox]):not([type=radio]), select, textarea, .rich-select-button):focus { border-color: #6ba593; box-shadow: var(--ui-focus); }
.executive-app input::placeholder, .executive-app textarea::placeholder { color: #91a0aa; }
.executive-app .badge { min-height: 24px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.executive-app .message { border-radius: 10px; font-size: 13.5px; box-shadow: var(--ui-shadow-sm); }
.executive-app .messages .message { position: relative; padding-inline-end: 46px; }
.message-dismiss { position: absolute; inset-inline-end: 10px; top: 50%; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 7px; background: transparent; color: currentColor; font-size: 20px; transform: translateY(-50%); cursor: pointer; opacity: .72; }
.message-dismiss:hover { background: rgba(0,0,0,.06); opacity: 1; }
.executive-app button.is-submitting { position: relative; pointer-events: none; opacity: .78; }
.executive-app button.is-submitting::before { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-bottom-color: transparent; border-radius: 50%; animation: ui-spin .7s linear infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
.executive-app .panel-head { align-items: center; }
.executive-app .panel-head h2, .executive-app .section-title h2 { color: var(--ui-navy-900); font-size: 16px; font-weight: 800; }
.executive-app .panel-head p, .executive-app .section-title p { color: var(--ui-muted); font-size: 12.5px; }
.section-line { gap: 12px; }

/* Clear filters and data-entry forms */
.executive-app .filter-bar, .executive-app .ex-filters { gap: 10px; padding: 14px 16px; border: 1px solid var(--ui-line); border-radius: var(--ui-radius); background: #fff; box-shadow: var(--ui-shadow-sm); }
.executive-app .filter-bar { align-items: center; }
.executive-app .filter-bar :where(select, input), .executive-app .ex-filters :where(select, input) { height: 42px; }
.executive-app .filter-bar .search-box { min-width: 230px; }
.executive-app .unit-chips { gap: 7px; padding: 2px 0 14px; scrollbar-width: thin; }
.executive-app .unit-chips a { padding: 7px 12px; border-color: var(--ui-line); background: #fff; color: #4d6576; font-size: 11.5px; }
.executive-app .unit-chips a:hover { border-color: #92bcb0; }
.executive-app .unit-chips a.selected { border-color: var(--ui-emerald-700); background: var(--ui-emerald-700); color: #fff; }
.executive-app .edit-form { padding: clamp(18px, 3vw, 30px); }
.executive-app .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 22px; }
.executive-app .form-field { min-width: 0; margin: 0; }
.executive-app .form-field:has(textarea), .executive-app .form-field:has(.editor-shell), .executive-app .form-field.form-wide { grid-column: 1 / -1; }
.executive-app .form-field > label, .executive-app .edit-form > label { margin-bottom: 7px; color: #405c70; font-size: 12.5px; font-weight: 780; }
.executive-app .form-field > label span[aria-label="الزامی"] { color: var(--ui-red-600); }
.executive-app .form-field > small { display: block; margin-top: 6px; color: var(--ui-muted); font-size: 11px; line-height: 1.7; }
.executive-app .toolbar-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.executive-app .edit-form > .toolbar-actions { position: sticky; bottom: 10px; z-index: 8; margin: 24px -8px -8px; padding: 12px; border: 1px solid var(--ui-line); border-radius: 11px; background: rgba(255,255,255,.94); box-shadow: 0 10px 30px rgba(18,48,69,.12); backdrop-filter: blur(12px); }
.executive-app .errorlist { border: 1px solid #efcdd3; background: #fff2f4; color: #9f3444; }
.form-intro { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; padding: 14px 16px; border: 1px solid #d8e8e3; border-radius: 10px; background: #f2f8f6; }
.form-intro span { width: 34px; height: 34px; display: grid; place-items: center; flex: none; border-radius: 9px; background: var(--ui-emerald-100); color: var(--ui-emerald-700); font-size: 18px; }
.form-intro strong, .form-intro small { display: block; }
.form-intro strong { font-size: 13.5px; }
.form-intro small { color: var(--ui-muted); font-size: 11.5px; }

/* Readable data tables */
.executive-app .table-panel { overflow: hidden; }
.executive-app .table-wrap { width: 100%; overflow: auto; scrollbar-width: thin; }
.executive-app .table-wrap table:not(.ex-tree) { min-width: 760px; }
.executive-app .table-wrap th { position: sticky; top: 0; z-index: 2; padding: 12px 14px; border-color: var(--ui-line); background: #f2f6f8; color: #476276; font-size: 12px; font-weight: 800; white-space: nowrap; }
.executive-app .table-wrap td { padding: 14px; border-color: #e9eef1; color: #263f52; font-size: 13px; line-height: 1.75; }
.executive-app .table-wrap tbody tr:nth-child(even) { background: #fbfcfd; }
.executive-app .table-wrap tbody tr:hover { background: #f3f8f6; }
.executive-app .table-title { font-size: 13.5px; font-weight: 760; }
.executive-app .table-title small, .executive-app .block { color: var(--ui-muted); font-size: 11px; }
.executive-app .count-pill { min-width: 32px; background: #edf3f5; color: var(--ui-navy-800); }
.executive-app .person-cell > span { border-radius: 10px; background: linear-gradient(145deg, var(--ui-navy-800), var(--ui-emerald-600)); }

/* Employee directory and profile */
.employee-directory-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.employee-directory-head > div { min-width: 0; }
.employee-directory-head strong, .employee-directory-head small { display: block; }
.employee-directory-head strong { color: var(--ui-navy-900); font-size: 15px; }
.employee-directory-head small { margin-top: 2px; color: var(--ui-muted); font-size: 12px; }
.executive-app .employee-hero { position: relative; align-items: center; gap: 22px; padding: 22px; overflow: hidden; border: 0; border-radius: var(--ui-radius-lg); background: linear-gradient(118deg, #123550, #17466a 72%, #1b5b68); color: #fff; box-shadow: var(--ui-shadow); }
.executive-app .employee-hero::after { content: ""; position: absolute; left: -60px; bottom: -120px; width: 280px; height: 280px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(255,255,255,.025), 0 0 0 82px rgba(255,255,255,.018); pointer-events: none; }
.executive-app .employee-avatar { width: 72px; height: 72px; flex: 0 0 72px; border: 1px solid rgba(255,255,255,.22); border-radius: 19px; background: rgba(255,255,255,.13); font-size: 28px; }
.executive-app .employee-hero h2 { color: #fff; font-size: 23px; }
.executive-app .employee-hero p { color: #dce7ee; }
.executive-app .employee-hero .eyebrow { display: block; color: #9fb9c9; font-size: 9px; }
.executive-app .employee-hero .profile-actions { position: relative; z-index: 1; display: grid; gap: 8px; min-width: 185px; }
.executive-app .employee-hero .profile-actions .btn { border-color: rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; }
.executive-app .employee-hero .profile-actions .btn:hover { background: rgba(255,255,255,.15); }
.executive-app .employee-hero .profile-actions .btn.gold { border-color: #e2b648; background: #d09a24; }
.executive-app .employee-workspace-panel { overflow: hidden; }
.executive-app .employee-tabs { padding: 6px 10px 0; gap: 3px; border-bottom: 1px solid var(--ui-line); background: #f8fafb; }
.executive-app .employee-tabs button { min-height: 48px; padding: 12px 15px; border-radius: 8px 8px 0 0; color: #40586c !important; font-size: 13.5px; font-weight: 740; }
.executive-app .employee-tabs button[aria-selected=true] { background: #fff; color: var(--ui-emerald-700) !important; box-shadow: inset 0 -3px var(--ui-emerald-600), 0 -1px 0 var(--ui-line); }
.executive-app .employee-tabs .tab-count { display: inline-grid; min-width: 22px; min-height: 22px; place-items: center; margin-right: 4px; padding: 0 5px; border-radius: 999px; background: #e7ecef; color: #536a7a; font-size: 10px; }
.executive-app .employee-tabs button[aria-selected=true] .tab-count { background: var(--ui-emerald-100); color: var(--ui-emerald-700); }
.executive-app .employee-workspace-panel .tab-panel { padding: 22px; }
.employee-report-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.employee-report-grid > section { min-width: 0; }
.employee-report-grid h3 { margin: 0 0 10px; color: var(--ui-navy-900); font-size: 14px; }
.executive-app .profile-dl { border: 1px solid var(--ui-line); border-radius: 10px; overflow: hidden; }
.executive-app .profile-dl dt, .executive-app .profile-dl dd { margin: 0; padding: 12px 14px; border-bottom: 1px solid var(--ui-line); }
.executive-app .profile-dl dt { background: #f6f8f9; color: var(--ui-muted); }

/* Detail pages */
.executive-app .breadcrumb { margin-bottom: 16px; color: var(--ui-muted); font-size: 12px; }
.executive-app .project-hero.item-hero { border: 1px solid var(--ui-line); background: linear-gradient(135deg, #fff, #f7faf9); box-shadow: var(--ui-shadow-sm); }
.executive-app .item-identity { margin-bottom: 12px; }
.executive-app .item-identity span { letter-spacing: .8px; }
.executive-app .page-item-kind { margin-left: 9px; background: var(--ui-emerald-100); color: var(--ui-emerald-700); }
.executive-app .detail-strip { border-color: var(--ui-line); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-sm); }
.executive-app .detail-strip > div { padding: 17px 18px; border-color: var(--ui-line); }
.executive-app .detail-strip small { color: var(--ui-muted); font-size: 11.5px; }
.executive-app .detail-strip strong { color: var(--ui-text); font-size: 13.5px; }
.executive-app .work-row { min-height: 58px; padding: 11px 10px; border-color: var(--ui-line); border-radius: 8px; }
.executive-app .work-row:hover { background: #f4f9f7; }

/* Dashboard polish */
.executive-app .ex-kpi { min-height: 122px; border-color: var(--ui-line); box-shadow: var(--ui-shadow-sm); }
.executive-app .ex-kpi:hover { border-color: #9dc3b8; box-shadow: var(--ui-shadow); }
.executive-app .ex-kpi strong { color: var(--ui-navy-900); font-variant-numeric: tabular-nums; }
.executive-app .ex-section-head { padding: 18px 20px; }
.executive-app .ex-progress-donut { box-shadow: inset 0 0 0 1px rgba(17,133,110,.08); }
.executive-app .ex-project-pulse-list > a { min-height: 72px; }
.executive-app .ex-empty { color: var(--ui-muted); }

/* Project control center — v1.17 */
.control-intro{display:flex;align-items:center;justify-content:space-between;padding:24px;margin-bottom:18px;background:linear-gradient(135deg,#fff,#f0f8f5)}
.control-intro h2{margin:5px 0}.control-intro p{margin:0;color:var(--ui-muted)}
.control-pulse{display:flex;align-items:center;gap:8px;color:var(--ui-emerald-700);font-weight:800}.control-pulse i{width:9px;height:9px;border-radius:50%;background:#13a47c;box-shadow:0 0 0 6px rgba(19,164,124,.12)}
.control-project-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(310px,1fr));gap:14px}
.control-project-card{display:block;padding:20px;border:1px solid var(--ui-line);border-radius:14px;background:#fff;color:inherit;text-decoration:none;box-shadow:var(--ui-shadow-sm);transition:.18s ease}
.control-project-card:hover{transform:translateY(-2px);box-shadow:var(--ui-shadow);border-color:#8ab9ad}.control-project-card.has-issue{border-top:3px solid #d85d68}.control-project-card.has-risk{border-top:3px solid #d49b20}
.control-project-card h2{font-size:16px;margin:8px 0 3px}.kind-label{font-size:11px;color:var(--ui-emerald-700);font-weight:750}
.control-project-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:18px 0}.control-project-stats span{display:flex;flex-direction:column;gap:3px;color:var(--ui-muted);font-size:11px}.control-project-stats b{color:var(--ui-navy-900);font-size:18px}
.control-summary{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--ui-line);border-radius:14px;margin-bottom:16px;overflow:hidden}
.control-summary>div{padding:18px;border-left:1px solid var(--ui-line);display:flex;flex-direction:column;gap:5px}.control-summary>div:last-child{border-left:0}.control-summary small{color:var(--ui-muted)}.control-summary strong{font-size:18px;color:var(--ui-navy-900)}
.control-section{padding:0;margin-bottom:18px;overflow:hidden}.control-section>.section-title{padding:20px;border-bottom:1px solid var(--ui-line)}
.control-table-wrap{overflow:auto}.control-table-wrap table{width:100%;border-collapse:collapse}.control-table-wrap th,.control-table-wrap td{padding:13px 16px;border-bottom:1px solid var(--ui-line);text-align:right}.control-table-wrap th{background:#f5f8fa;color:#526479;font-size:12px}.control-table-wrap td small{display:block;color:var(--ui-muted);margin-top:3px}.dependency-type{display:inline-flex;padding:5px 9px;border-radius:7px;background:#e8f5f1;color:#08775f;font-weight:750;font-size:11px}.icon-danger{border:0;background:#fff0f1;color:#b83e4a;border-radius:7px;width:30px;height:30px;cursor:pointer}
.control-editor{border-top:1px solid var(--ui-line);padding:0 20px 20px}.control-editor>summary{padding:16px 0;color:var(--ui-emerald-700);font-weight:800;cursor:pointer}.control-editor .form-grid{border:0;padding:0;box-shadow:none}
.register-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(275px,1fr));gap:12px;padding:18px}.register-card{border:1px solid var(--ui-line);border-right:4px solid #d39c28;border-radius:11px;padding:15px;background:#fff}.register-card.severity-critical{border-right-color:#b92d3c}.register-card.severity-high{border-right-color:#e16c3e}.register-card.severity-low{border-right-color:#4b9a82}.register-card.is-closed{opacity:.62}.register-top{display:flex;justify-content:space-between;font-size:11px;color:var(--ui-muted)}.register-top span{font-weight:800;color:var(--ui-emerald-700)}.register-card h3{margin:10px 0 6px;font-size:15px}.register-card p{color:#526479;font-size:12px;line-height:1.9}.register-meta{display:grid;gap:5px;border-top:1px solid var(--ui-line);padding-top:10px;font-size:11px}.response-plan{margin:10px 0;padding:10px;background:#f4f8f7;border-radius:8px;font-size:12px}.response-plan small{display:block;color:var(--ui-muted)}
.calendar-control-form{padding:20px}.calendar-control-form ul{list-style:none;display:flex;gap:8px;flex-wrap:wrap;padding:0}.calendar-control-form ul label{display:flex;align-items:center;gap:5px;border:1px solid var(--ui-line);padding:7px 9px;border-radius:8px}.calendar-control-form textarea{width:100%}
.gantt-grid-shell .ex-gantt-bar.critical{border-color:#b83243!important;box-shadow:0 0 0 2px rgba(184,50,67,.13),0 4px 10px rgba(184,50,67,.18)!important}.gantt-grid-shell .ex-gantt-bar.critical:after{content:"بحرانی";position:absolute;inset-inline-end:5px;top:3px;color:#982634;font-size:8px;font-weight:900;z-index:3}
.item-control-card{padding:20px;margin:16px 0}.control-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--ui-line);border:1px solid var(--ui-line);border-radius:10px;overflow:hidden}.control-facts>div{background:#fff;padding:13px;display:flex;flex-direction:column;gap:5px}.control-facts small,.control-copy small{color:var(--ui-muted)}.control-copy{margin-top:12px;padding:13px;background:#f6f9f8;border-radius:9px}.control-copy p{margin:4px 0 0;white-space:pre-line}
@media(max-width:800px){.control-summary,.control-facts{grid-template-columns:repeat(2,1fr)}.control-intro{align-items:flex-start;gap:18px;flex-direction:column}.control-project-grid{grid-template-columns:1fr}.control-section>.section-title{align-items:flex-start;gap:12px}.control-section>.section-title .toolbar-actions{flex-wrap:wrap}}
@media(max-width:480px){.control-summary,.control-facts{grid-template-columns:1fr}.control-summary>div{border-left:0;border-bottom:1px solid var(--ui-line)}.control-project-stats{grid-template-columns:1fr 1fr 1fr}.register-grid{grid-template-columns:1fr;padding:12px}}

/* Actionable management briefing */
.ex-attention-center { margin: 0 0 22px; }
.ex-attention-total { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: #eef3f5; color: #486174; font-size: 11px; font-weight: 800; }
.ex-attention-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.ex-attention-card { min-width: 0; min-height: 98px; display: grid; grid-template-columns: 10px minmax(0,1fr) auto 20px; align-items: center; gap: 11px; padding: 17px 18px; border-inline-end: 1px solid var(--ui-line); color: var(--ui-text); transition: background .15s ease; }
.ex-attention-card:last-child { border-inline-end: 0; }
.ex-attention-card:hover { background: #f8faf9; }
.ex-attention-mark { width: 8px; height: 34px; border-radius: 8px; background: #7f93a1; }
.ex-attention-card div { min-width: 0; }
.ex-attention-card strong, .ex-attention-card small { display: block; }
.ex-attention-card strong { color: var(--ui-navy-900); font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.ex-attention-card small { margin-top: 3px; color: var(--ui-muted); font-size: 10.5px; line-height: 1.55; }
.ex-attention-card b { min-width: 34px; color: var(--ui-navy-900); font-size: 25px; font-weight: 850; text-align: center; font-variant-numeric: tabular-nums; }
.ex-attention-arrow { color: #8295a2; font-size: 17px; opacity: 0; transform: translateX(4px); transition: .15s ease; }
.ex-attention-card:hover .ex-attention-arrow { opacity: 1; transform: none; }
.ex-attention-card.a-risk .ex-attention-mark { background: #c45161; }
.ex-attention-card.a-unscheduled .ex-attention-mark { background: #d19a2f; }
.ex-attention-card.a-unassigned .ex-attention-mark { background: #6c79a8; }
.ex-attention-card.a-due .ex-attention-mark { background: #16856d; }

/* Work hierarchy — compact, calm and unmistakable levels */
.executive-app .ex-workspace-toolbar { gap: 12px; padding: 14px 18px; background: #fff; }
.executive-app .ex-tabs { padding: 4px; border-radius: 10px; background: #f0f4f6; }
.executive-app .ex-tabs a { min-height: 37px; padding: 7px 11px; border-radius: 7px; color: #526a7b; font-weight: 680; }
.executive-app .ex-tabs a.selected { background: #fff; color: var(--ui-emerald-700); box-shadow: var(--ui-shadow-sm); }
.executive-app .ex-tree-tools { padding: 12px 18px; background: #fafbfc; }
.executive-app .ex-table-scroll[data-project-workspace] { padding: 0 16px 16px; background: #f7f9fa; }
.executive-app .ex-tree { border-color: var(--ui-line); border-radius: 10px; font-size: 13.5px; }
.executive-app .ex-tree th { color: #486174; font-size: 12px; font-weight: 800; }
.executive-app .ex-tree td { padding: 12px 13px !important; font-size: 13px; }
.executive-app .ex-tree .ex-item-title { font-size: 13.5px; }
.executive-app .ex-kind-label { font-size: 10px; font-weight: 800; }
.executive-app .ex-disclosure { border-color: #cbd8df; border-radius: 7px; }
.executive-app .ex-disclosure:hover { border-color: #78ad9e; background: var(--ui-emerald-100); }
.executive-app .ex-tree .ex-kind-project :is(.ex-kind-label, .ex-item-title),
.executive-app .ex-tree .ex-kind-project .ex-tree-copy small bdi { color: #8b5d08; }
.executive-app .ex-tree .ex-kind-activity :is(.ex-kind-label, .ex-item-title),
.executive-app .ex-tree .ex-kind-activity .ex-tree-copy small bdi { color: #08715e; }
.executive-app .ex-tree .ex-kind-action :is(.ex-kind-label, .ex-item-title),
.executive-app .ex-tree .ex-kind-action .ex-tree-copy small bdi { color: #286ea8; }
.executive-app .ex-tree .ex-kind-single_action :is(.ex-kind-label, .ex-item-title),
.executive-app .ex-tree .ex-kind-single_action .ex-tree-copy small bdi { color: #6b4d9a; }
.executive-app .ex-tree :is(.ex-kind-project, .ex-kind-activity, .ex-kind-action, .ex-kind-single_action) .ex-item-title:hover { filter: brightness(.78); text-decoration-thickness: 1.5px; }
.executive-app .ex-board-card.ex-kind-project :is(.ex-kind-label, strong) { color: #8b5d08; }
.executive-app .ex-board-card.ex-kind-activity :is(.ex-kind-label, strong) { color: #08715e; }
.executive-app .ex-board-card.ex-kind-action :is(.ex-kind-label, strong) { color: #286ea8; }
.executive-app .ex-board-card.ex-kind-single_action :is(.ex-kind-label, strong) { color: #6b4d9a; }
.executive-app .ex-board { gap: 13px; padding: 16px; }
.executive-app .ex-board-column { border: 1px solid var(--ui-line); background: #f5f7f8; }
.executive-app .ex-board-card { box-shadow: var(--ui-shadow-sm); }
@media (min-width: 901px) {
  .executive-app .ex-table-scroll[data-project-workspace] .ex-tree th:first-child,
  .executive-app .ex-table-scroll[data-project-workspace] .ex-tree td:first-child { position: sticky; right: 0; z-index: 3; background: #fff; box-shadow: -1px 0 var(--ui-line), -9px 0 18px rgba(18,48,69,.025); }
  .executive-app .ex-table-scroll[data-project-workspace] .ex-tree th:first-child { z-index: 5; background: #f2f6f8; }
  .executive-app .ex-table-scroll[data-project-workspace] .ex-tree tr:hover td:first-child { background: #f3f8f6; }
}

/* Gantt remains independent: controls and labels never scale with the timeline. */
.executive-app .gantt-viewer { border-color: var(--ui-line-strong); border-radius: var(--ui-radius); box-shadow: var(--ui-shadow-sm); }
.executive-app .gantt-controlbar { min-height: 54px; padding: 9px 13px; background: #f8fafb; }
.executive-app .gantt-icon-button, .executive-app .gantt-fit-button { border-color: var(--ui-line-strong); color: var(--ui-navy-800); }
.executive-app .gantt-zoom-field input { font-size: 13px !important; }
.executive-app .gantt-tree-heading { background: linear-gradient(135deg, var(--ui-navy-900), #24546c); }
.executive-app .gantt-fixed-row.ex-kind-project .gantt-tree-cell :is(.ex-kind-label, strong) { color: #8b5d08; }
.executive-app .gantt-fixed-row.ex-kind-activity .gantt-tree-cell :is(.ex-kind-label, strong) { color: #08715e; }
.executive-app .gantt-fixed-row.ex-kind-action .gantt-tree-cell :is(.ex-kind-label, strong) { color: #286ea8; }
.executive-app .gantt-fixed-row.ex-kind-single_action .gantt-tree-cell :is(.ex-kind-label, strong) { color: #6b4d9a; }
.executive-app .gantt-fixed-head > span { background: #e4ebef; }
.executive-app .gantt-axis-months { background: #dce6eb; }
.executive-app .gantt-axis-days { background: #f2f5f7; }
.executive-app .gantt-top-scroll::-webkit-scrollbar-thumb, .executive-app .gantt-grid-shell .gantt-viewport::-webkit-scrollbar-thumb { background: #71838e; }

/* Events and settings */
.executive-app .event-toolbar { gap: 16px; padding: 14px 16px; }
.executive-app .event-month-nav h2 { color: var(--ui-navy-900); }
.event-nav-button { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--ui-line-strong); border-radius: 9px; background: #fff; color: var(--ui-navy-800); }
.event-nav-button:hover { border-color: #83aa9e; background: #f1f8f6; }
.event-nav-button span { width: 8px; height: 8px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.event-nav-button.next span { transform: rotate(-135deg); }
.executive-app .event-filters { display: flex; align-items: end; gap: 8px; }
.executive-app .event-filters label > span { display: block; margin: 0 2px 4px; color: var(--ui-muted); font-size: 10.5px; font-weight: 700; }
.executive-app .event-day { transition: background .15s; }
.executive-app .event-day:hover { background: #f7faf9; }
.executive-app .ex-settings-grid { gap: 14px; }
.executive-app .ex-setting-card { min-height: 170px; border-color: var(--ui-line); box-shadow: var(--ui-shadow-sm); }
.executive-app .ex-setting-card:hover { border-color: #98bdb3; box-shadow: var(--ui-shadow); transform: translateY(-2px); }

.back-to-top { position: fixed; left: 22px; bottom: 22px; z-index: 25; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--ui-line-strong); border-radius: 12px; background: #fff; color: var(--ui-navy-800); box-shadow: var(--ui-shadow); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .18s; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.connection-notice { position: fixed; inset-inline: max(14px, env(safe-area-inset-left)) 14px; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 210; max-width: 510px; display: grid; grid-template-columns: 12px minmax(0,1fr); gap: 0 10px; align-items: center; padding: 12px 15px; border: 1px solid #e5b8be; border-radius: 12px; background: #fff7f8; color: #873543; box-shadow: 0 14px 45px rgba(62,23,30,.18); }
.connection-notice[hidden] { display: none; }
.connection-notice > span { grid-row: 1 / 3; width: 10px; height: 10px; border-radius: 50%; background: #c34e5f; box-shadow: 0 0 0 5px rgba(195,78,95,.11); }
.connection-notice strong { font-size: 12.5px; }
.connection-notice small { color: #98616a; font-size: 10.5px; }
.is-offline .system-status i { background: #d05c6c; box-shadow: 0 0 0 4px rgba(208,92,108,.11); }

@media (max-height: 800px) and (min-width: 761px) {
  .executive-app .ex-fixed-sidebar .brand { min-height: 94px; flex-direction: row; padding: 8px; text-align: right; }
  .executive-app .brand-logo-frame { width: 61px; height: 61px; }
  .executive-app .ex-fixed-sidebar .brand-logo { width: 53px; height: 53px; }
  .executive-app .ex-fixed-sidebar .brand-copy { width: auto; }
  .executive-app .ex-fixed-sidebar .brand strong { font-size: 13px; text-align: right; }
  .executive-app .ex-fixed-sidebar .brand small { font-size: 9.5px; }
  .executive-app .ex-fixed-sidebar .ex-side-nav a { min-height: 36px; padding-block: 5px; font-size: 13px; }
}

@media (max-width: 1100px) {
  :root { --ui-sidebar: 224px; }
  .executive-app .ex-fixed-sidebar { width: var(--ui-sidebar); }
  .executive-app .utility-clock [data-clock-date] { display: none; }
  .executive-app .form-grid { gap: 16px; }
  .executive-app .dashboard-grid.one-two, .executive-app .dashboard-grid.two-one { grid-template-columns: 1fr; }
  .ex-attention-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ex-attention-card:nth-child(2) { border-inline-end: 0; }
  .ex-attention-card:nth-child(-n+2) { border-bottom: 1px solid var(--ui-line); }
}

@media (max-width: 760px) {
  :root { --ui-sidebar: min(84vw, 290px); }
  .executive-app .ex-fixed-sidebar { width: var(--ui-sidebar); padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom)); transform: translateX(105%); transition: transform .2s ease; box-shadow: -18px 0 60px rgba(6,24,37,.35); }
  .executive-app.nav-open .ex-fixed-sidebar { transform: none; }
  .executive-app.nav-open .sidebar-scrim { display: block; }
  .executive-app .main-shell { margin-right: 0; }
  .executive-app .menu-toggle { display: block; flex: none; }
  .executive-app .utility-bar { min-height: 64px; padding: 9px 12px; gap: 8px; }
  .executive-app .global-search { min-width: 0; height: 42px; }
  .executive-app .global-search kbd { display: none; }
  .executive-app .utility-clock { display: none; }
  .executive-app .user-area > div, .executive-app .user-area > form { display: none; }
  .executive-app .topbar { min-height: 100px; padding: 20px 14px 10px; align-items: flex-start; }
  .executive-app .topbar h1 { font-size: 21px; }
  .executive-app .topbar p { font-size: 12.5px; }
  .executive-app .topbar-actions { margin-right: auto; }
  .executive-app .topbar-actions .refresh-button { display: none; }
  .executive-app .content { padding: 10px 12px 32px; }
  .executive-app .page-footer { padding-inline: 14px; }
  .executive-app .page-footer small { display: none; }
  .executive-app .form-grid { grid-template-columns: 1fr; }
  .executive-app .form-field { grid-column: auto !important; }
  .executive-app .edit-form > .toolbar-actions { bottom: 6px; }
  .executive-app .filter-bar { align-items: stretch; }
  .executive-app .filter-bar > *, .executive-app .filter-bar .search-box { min-width: 100%; flex: 1 1 100%; }
  .executive-app .filter-bar > .btn { min-width: 0; flex: 1 1 calc(50% - 5px); }
  .executive-app .employee-hero { align-items: flex-start; padding: 18px; }
  .executive-app .employee-hero .profile-actions { width: 100%; grid-template-columns: repeat(2, minmax(0,1fr)); }
  .executive-app .employee-tabs { padding-inline: 5px; }
  .executive-app .employee-workspace-panel .tab-panel { padding: 15px; }
  .employee-report-grid { grid-template-columns: 1fr; }
  .executive-app .detail-strip { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .executive-app .detail-strip > div { padding: 14px; }
  .employee-directory-head { align-items: flex-start; }
  .executive-app .event-filters { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); width: 100%; }
  .back-to-top { left: 14px; bottom: 14px; }
  .sidebar-compact-toggle { display: none; }
}

@media (pointer: coarse) {
  .executive-app :where(.btn, .icon-btn, .menu-toggle, .event-nav-button, .sidebar-compact-toggle) { min-height: 44px; }
  .executive-app .ex-fixed-sidebar .ex-side-nav a { min-height: 44px; }
}

@media (forced-colors: active) {
  .executive-app .ex-fixed-sidebar .ex-side-nav a.active { outline: 2px solid CanvasText; outline-offset: -2px; }
  .system-status i { border: 1px solid CanvasText; }
}

@media (max-width: 560px) {
  .executive-app .topbar { gap: 8px; }
  .executive-app .topbar-actions .page-back { width: 40px; min-width: 40px; padding: 0; font-size: 0; }
  .executive-app .topbar-actions .page-back span { font-size: 18px; }
  .executive-app .employee-hero { gap: 14px; }
  .executive-app .employee-avatar { width: 58px; height: 58px; flex-basis: 58px; border-radius: 15px; font-size: 23px; }
  .executive-app .employee-hero h2 { font-size: 19px; }
  .executive-app .employee-hero .profile-actions { grid-template-columns: 1fr; }
  .executive-app .detail-strip { grid-template-columns: 1fr 1fr; }
  .executive-app .ex-kpis { grid-template-columns: 1fr 1fr; }
  .executive-app .ex-kpi { min-height: 102px; }
  .executive-app .ex-kpi strong { font-size: 25px; }
  .executive-app .event-filters { grid-template-columns: 1fr; }
  .employee-directory-head { flex-direction: column; }
  .employee-directory-head .btn { width: 100%; }
  .ex-attention-grid { grid-template-columns: 1fr; }
  .ex-attention-card { min-height: 82px; border-inline-end: 0; border-bottom: 1px solid var(--ui-line); }
  .ex-attention-card:last-child { border-bottom: 0; }
  .ex-attention-card:nth-child(-n+2) { border-bottom: 1px solid var(--ui-line); }
}

/* With JS, simple tables become readable cards on narrow phones. */
@media (max-width: 640px) {
  .js-responsive-table table[data-card-table] { min-width: 0 !important; border: 0; }
  .js-responsive-table table[data-card-table] thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .js-responsive-table table[data-card-table] tbody { display: grid; gap: 10px; }
  .js-responsive-table table[data-card-table] tr { display: grid; padding: 5px 13px; border: 1px solid var(--ui-line); border-radius: 11px; background: #fff !important; box-shadow: var(--ui-shadow-sm); }
  .js-responsive-table table[data-card-table] td { display: grid; grid-template-columns: minmax(92px, .7fr) minmax(0, 1.3fr); gap: 10px; align-items: center; padding: 9px 0; border: 0; border-bottom: 1px solid #edf1f3; font-size: 12.5px; }
  .js-responsive-table table[data-card-table] td:last-child { border-bottom: 0; }
  .js-responsive-table table[data-card-table] td::before { content: attr(data-label); color: var(--ui-muted); font-size: 10.5px; font-weight: 750; }
  .js-responsive-table table[data-card-table] td[colspan] { display: block; }
  .js-responsive-table table[data-card-table] td[colspan]::before { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .executive-app *, .executive-app *::before, .executive-app *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

@media print {
  .back-to-top, .sidebar-scrim { display: none !important; }
  .executive-app .panel, .executive-app .surface, .executive-app .ex-surface { box-shadow: none; }
}

/* Erfan PMO 1.19 — quiet luxury, sharper hierarchy, and a compact dual-calendar clock. */
.executive-app {
  --ui-navy-950: #10283a;
  --ui-navy-900: #17394e;
  --ui-emerald-700: #087965;
  --ui-emerald-600: #15947b;
  --ui-gold-500: #c9a04b;
  --ui-canvas: #f4f6f7;
  --ui-line: #e3e8e9;
  --ui-text: #233a48;
  --ui-muted: #71818a;
  --ui-shadow-sm: 0 3px 12px rgba(17, 43, 57, .045);
  --ui-shadow: 0 14px 38px rgba(17, 43, 57, .075);
}
.executive-app .utility-bar { border-bottom-color: rgba(213,222,224,.8); background: rgba(250,251,251,.94); box-shadow: 0 5px 18px rgba(22,52,67,.025); }
.executive-app .global-search { background: #f0f3f3; }
.executive-app .global-search:focus-within { border-color: #b9d4cc; }
.executive-app .topbar { padding-top: 27px; }
.executive-app .topbar h1 { letter-spacing: -.55px; }
.executive-app .topbar .eyebrow { color: #9a7837; font-size: 10px; letter-spacing: .55px; }
.executive-app :where(.panel, .surface, .ex-surface) { border-color: #e5e9e9; border-radius: 15px; box-shadow: 0 4px 16px rgba(21,49,63,.045); }
.executive-app :where(.panel, .surface, .ex-surface):hover { border-color: #d7e1df; }
.executive-app .ex-kpi, .executive-app .ex-attention-card, .executive-app .ex-project-pulse-list > a, .executive-app .ex-report-row { transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
.executive-app .ex-kpi:hover, .executive-app .ex-attention-card:hover, .executive-app .ex-project-pulse-list > a:hover, .executive-app .ex-report-row:hover { transform: translateY(-2px); box-shadow: 0 9px 22px rgba(17,43,57,.075); }
.executive-app .btn.primary { border-color: #087965; background: linear-gradient(135deg,#087965,#0c8872); box-shadow: 0 5px 13px rgba(8,121,101,.13); }
.executive-app .btn.primary:hover { background: #076c5b; }
.executive-app .ex-fixed-sidebar { background: linear-gradient(165deg,#10283a 0%,#15374b 56%,#102c3d 100%); box-shadow: -10px 0 36px rgba(8,29,43,.10); }
.executive-app .brand-logo-frame { border-color: #cfab5d; }
.executive-app .ex-fixed-sidebar .ex-side-nav a.active { color: #f2d58e; border-color: rgba(207,171,93,.40); background: linear-gradient(90deg,rgba(255,255,255,.055),rgba(207,171,93,.10)); }
.executive-app .utility-clock { display: grid; grid-template-columns: minmax(126px,auto) minmax(94px,auto) auto; align-items: center; gap: 0; min-height: 44px; padding: 4px 7px; border: 1px solid #e0e7e5; border-radius: 12px; background: linear-gradient(145deg,#fff,#f9fbfa); box-shadow: 0 3px 10px rgba(17,43,57,.035); }
.executive-app .utility-clock:before { display: none; }
.executive-app .date-format-picker { min-width: 0; }
.executive-app .date-format-picker > summary { display: block; max-width: 180px; overflow: hidden; padding: 4px 7px; color: #244253; font-size: 11px; font-weight: 800; text-overflow: ellipsis; }
.executive-app .utility-clock .clock-gregorian { display: block; padding: 4px 10px; border-right: 1px solid #e6ebe9; color: #798991; font-size: 10px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.executive-app .utility-clock .clock-time { display: block; min-width: 68px; padding: 4px 9px 4px 5px; border-right: 1px solid #e6ebe9; color: #087965; font-size: 13px; font-weight: 850; font-variant-numeric: tabular-nums; white-space: nowrap; }
.executive-app .utility-clock .date-format-picker > div { right: 0; }

/* Executive sign-in surface */
.login-page { min-height: 100vh; min-height: 100dvh; overflow: auto; display: grid; place-items: center; padding: clamp(18px,5vh,54px) 18px 20px; color: #1d3442; background: radial-gradient(ellipse at 12% 12%,rgba(201,160,75,.15),transparent 35%),radial-gradient(ellipse at 92% 88%,rgba(21,148,123,.16),transparent 38%),linear-gradient(135deg,#10283a 0%,#183c50 52%,#102b3d 100%) !important; font-family: Vazirmatn,Tahoma,sans-serif; }
.login-stage { width: min(100%,1000px); }
.login-card { display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,.92fr); width: 100%; min-height: 550px; overflow: hidden; border: 1px solid rgba(255,255,255,.74); border-top: 3px solid #c9a04b; border-radius: 25px; background: #fff; box-shadow: 0 32px 90px rgba(3,17,26,.34),0 3px 12px rgba(3,17,26,.10); }
.login-showcase { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; min-width: 0; padding: clamp(30px,5vw,58px); overflow: hidden; color: #fff; background: linear-gradient(155deg,#153b50 0%,#102d40 72%,#0e293a 100%); }
.login-showcase:after { content: ""; position: absolute; z-index: -1; inset: auto -130px -190px auto; width: 430px; height: 430px; border: 1px solid rgba(208,174,99,.28); border-radius: 50%; box-shadow: 0 0 0 34px rgba(208,174,99,.035),0 0 0 72px rgba(208,174,99,.025); }
.login-showcase-glow { position: absolute; z-index: -1; top: -140px; right: -130px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle,rgba(45,132,119,.30),transparent 70%); }
.login-showcase-brand { display: flex; align-items: center; gap: 14px; }
.login-showcase .login-logo-frame { position: relative; z-index: 1; display: grid; place-items: center; width: 78px; height: 78px; flex: 0 0 78px; overflow: hidden; padding: 3px; border: 1px solid #d1ad61; border-radius: 50%; background: #fff; box-shadow: 0 8px 25px rgba(0,0,0,.20); }
.login-showcase .login-logo { display: block; width: 100% !important; height: 100% !important; max-width: 100%; margin: 0; padding: 0; border: 0; border-radius: 50%; background: #fff; object-fit: contain; }
.login-brand .login-logo { width: 100%; height: 100%; margin: 0; border-radius: 50%; object-fit: contain; }
.login-brand-label { color: #e3c77f; font: 800 10px "Segoe UI",sans-serif; letter-spacing: 1.45px; }
.login-showcase-copy { max-width: 390px; margin-block: auto; padding-block: 56px 32px; }
.login-overline { display: inline-block; color: #9b7a3b; font-size: 11px; font-weight: 850; letter-spacing: .2px; }
.login-showcase .login-overline { color: #e1c47d; }
.login-showcase-copy h1 { margin: 12px 0 10px; color: #fff; font-size: clamp(24px,3.5vw,34px); font-weight: 850; line-height: 1.55; }
.login-showcase-copy p { margin: 0; color: #c1d0d7; font-size: 13px; line-height: 2.1; }
.login-showcase-foot { display: flex; align-items: center; gap: 9px; color: #bfd0d8; font-size: 10px; white-space: nowrap; }
.login-live-dot { width: 7px; height: 7px; border-radius: 50%; background: #58c29e; box-shadow: 0 0 0 4px rgba(88,194,158,.13); }
.login-showcase-rule { width: 1px; height: 14px; margin-inline: 2px; background: rgba(255,255,255,.20); }
.login-panel { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: clamp(32px,5vw,62px); }
.login-panel-heading { margin-bottom: 25px; }
.login-panel-heading h2 { margin: 6px 0 7px; color: #17384b; font-size: 23px; font-weight: 850; }
.login-panel-heading p { margin: 0; color: #788991; font-size: 12px; line-height: 1.9; }
.login-panel .login-form { gap: 8px; }
.login-panel .login-form label { margin-top: 8px; color: #425a66; font-size: 11px; font-weight: 780; }
.login-panel .login-form input { min-height: 49px; padding: 12px 14px; border: 1px solid #dfe7e6; border-radius: 10px; background: #fbfcfc; color: #213b49; box-shadow: none; direction: ltr; text-align: left; transition: border-color .16s ease,background-color .16s ease,box-shadow .16s ease; }
.login-panel .login-form input:focus { border-color: #5fa58f; background: #fff; box-shadow: 0 0 0 4px rgba(21,148,123,.10); }
.login-panel .login-form .btn { display: flex; align-items: center; justify-content: space-between; min-height: 49px; margin-top: 16px; padding-inline: 16px; border-radius: 10px; font-size: 12.5px; }
.login-panel .login-form .btn span:last-child { font-size: 18px; transition: transform .16s ease; }
.login-panel .login-form .btn:hover span:last-child { transform: translateX(-3px); }
.login-panel .security-note { display: flex; align-items: flex-start; gap: 8px; margin-top: 23px; padding-top: 16px; border-top: 1px solid #edf0ef; color: #788991; font-size: 10px; line-height: 1.8; }
.login-panel .security-note > span:first-child { color: #aa8743; font-size: 15px; line-height: 1.1; }
.login-panel .message { margin-bottom: 14px; }
.login-footer { padding-top: 16px; color: rgba(226,237,240,.60); font: 700 9px "Segoe UI",sans-serif; letter-spacing: 1.1px; text-align: center; }
.login-footer span { padding-inline: 7px; color: #d1ab5d; }
@media (max-width: 760px) {
  .executive-app .utility-clock { display: grid; grid-template-columns: minmax(112px,1fr) auto auto; width: 100%; flex: 1 0 100%; order: 5; margin: 1px 0 0; padding: 3px 5px; }
  .executive-app .utility-clock [data-clock-date] { display: inline; }
  .executive-app .date-format-picker > summary { max-width: 100%; font-size: 10px; }
  .executive-app .utility-clock .clock-gregorian { padding-inline: 7px; font-size: 9px; }
  .executive-app .utility-clock .clock-time { min-width: 61px; padding-inline: 7px 3px; font-size: 12px; }
  .login-card { grid-template-columns: 1fr; min-height: 0; border-radius: 20px; }
  .login-showcase { min-height: 210px; padding: 22px 25px; }
  .login-logo-frame { width: 58px; height: 58px; }
  .login-showcase-copy { margin: 22px 0 0; padding: 0; }
  .login-showcase-copy h1 { margin: 5px 0 2px; font-size: 21px; }
  .login-showcase-copy p { font-size: 11px; }
  .login-showcase-foot { display: none; }
  .login-panel { padding: 28px 25px 24px; }
  .login-panel-heading { margin-bottom: 16px; }
}
@media (max-width: 400px) {
  .login-page { padding: 10px; }
  .login-showcase { min-height: 190px; padding: 17px 18px; }
  .login-panel { padding: 23px 18px; }
  .login-panel-heading h2 { font-size: 20px; }
  .login-footer { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .login-page *, .login-page *::before, .login-page *::after { transition: none !important; animation: none !important; }
}
