/* DS-CNC customer portal polish */
.ds-cnc-portal-polished {
  background: #f6f8fb;
}

.ds-cnc-portal-polished .navbar {
  min-height: 78px;
  box-shadow: 0 4px 18px rgba(18, 38, 63, 0.06);
}

.ds-cnc-portal-polished .navbar .container,
.ds-cnc-portal-polished .navbar .container-fluid {
  position: relative;
}

.ds-portal-left-logo {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 58px;
  padding: 6px 0 !important;
  margin: 0 auto 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.ds-portal-left-logo img {
  max-height: 48px;
  max-width: 170px;
  object-fit: contain;
}

.ds-portal-week-clock {
  position: absolute;
  left: auto;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #173d68;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ds-portal-week-clock-separator {
  color: #00a66b;
  font-weight: 900;
}

.ds-portal-account-hidden,
.ds-cnc-portal-polished #website-post-login,
.ds-cnc-portal-polished .btn-login-area {
  display: none !important;
}

.ds-portal-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 64px;
  min-width: 250px;
  padding: 8px 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(18, 38, 63, 0.12);
  z-index: 2;
}

.ds-portal-center-logo img {
  max-height: 50px;
  max-width: 260px;
  object-fit: contain;
}

.ds-cnc-portal-polished > .container {
  max-width: 1180px;
  padding-top: 6px;
}

.ds-cnc-portal-polished .sidebar-column {
  padding-top: 0;
}

.ds-cnc-portal-polished .web-sidebar {
  position: sticky;
  top: 100px;
  padding: 14px;
  border: 1px solid #e5ebf3;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 35px rgba(18, 38, 63, 0.08);
}

.ds-portal-menu .sidebar-item { margin: 3px 0; }

.ds-portal-menu .sidebar-item a {
  display: block;
  padding: 10px 12px;
  border-radius: 2px;
  color: #25364d;
  font-weight: 600;
  text-decoration: none;
}

.ds-portal-menu .sidebar-item a:hover,
.ds-portal-menu .sidebar-item a.active {
  color: #073b78;
  background: linear-gradient(135deg, rgba(32, 137, 220, 0.14), rgba(0, 153, 102, 0.10));
}

.ds-cnc-portal-polished .main-column main.container {
  max-width: none;
  padding: 0 0 40px;
}

.ds-cnc-portal-polished .page-header-wrapper,
.ds-cnc-portal-polished .page-header {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.ds-cnc-portal-polished .page_content {
  min-height: 560px;
}

.ds-dashboard-hero,
.ds-empty-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 22px;
  padding: 28px;
  border-radius: 2px;
  background: radial-gradient(circle at top right, rgba(0, 166, 107, 0.20), transparent 32%), linear-gradient(135deg, #10243f, #0e4f8f 58%, #11885f);
  color: #fff;
  box-shadow: 0 22px 55px rgba(16, 36, 63, 0.20);
}

.ds-dashboard-hero h1,
.ds-empty-hero h1 {
  margin: 4px 0 8px;
  font-size: 32px;
  font-weight: 800;
}

.ds-dashboard-hero h1,
.ds-empty-hero h1 {
  color: #00a66b;
}

.ds-dashboard-hero p,
.ds-empty-hero p { margin: 0; opacity: 0.88; }

.ds-kicker {
  margin: 0 0 4px !important;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  opacity: 0.78;
}

.ds-hero-badge {
  flex: 0 0 180px;
  padding: 18px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.94);
}

.ds-hero-badge img { width: 100%; height: auto; }

.ds-metric-grid,
.ds-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.ds-dashboard-grid { grid-template-columns: 1.4fr 1fr; }

.ds-card {
  border: 1px solid #e4ebf5;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(18, 38, 63, 0.08);
}

.ds-metric {
  padding: 18px;
  overflow: hidden;
  position: relative;
}

.ds-metric:after {
  content: '';
  position: absolute;
  right: -24px;
  top: -24px;
  width: 90px;
  height: 90px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.10;
}

.ds-metric span { display: block; color: #607089; font-weight: 700; }
.ds-metric strong { display: block; margin: 8px 0 4px; color: #182940; font-size: 28px; }
.ds-metric small { display: block; color: #7c8ca4; line-height: 1.35; }
.ds-green { color: #0f9f6e; }
.ds-blue { color: #1771c8; }
.ds-orange { color: #d97904; }
.ds-red { color: #c64545; }

.ds-chart-card,
.ds-dashboard-grid .ds-card,
.ds-placeholder-list { padding: 20px; }
.ds-card h2 { margin: 0 0 14px; font-size: 18px; color: #182940; }
.ds-muted { color: #7c8ca4; font-size: 13px; margin: 12px 0 0; }

.ds-chart-bars {
  height: 180px;
  display: flex;
  align-items: flex-end;
  gap: 14px;
  padding: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, #f7faff, #eef4fb);
}

.ds-chart-bars span {
  flex: 1;
  min-height: 24px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #14946d, #176bb4);
  opacity: 0.88;
}

.ds-quicklinks {
  display: grid;
  gap: 10px;
}

.ds-quicklinks a {
  padding: 12px 14px;
  border-radius: 2px;
  background: #f4f8fc;
  color: #173d68;
  font-weight: 700;
  text-decoration: none;
}

.ds-quicklinks a:hover { background: #e6f0fa; }

.ds-placeholder-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid #eef2f7;
}

.ds-placeholder-row:first-of-type { border-top: 0; }
.ds-placeholder-row strong { display: block; color: #1b2c43; }
.ds-placeholder-row span { display: block; color: #75859c; font-size: 13px; margin-top: 2px; }
.ds-placeholder-row em {
  font-style: normal;
  color: #176bb4;
  background: #edf6ff;
  border-radius: 2px;
  padding: 5px 10px;
  font-weight: 700;
  white-space: nowrap;
}

.ds-page-empty .ds-empty-hero {
  background: linear-gradient(135deg, #142843, #235b92);
}

.ds-empty-icon {
  flex: 0 0 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 36px;
}

@media (max-width: 900px) {
  .ds-portal-center-logo { position: static; transform: none; margin: 8px auto; }
  .ds-dashboard-hero, .ds-empty-hero { align-items: flex-start; flex-direction: column; }
  .ds-metric-grid, .ds-dashboard-grid { grid-template-columns: 1fr; }
  .ds-hero-badge { flex-basis: auto; width: 180px; }
}
