/* Shared application chrome and director's dashboard. */
.layout {
  --masthead: #13283e;
  --menu-ink: #1c3452;
}
.sidebar {
  background: #fff;
  border-inline-end: 1px solid #d8e0e9;
  color: var(--menu-ink);
}
.brand,
.topbar {
  height: 68px;
  background: var(--masthead);
  color: #fff;
  border: 0;
}
.brand {
  justify-content: center;
  padding: 6px 12px;
}
.brand img {
  display: block;
  width: 156px;
  max-width: 100%;
  height: auto;
}
.mobile-brand {
  display: none;
}
.initial-load {
  background: #13283e;
  color: #e4ebf4;
}
.initial-load img {
  width: min(180px, 70vw);
  height: auto;
}
.initial-load p {
  margin: 0;
}
.sidebar nav {
  padding: 20px 12px 12px;
  scrollbar-color: #bdc8d5 transparent;
}
.nav-group {
  margin-bottom: 18px;
}
.nav-group h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  padding-inline: 12px 8px;
  color: #536783;
  font-size: 9px;
  letter-spacing: 1.25px;
}
.nav-group h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dbe2eb;
}
.nav-group button {
  height: auto;
  min-height: 37px;
  padding: 7px 11px;
  gap: 11px;
  border-radius: 2px;
  color: var(--menu-ink);
  font-size: 12.5px;
  line-height: 1.45;
}
.nav-group button .icon {
  color: #59708c;
}
.nav-group button:hover {
  background: #eef2f7;
  color: #142c4b;
}
.nav-group button.active,
[dir='rtl'] .nav-group button.active {
  color: #fff;
  background: #203d60;
  box-shadow: none;
}
.nav-group button.active .icon {
  color: #e3ebf5;
}
.sidebar-foot {
  background: #edf1f6;
  border-color: #d7e0eb;
  padding: 15px 18px;
}
.workspace-status {
  color: #495e77;
}
.workspace-status i {
  background: #3b5e8b;
}
.side-action {
  color: #1c3a60;
  font-weight: 650;
}
.top-actions {
  flex: none;
}
.breadcrumb {
  min-width: 0;
  overflow: hidden;
  color: #bdcadb;
}
.breadcrumb b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #fff;
}
.breadcrumb > .icon:first-child,
.profile > .icon {
  color: #a7b8cf;
}
.top-search {
  color: #eef3fb;
  border-radius: 3px;
  border-color: #53647a;
  background: #233950;
}
.top-search kbd {
  color: #c0cddd;
  border-color: #58697e;
  background: transparent;
}
.topbar .icon-btn,
.language {
  color: #eaf0f7;
}
.topbar .icon-btn:hover,
.language:hover,
.top-search:hover {
  background: #2c415a;
}
.topbar :focus-visible {
  outline-color: #d0e1fd;
}
.profile {
  color: #fff;
  border-color: #50627a;
}
.profile small {
  color: #b9c8d9;
}
.avatar {
  color: #193554;
  background: #e0e7ef;
  border-color: #d3dde9;
}
.bell i {
  background: #efc27a;
  border-color: var(--masthead);
}

.panel,
.modal {
  border-radius: 4px;
}
.panel {
  box-shadow: none;
}
.btn,
.control-select,
.searchbox,
.tabs button {
  border-radius: 3px;
}
.register thead th {
  background: #233f60;
  color: #f4f7fb;
  border-bottom-color: #233f60;
}
.register tbody tr:nth-child(even) {
  background: #f8fafd;
}
.register tbody tr:hover {
  background: #edf2f9;
}
.page-heading {
  align-items: flex-end;
  padding-block: 6px 16px;
  border-bottom: 1px solid #c7d2df;
}
.detail-panel dl {
  padding-inline: 20px;
}
.topbar .breadcrumb,
.code-link,
.metric strong,
.expiry-table time {
  font-variant-numeric: tabular-nums;
}

