/* Desktop Dashboard control center. Visual tokens live in desktop-v2.css.
   This sheet only lays out the dashboard surface. */

#desktop-control-root[hidden],
.dc-header-chrome[hidden],
.dc-passport-rows {
  display: none;
}

@media (max-width: 768px) {
  #desktop-control-root,
  .dc-header-chrome,
  .dc-passport-rows {
    display: none !important;
  }
}

@media (min-width: 769px) {
  .dc-header-chrome:not([hidden]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  #main-app .dc-header-clock,
  [data-theme="dark"] #main-app .dc-header-clock {
    margin-left: auto;
    margin-right: 12px;
    color: var(--dv2-header-clock, rgba(255, 255, 255, 0.85)) !important;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
  }

  #main-app:has(#desktop-profile-dashboard.is-control) .app-container {
    padding-top: 0 !important;
  }

  #main-app #user-tab #user-overview-section:has(#desktop-profile-dashboard.is-control) {
    background: var(--dv2-paper, #f4f6fa) !important;
    color: var(--dv2-ink, #172033);
    margin: 0 !important;
    padding: 18px 20px 28px !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  /* Desktop tab-content adds 20px 24px at >=1024px. Pull the dashboard
     back so the hero starts one mockup wrap below the header, with no rule. */
  @media (min-width: 1024px) {
    #main-app #user-tab #user-overview-section:has(#desktop-profile-dashboard.is-control) {
      margin: -20px -24px 0 !important;
    }
  }

  #main-app #desktop-profile-dashboard.is-control {
    border: 0 !important;
    padding: 0 !important;
    margin-top: 0 !important;
  }

  #desktop-profile-dashboard.is-control {
    --dc-navy: var(--dv2-navy, #16324f);
    --dc-ink: var(--dv2-ink, #172033);
    --dc-muted: var(--dv2-muted, #5b6578);
    --dc-line: var(--dv2-line, #e6ebf2);
    --dc-paper: var(--dv2-paper, #f4f6fa);
    --dc-card: var(--dv2-card, #ffffff);
    --dc-brand: var(--dv2-brand, #e27a2a);
    --dc-brand-soft: var(--dv2-brand-soft, #fff1e4);
    --dc-ok: var(--dv2-ok, #14804a);
    --dc-ok-soft: var(--dv2-ok-soft, #e7f7ee);
    --dc-warn: var(--dv2-warn, #c47b12);
    --dc-warn-soft: var(--dv2-warn-soft, #fff4e0);
    --dc-danger: var(--dv2-danger, #c03636);
    --dc-danger-soft: var(--dv2-danger-soft, #fdecec);
    --dc-info: var(--dv2-info, #2b6cb0);
    --dc-info-soft: var(--dv2-info-soft, #e8f1fb);
    --dc-shadow: var(--dv2-shadow, 0 10px 30px rgba(22, 50, 79, 0.06));
    --dc-radius: var(--dv2-radius, 16px);
    gap: 14px;
    color: var(--dc-ink);
  }

  #desktop-profile-dashboard.is-control > .desktop-profile-hero,
  #desktop-profile-dashboard.is-control > .desktop-profile-metrics,
  #desktop-profile-dashboard.is-control > .desktop-profile-agenda-panel,
  #desktop-profile-dashboard.is-control .dc-legacy-note {
    display: none !important;
  }

  #desktop-profile-dashboard .dc-passport-title { display: none; }
  #desktop-profile-dashboard.is-control .dc-legacy-passport-title { display: none; }
  #desktop-profile-dashboard.is-control .dc-passport-title { display: inline; }

  #desktop-profile-dashboard.is-control .dc-passport-rows {
    display: grid;
  }

  #desktop-control-root {
    display: grid;
    gap: 14px;
  }

  #main-app #desktop-profile-dashboard.is-control .dc-hero,
  [data-theme="dark"] #main-app #desktop-profile-dashboard.is-control .dc-hero {
    background: linear-gradient(135deg, #17324e, #21507a 55%, #16324f) !important;
    color: #fff !important;
    border-radius: 18px;
    padding: 18px 20px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
    align-items: center;
    border: 0 !important;
    box-shadow: none !important;
  }

  #main-app #desktop-profile-dashboard.is-control .dc-kicker,
  [data-theme="dark"] #main-app #desktop-profile-dashboard.is-control .dc-kicker {
    color: #f0b27a !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    margin-bottom: 4px;
  }

  #main-app #desktop-profile-dashboard.is-control .dc-hero h2,
  [data-theme="dark"] #main-app #desktop-profile-dashboard.is-control .dc-hero h2 {
    margin: 0 0 6px;
    color: #fff !important;
    font-size: 24px;
    letter-spacing: -0.3px;
    font-weight: 800;
  }

  #main-app #desktop-profile-dashboard.is-control .dc-hero p,
  [data-theme="dark"] #main-app #desktop-profile-dashboard.is-control .dc-hero p {
    margin: 0;
    color: #d7e3ef !important;
    font-size: 13.5px;
    max-width: 62ch;
    line-height: 1.45;
  }

  #desktop-profile-dashboard.is-control .dc-hero-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  #desktop-profile-dashboard.is-control .dc-btn {
    border: 0;
    border-radius: 10px;
    padding: 10px 13px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
  }

  #desktop-profile-dashboard.is-control .dc-btn-primary {
    background: var(--dc-brand);
    color: #fff;
  }

  #desktop-profile-dashboard.is-control .dc-btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.16);
  }

  #desktop-profile-dashboard.is-control .dc-btn-line {
    background: #fff;
    color: var(--dc-ink);
    border: 1px solid var(--dc-line);
  }

  #desktop-profile-dashboard.is-control .dc-metrics-wrap {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  #desktop-profile-dashboard.is-control .dc-metrics {
    display: contents;
  }

  #desktop-profile-dashboard.is-control .dc-metric {
    background: var(--dc-card);
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius) !important;
    padding: 14px 14px 12px;
    box-shadow: var(--dc-shadow);
    min-height: 102px;
  }

  #desktop-profile-dashboard.is-control .dc-metric.is-alert {
    border-color: #f3c2c2;
    background: linear-gradient(#fff, #fff8f8);
  }

  #desktop-profile-dashboard.is-control .dc-metric.is-ok {
    border-color: #cde9d8;
  }

  #desktop-profile-dashboard.is-control .dc-label {
    color: var(--dc-muted);
    font-size: 12px;
    font-weight: 700;
  }

  #desktop-profile-dashboard.is-control .dc-value {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.6px;
    margin: 6px 0 4px;
    color: var(--dc-ink);
    line-height: 1.1;
  }

  #desktop-profile-dashboard.is-control .dc-denom {
    font-size: 16px;
    color: var(--dc-muted);
    font-weight: 700;
  }

  #desktop-profile-dashboard.is-control .dc-hint {
    color: var(--dc-muted);
    font-size: 12px;
    line-height: 1.35;
  }

  #desktop-profile-dashboard.is-control .dc-text-link {
    border: 0;
    background: transparent;
    color: #b85a12;
    font-weight: 800;
    font-size: 12px;
    padding: 0;
    cursor: pointer;
  }

  #desktop-profile-dashboard.is-control .dc-pill {
    display: inline-flex;
    border-radius: 999px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 800;
  }

  #desktop-profile-dashboard.is-control .dc-pill-danger { background: var(--dc-danger-soft); color: var(--dc-danger); }
  #desktop-profile-dashboard.is-control .dc-pill-ok { background: var(--dc-ok-soft); color: var(--dc-ok); }
  #desktop-profile-dashboard.is-control .dc-pill-warn { background: var(--dc-warn-soft); color: var(--dc-warn); }
  #desktop-profile-dashboard.is-control .dc-pill-info { background: var(--dc-info-soft); color: var(--dc-info); }

  #desktop-profile-dashboard.is-control .dc-grid {
    display: grid;
    grid-template-columns: 1.55fr 0.95fr;
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  #dc-team-card[hidden] { display: none !important; }

  #desktop-profile-dashboard.is-control .dc-grid.is-single {
    grid-template-columns: 1fr;
  }

  #desktop-profile-dashboard.is-control .dc-card,
  #desktop-profile-dashboard.is-control .desktop-profile-panel {
    background: var(--dc-card);
    border: 1px solid var(--dc-line) !important;
    border-radius: var(--dc-radius) !important;
    box-shadow: var(--dc-shadow) !important;
    color: var(--dc-ink);
  }

  #desktop-profile-dashboard.is-control .dc-card {
    padding: 14px 14px 12px;
  }

  #desktop-profile-dashboard.is-control .dc-card-h,
  #desktop-profile-dashboard.is-control .desktop-profile-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    border-bottom: 0;
    min-height: 0;
    padding: 0 0 4px;
  }

  #desktop-profile-dashboard.is-control .dc-card-h h3,
  #desktop-profile-dashboard.is-control .desktop-profile-panel-head h3 {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: var(--dc-ink);
  }

  #desktop-profile-dashboard.is-control .dc-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }

  #desktop-profile-dashboard.is-control .dc-tab {
    border: 1px solid var(--dc-line);
    background: #fff;
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 11px;
    font-weight: 700;
    color: #667085;
    cursor: pointer;
  }

  #desktop-profile-dashboard.is-control .dc-tab.is-on {
    background: var(--dc-brand-soft);
    border-color: #f2c9a3;
    color: #b85a12;
  }

  #desktop-profile-dashboard.is-control .dc-task {
    display: grid;
    grid-template-columns: 8px 1fr auto;
    gap: 10px;
    align-items: start;
    width: 100%;
    padding: 10px 8px;
    border: 0;
    border-top: 1px solid #eef2f7;
    background: transparent;
    text-align: left;
    cursor: pointer;
    color: inherit;
  }

  #desktop-profile-dashboard.is-control .dc-task:first-child {
    border-top: 0;
  }

  #desktop-profile-dashboard.is-control .dc-bar {
    width: 8px;
    min-height: 34px;
    border-radius: 99px;
  }

  #desktop-profile-dashboard.is-control .dc-bar-red { background: #e35b5b; }
  #desktop-profile-dashboard.is-control .dc-bar-amber { background: #e2a336; }
  #desktop-profile-dashboard.is-control .dc-bar-blue { background: #4c86c8; }

  #desktop-profile-dashboard.is-control .dc-task b {
    display: block;
    font-size: 13.5px;
    color: var(--dc-ink);
  }

  #desktop-profile-dashboard.is-control .dc-task small,
  #desktop-profile-dashboard.is-control .dc-person small,
  #desktop-profile-dashboard.is-control .dc-row span {
    color: var(--dc-muted);
    font-size: 12px;
  }

  #desktop-profile-dashboard.is-control .dc-empty {
    border: 1px dashed #d5dde8;
    border-radius: 12px;
    padding: 16px;
    color: var(--dc-muted);
    font-size: 13px;
    text-align: center;
    background: #fafbfd;
  }

  #desktop-profile-dashboard.is-control .dc-people {
    display: grid;
    gap: 8px;
  }

  #desktop-profile-dashboard.is-control .dc-person {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border: 1px solid var(--dc-line);
    border-radius: 12px;
  }

  #desktop-profile-dashboard.is-control .dc-avatar {
    width: 34px;
    height: 34px;
    border-radius: 99px;
    background: #dbe4ee;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 12px;
    color: var(--dc-navy);
    flex: 0 0 34px;
  }

  #desktop-profile-dashboard.is-control .dc-person-copy {
    min-width: 0;
  }

  #desktop-profile-dashboard.is-control .dc-person b,
  #desktop-profile-dashboard.is-control .dc-row b {
    display: block;
    font-size: 13px;
    color: var(--dc-ink);
  }

  #desktop-profile-dashboard.is-control .dc-status {
    margin-left: auto;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
  }

  #desktop-profile-dashboard.is-control .dc-status-in { color: var(--dc-ok); }
  #desktop-profile-dashboard.is-control .dc-status-out { color: var(--dc-danger); }
  #desktop-profile-dashboard.is-control .dc-status-off { color: var(--dc-muted); }

  #desktop-profile-dashboard.is-control .dc-card-foot {
    margin-top: 10px;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 14px;
    align-items: stretch;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 0;
    margin: 0;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid > .desktop-profile-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: auto;
    margin: 0;
    padding: 14px 14px 12px;
    align-self: stretch;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid > .desktop-profile-panel > .desktop-profile-panel-head {
    margin: 0 0 10px;
    padding: 0;
    min-height: 40px;
    border-bottom: 0;
    align-items: center;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-panel-head h3 {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    line-height: 1.25;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-panel-head .btn-secondary {
    margin-left: auto;
    flex: 0 0 auto;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-summary-grid,
  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-skill-grid {
    padding: 0;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-skill-grid {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-content: stretch;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-main-grid .desktop-profile-empty {
    margin: 0;
    flex: 1 1 auto;
    min-height: 116px;
    height: auto;
  }

  #desktop-profile-dashboard.is-control > #hasil-tiga-desktop {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }

  #desktop-profile-dashboard.is-control > #hasil-tiga-desktop .hasil-tiga {
    margin: 0;
    padding: 14px 14px 12px;
    border: 1px solid var(--dc-line);
    border-radius: var(--dc-radius);
    box-shadow: var(--dc-shadow);
    background: var(--dc-card);
    color: var(--dc-ink);
  }

  #desktop-profile-dashboard.is-control > #hasil-tiga-desktop .hasil-tiga-message {
    margin: 0;
  }

  #desktop-profile-dashboard.is-control .dc-passport-rows {
    padding: 0;
    gap: 0;
  }

  #desktop-profile-dashboard.is-control .dc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-top: 1px solid #eef2f7;
    font-size: 13px;
  }

  #desktop-profile-dashboard.is-control .dc-row:first-child {
    border-top: 0;
  }

  #desktop-profile-dashboard.is-control .dc-status-note {
    margin: 8px 0 0;
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 0;
    grid-column: 1 / -1;
  }

  #desktop-profile-dashboard.is-control .dc-status-note strong {
    display: none;
  }

  #desktop-profile-dashboard.is-control .desktop-profile-note-card p,
  #desktop-profile-dashboard.is-control .desktop-profile-skill-card small,
  #desktop-profile-dashboard.is-control .desktop-profile-empty {
    color: var(--dc-muted);
  }

  #desktop-profile-dashboard.is-control .desktop-profile-panel-head .btn-secondary,
  #desktop-profile-dashboard.is-control .desktop-profile-empty .btn-primary {
    border-radius: 10px;
  }

  @media (max-width: 1100px) {
    #desktop-profile-dashboard.is-control .dc-metrics-wrap,
    #desktop-profile-dashboard.is-control .dc-grid,
    #desktop-profile-dashboard.is-control .desktop-profile-main-grid,
    #desktop-profile-dashboard.is-control .dc-hero {
      grid-template-columns: 1fr;
    }

    #desktop-profile-dashboard.is-control .dc-hero-actions {
      justify-content: flex-start;
    }
  }
}