.briefing-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 34%);
  min-height: 163px;
  background: white;
  border: 1px solid #d7dfe9;
  border-top: 3px solid #1c385a;
}
.briefing-title {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 17px clamp(18px, 2.15vw, 34px);
}
.briefing-kicker {
  margin: 0 0 5px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.45;
  text-transform: uppercase;
  letter-spacing: 1.15px;
  color: #435c7b;
}
.briefing-title h1 {
  margin: 0;
  font-size: clamp(28px, 2.8vw, 45px);
  letter-spacing: -1.5px;
  color: #152d49;
  font-weight: 630;
  line-height: 1.18;
}
.briefing-division {
  margin: 5px 0 0;
  color: #4d6079;
  font-size: 13px;
}
.briefing-date {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 14px 0 0;
  color: #52647b;
  font-size: 11px;
  line-height: 1.5;
}
.briefing-image {
  position: relative;
  overflow: hidden;
  background: #243d59;
  border-inline-start: 5px solid #d1dbe6;
}
.briefing-image img {
  display: block;
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  object-position: 72% 48%;
  mix-blend-mode: luminosity;
  opacity: 0.96;
}

.portfolio-ledger {
  margin: 18px 0;
  background: #1c3859;
  color: #fff;
}
.portfolio-ledger .section-head {
  margin: 0;
  padding: 10px 18px;
  border-bottom: 1px solid #465b76;
}
.portfolio-ledger h2 {
  color: #fff;
  font-size: 15px;
}
.portfolio-ledger .subtle {
  color: #e0e8f3;
  padding: 5px;
  font-size: 11px;
}
.portfolio-ledger .btn,
.portfolio-ledger .control-select {
  color: #f4f7fb;
  border-color: #6a7d95;
  background: transparent;
  border-radius: 2px;
  min-height: 28px;
}
.portfolio-ledger .control-select select {
  color: #fff;
}
.portfolio-ledger .control-select option {
  color: #152d49;
  background: white;
}
.portfolio-ledger .btn:hover,
.portfolio-ledger .control-select:hover {
  background: #2e4d70;
}
.portfolio-ledger :focus-visible {
  outline: 2px solid #d9e7ff;
  outline-offset: -2px;
}
.portfolio-ledger .metrics {
  grid-template-columns: repeat(var(--ledger-columns, 4), minmax(0, 1fr));
  gap: 0;
}
.portfolio-ledger .metric {
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  border-inline-end: 1px solid #465b76;
  padding: 14px 18px 16px;
  min-height: 102px;
}
.portfolio-ledger .metric:last-child,
.portfolio-ledger .metric:nth-child(4n) {
  border-inline-end: 0;
}
.portfolio-ledger .metric:nth-child(n + 5) {
  border-top: 1px solid #465b76;
}
.portfolio-ledger .metric:hover {
  background: #294869;
}
.portfolio-ledger .metric-head {
  justify-content: space-between;
  gap: 5px;
  color: #f1f5fa;
  font-size: 12px;
  font-weight: 550;
}
.portfolio-ledger .metric-head .icon {
  color: #b9c9dd;
}
.portfolio-ledger .metric strong {
  color: white;
  margin: 6px 0 2px;
  font-weight: 560;
  font-size: 35px;
  line-height: 1.1;
  letter-spacing: -1.6px;
}
.portfolio-ledger .metric small {
  color: #c0cfe0;
  font-size: 11px;
}

.dash-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 16px;
}
.dash-grid .panel-head {
  min-height: 49px;
  border-bottom: 1px solid #dbe2eb;
  padding: 12px 17px;
}
.dash-grid .panel-head h2 {
  font-size: 15px;
}
.dash-grid .chart-legend {
  padding: 15px 18px 0;
}
.chart-rule {
  stroke: #dce3eb;
  stroke-dasharray: 3 4;
}
.chart-opportunities {
  fill: #203f68;
}
.chart-contracts {
  fill: #94a7c1;
}
.expiry-table th {
  font-size: 10.5px;
  background: #f1f4f8;
}
.expiry-table td {
  padding: 9px 14px;
}
.expiry-table th:first-child,
.expiry-table td:first-child {
  padding-inline-start: 17px;
}
.expiry-table td:first-child {
  width: 44%;
}
.expiry-table tbody tr {
  cursor: pointer;
}
.expiry-table tbody tr:hover {
  background: #f4f7fb;
}
.expiry-table small {
  display: block;
  color: #5d6e84;
  font-size: 10px;
  margin-top: 2px;
}
.expiry-table time {
  white-space: nowrap;
  color: #3d526b;
}
.agreement-link {
  text-align: start;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 620;
  color: #1d3d66;
  padding: 0;
}
.agreement-link:hover {
  text-decoration: underline;
}
.dash-grid .alert-list {
  padding: 0 17px;
}
.dash-grid .alert-row,
.dash-grid .alert-row:first-child {
  padding: 12px 0;
}
.dash-grid .alert-icon {
  width: 26px;
  height: 26px;
  background: transparent;
  border-radius: 0;
  color: #45607f;
}
.dash-grid .alert-icon.red {
  color: #a14d43;
}
.dash-grid .alert-icon.amber {
  color: #8c672f;
}
.dash-grid .alert-row em {
  color: #213e63;
  font-size: 16px;
}
.dash-grid .pipeline-chart {
  padding-top: 10px;
}
.dash-grid .pipeline-chart button {
  min-height: 26px;
}
.dash-grid .pipeline-chart button > i,
.dash-grid .pipeline-chart button b {
  height: 5px;
  border-radius: 0;
}
.dash-grid .pipeline-chart button b {
  background: #36577f;
}

html[lang='ar'] .briefing-title h1 {
  letter-spacing: 0;
  font-weight: 700;
  line-height: 1.45;
  font-size: clamp(26px, 2.5vw, 39px);
}
html[lang='ar'] .briefing-kicker,
html[lang='ar'] .nav-group h2 {
  letter-spacing: 0;
}
html[lang='ar'] .briefing-date,
html[lang='ar'] .briefing-division {
  line-height: 1.65;
}
html[lang='ar'] .portfolio-ledger .metric strong {
  letter-spacing: 0;
  line-height: 1.32;
}
html[lang='ar'] .sidebar nav {
  padding-block: 13px;
}
html[lang='ar'] .nav-group {
  margin-bottom: 12px;
}
html[lang='ar'] .nav-group button {
  line-height: 1.65;
  min-height: 37px;
  padding-block: 6px;
}
@media (max-width: 1120px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .expiry-table td,
  .expiry-table th {
    padding-inline: 9px;
  }
  .portfolio-ledger .metric {
    padding-inline: 12px;
  }
  .briefing-header {
    grid-template-columns: minmax(0, 1fr) 29%;
  }
}
@media (max-width: 830px) {
  .topbar {
    height: 57px;
  }
  .mobile-brand {
    display: inline-flex;
    align-items: center;
    flex: none;
  }
  .mobile-brand img {
    display: block;
    width: 86px;
    height: auto;
  }
  .sidebar .nav-group {
    margin-bottom: 14px;
  }
  .briefing-title h1 {
    font-size: 30px;
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
}
@media (max-width: 680px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .briefing-header {
    grid-template-columns: minmax(0, 1fr) 24%;
    min-height: 140px;
  }
  .briefing-title {
    padding: 12px 16px;
  }
  .briefing-date {
    margin-top: 9px;
  }
  .portfolio-ledger .section-head {
    padding: 10px 12px;
    flex-wrap: wrap;
    gap: 7px;
  }
  .portfolio-ledger .section-head .actions {
    gap: 5px;
  }
  .portfolio-ledger .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .portfolio-ledger .metric {
    min-height: 88px;
    padding: 10px 13px;
  }
  .portfolio-ledger .metric:nth-child(2n) {
    border-inline-end: 0;
  }
  .portfolio-ledger .metric:nth-child(n + 3) {
    border-top: 1px solid #465b76;
  }
  .portfolio-ledger .metric strong {
    font-size: 28px;
  }
  .dash-grid .alert-row,
  .dash-grid .alert-row:first-child {
    padding: 9px 0;
  }
}
@media (max-width: 620px) {
  .topbar .breadcrumb {
    display: none;
  }
  .topbar .top-actions {
    margin-inline-start: auto;
  }
}
@media (max-width: 500px) {
  .briefing-header {
    display: block;
  }
  .briefing-image {
    display: none;
  }
  .briefing-title h1 {
    font-size: 28px;
  }
  html[lang='ar'] .briefing-title h1 {
    font-size: 25px;
  }
  .briefing-division {
    font-size: 12px;
  }
  .portfolio-ledger {
    margin: 12px 0;
  }
  .portfolio-ledger .section-head {
    flex-direction: column;
    align-items: stretch;
  }
  .portfolio-ledger .section-head .actions {
    justify-content: flex-end;
  }
  .portfolio-ledger .section-head .subtle {
    margin-inline-end: auto;
  }
  .expiry-table th,
  .expiry-table td {
    padding-inline: 8px;
    font-size: 11px;
  }
  .expiry-table th:first-child,
  .expiry-table td:first-child {
    padding-inline-start: 10px;
  }
  .expiry-table time {
    white-space: normal;
  }
  .page-heading {
    padding-bottom: 12px;
  }
}
