:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --sidebar: #0b1220;
  --sidebar-2: #111b2e;
  --sidebar-hover: #1a2942;
  --primary: #2563eb;
  --primary-2: #1d4ed8;
  --text: #172033;
  --muted: #64748b;
  --border: #e2e8f0;
  --green: #16a34a;
  --green-bg: #dcfce7;
  --yellow: #d97706;
  --yellow-bg: #fef3c7;
  --red: #dc2626;
  --red-bg: #fee2e2;
  --blue-bg: #dbeafe;
  --shadow: 0 8px 28px rgba(15, 23, 42, .06);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, .10);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Arial,
    sans-serif;
  background: var(--bg);
  color: var(--text);
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  overflow-y: auto;
  background: linear-gradient(180deg, #0b1220 0%, #0d1729 100%);
  color: #fff;
  padding: 22px 15px;
}

.brand-area {
  padding: 4px 12px 24px;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
}

.logo span {
  color: #60a5fa;
}

.brand {
  color: #7f8da4;
  font-size: 10px;
  margin-top: 5px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.nav-group {
  margin-bottom: 17px;
}

.nav-title {
  padding: 7px 12px;
  color: #64748b;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nav button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  background: transparent;
  color: #aebbd0;
  padding: 10px 12px;
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  transition: .15s;
}

.nav button:hover {
  background: var(--sidebar-hover);
  color: #fff;
}

.nav button.active {
  background: #1d4ed8;
  color: #fff;
  box-shadow: 0 5px 15px rgba(37, 99, 235, .25);
}

.nav-icon {
  width: 18px;
  text-align: center;
  opacity: .9;
}

.main {
  min-height: 100vh;
  margin-left: 260px;
}

.topbar {
  height: 72px;
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 28px;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.global-search {
  position: relative;
  width: min(440px, 45vw);
}

.global-search input {
  width: 100%;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0 14px 0 38px;
  background: var(--surface-2);
  color: var(--text);
  outline: none;
}

.global-search input:focus {
  border-color: #93c5fd;
  background: #fff;
}

.search-icon {
  position: absolute;
  left: 13px;
  top: 11px;
  color: var(--muted);
}

.user-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-info {
  text-align: right;
  line-height: 1.25;
}

.user-name {
  font-size: 13px;
  font-weight: 700;
}

.user-role {
  font-size: 10px;
  color: var(--muted);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.content {
  padding: 28px;
  max-width: 1800px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 23px;
}

.page-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -.03em;
}

.page-subtitle {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
}

.btn:hover {
  background: var(--surface-2);
}

.btn-primary {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-2);
}

.btn-dark {
  background: #172033;
  color: #fff;
  border-color: #172033;
}

.grid {
  display: grid;
  gap: 17px;
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 19px;
  box-shadow: var(--shadow);
}

.card:hover {
  box-shadow: var(--shadow-lg);
}

.metric-card {
  position: relative;
  overflow: hidden;
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.metric-value {
  margin-top: 7px;
  font-size: 25px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}

.metric-foot {
  margin-top: 9px;
  color: var(--muted);
  font-size: 11px;
}

.metric-accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
}

.metric-accent.green {
  background: var(--green);
}

.metric-accent.yellow {
  background: var(--yellow);
}

.metric-accent.red {
  background: var(--red);
}

.section {
  margin-top: 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 13px;
}

.section-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.section-action {
  color: var(--primary);
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 11px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap;
}

.table td {
  padding: 12px 10px;
  border-bottom: 1px solid #edf1f5;
  font-size: 12px;
  vertical-align: middle;
}

.table tbody tr:hover {
  background: #f8fafc;
}

.clickable {
  cursor: pointer;
}

.work-name {
  font-weight: 700;
  color: var(--text);
}

.work-client {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.badge-green {
  background: var(--green-bg);
  color: #15803d;
}

.badge-yellow {
  background: var(--yellow-bg);
  color: #a16207;
}

.badge-red {
  background: var(--red-bg);
  color: #b91c1c;
}

.badge-blue {
  background: var(--blue-bg);
  color: #1d4ed8;
}

.progress-row {
  min-width: 100px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}

.progress {
  height: 6px;
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: #e8edf3;
}

.progress-bar {
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}

.progress-green {
  background: var(--green);
}

.progress-yellow {
  background: var(--yellow);
}

.progress-red {
  background: var(--red);
}

.alert-item {
  display: flex;
  gap: 11px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f5;
}

.alert-item:last-child {
  border-bottom: 0;
}

.alert-dot {
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--red);
}

.alert-dot.warning {
  background: var(--yellow);
}

.alert-title {
  font-size: 12px;
  font-weight: 700;
}

.alert-text {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.chart {
  height: 230px;
  display: flex;
  align-items: flex-end;
  gap: 9px;
  padding: 18px 4px 0;
  border-bottom: 1px solid var(--border);
}

.chart-column {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.chart-bars {
  height: 185px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}

.bar {
  width: 12px;
  min-height: 3px;
  border-radius: 4px 4px 0 0;
  background: var(--primary);
}

.bar-secondary {
  background: #94a3b8;
}

.chart-label {
  text-align: center;
  color: var(--muted);
  font-size: 9px;
}

.kpi-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}

.kpi-line:last-child {
  border-bottom: 0;
}

.kpi-name {
  color: var(--muted);
  font-size: 11px;
}

.kpi-number {
  font-size: 12px;
  font-weight: 800;
}

.work-card {
  cursor: pointer;
  transition: .15s;
}

.work-card:hover {
  transform: translateY(-2px);
}

.work-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.work-card h3 {
  margin: 0;
  font-size: 14px;
}

.work-location {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.work-progress {
  margin-top: 17px;
}

.work-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 13px;
  color: var(--muted);
  font-size: 10px;
}

.detail-hero {
  background:
    linear-gradient(115deg, #0f172a 0%, #172554 70%, #1d4ed8 100%);
  color: #fff;
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-lg);
}

.detail-hero .muted {
  color: #a8b5ca;
}

.detail-title {
  margin: 0;
  font-size: 25px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.detail-stat {
  padding: 13px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px;
}

.detail-stat-label {
  color: #a8b5ca;
  font-size: 9px;
}

.detail-stat-value {
  margin-top: 5px;
  font-size: 17px;
  font-weight: 800;
}

.timeline {
  position: relative;
  margin-top: 10px;
}

.timeline-item {
  position: relative;
  padding: 0 0 18px 23px;
  border-left: 1px solid #dbe2ea;
}

.timeline-item:last-child {
  border-left-color: transparent;
}

.timeline-dot {
  position: absolute;
  left: -5px;
  top: 2px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
}

.timeline-date {
  color: var(--muted);
  font-size: 9px;
}

.timeline-title {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 700;
}

.timeline-text {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.photo {
  height: 92px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
  background:
    linear-gradient(135deg, #dbeafe, #e2e8f0);
}

.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.filter {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 11px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  outline: none;
}

.financial-positive {
  color: var(--green);
  font-weight: 800;
}

.financial-negative {
  color: var(--red);
  font-weight: 800;
}

.financial-warning {
  color: var(--yellow);
  font-weight: 800;
}

.summary-box {
  padding: 15px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}

.summary-label {
  color: var(--muted);
  font-size: 10px;
}

.summary-value {
  margin-top: 5px;
  font-size: 20px;
  font-weight: 800;
}

.empty {
  padding: 45px;
  text-align: center;
  color: var(--muted);
}

.presentation {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  background: #0b1220;
  color: #fff;
  padding: 45px;
}

.presentation.active {
  display: block;
}

.presentation-close {
  position: absolute;
  top: 20px;
  right: 25px;
  border: 0;
  background: rgba(255,255,255,.1);
  color: #fff;
  padding: 10px 15px;
  border-radius: 8px;
}

.presentation h1 {
  margin: 0;
  font-size: 42px;
}

.presentation-subtitle {
  margin-top: 8px;
  color: #94a3b8;
}

.presentation-grid {
  margin-top: 35px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.presentation-card {
  padding: 25px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
}

.presentation-card-label {
  color: #94a3b8;
  font-size: 11px;
}

.presentation-card-value {
  margin-top: 8px;
  font-size: 30px;
  font-weight: 800;
}

.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 20%, #1d4ed8 0, transparent 35%),
    linear-gradient(135deg, #080d18, #172554);
}

.login-box {
  width: 410px;
  padding: 38px;
  background: rgba(255,255,255,.98);
  border-radius: 18px;
  box-shadow: 0 30px 90px rgba(0,0,0,.35);
}

.login-logo {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.05em;
}

.login-logo span {
  color: var(--primary);
}

.login-subtitle {
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 12px;
  margin-bottom: 10px;
  outline: none;
}

.login-button {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
}

.login-demo {
  margin-top: 14px;
  color: var(--muted);
  text-align: center;
  font-size: 10px;
}

.mobile-toggle {
  display: none;
}

@media (max-width: 1250px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: .2s;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main {
    margin-left: 0;
  }

  .mobile-toggle {
    display: block;
    border: 0;
    background: transparent;
    font-size: 20px;
  }

  .topbar {
    padding: 0 15px;
  }

  .global-search {
    width: 45vw;
  }

  .content {
    padding: 18px;
  }

  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .presentation-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .user-info {
    display: none;
  }

  .global-search {
    width: 55vw;
  }

  .detail-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-header {
    flex-direction: column;
  }

  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   ProjectControl — ETAPA 09
   Ajustes Obra 360°
   ============================================================ */

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 45px rgba(255,255,255,.025),
    0 0 0 90px rgba(255,255,255,.018);
  pointer-events: none;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-stat-value {
  white-space: nowrap;
}

.summary-box {
  min-height: 74px;
}

.work-card {
  min-height: 165px;
}

.work-card h3 {
  line-height: 1.35;
}

.table td small {
  color: var(--muted);
  font-size: 9px;
}

.section + .section {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================================
   ProjectControl — ETAPA 09
   Ajustes Obra 360°
   ============================================================ */

.detail-hero {
  position: relative;
  overflow: hidden;
}

.detail-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -170px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow:
    0 0 0 45px rgba(255,255,255,.025),
    0 0 0 90px rgba(255,255,255,.018);
  pointer-events: none;
}

.detail-hero > * {
  position: relative;
  z-index: 1;
}

.detail-stat-value {
  white-space: nowrap;
}

.summary-box {
  min-height: 74px;
}

.work-card {
  min-height: 165px;
}

.work-card h3 {
  line-height: 1.35;
}

.table td small {
  color: var(--muted);
  font-size: 9px;
}

.section + .section {
  margin-top: 20px;
}

@media (max-width: 1100px) {
  .detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* ============================================================
   ProjectControl — ETAPA 11
   Login + Perfis
   ============================================================ */

.login-label {
  display: block;
  text-align: left;
  margin: 13px 0 6px;
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.demo-label {
  margin: 20px 0 4px;
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
}

.login-error {
  min-height: 18px;
  margin-top: 8px;
  color: #dc2626;
  font-size: 11px;
  font-weight: 700;
}

.demo-access {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #e2e8f0;
}

.demo-access-title {
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.demo-users {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.demo-user {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  color: #334155;
  cursor: pointer;
  text-align: left;
}

.demo-user:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.demo-user strong {
  color: #1e40af;
  font-size: 9px;
}

.demo-user span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 9px;
}

.logout-button {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 16px;
}

.logout-button:hover {
  background: #f1f5f9;
  color: #0f172a;
}

@media (max-width: 700px) {

  .demo-users {
    grid-template-columns: 1fr;
  }

}


/* ============================================================
   ProjectControl — CSV Import
   Autor: Daniel Vieira
   ============================================================ */

.pc-csv-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.pc-csv-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(5px);
}

.pc-csv-modal-content {
    position: relative;
    z-index: 2;
    width: min(1380px, 96vw);
    max-height: 94vh;
    overflow: auto;
    background: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.28);
}

.pc-csv-modal-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 25px;
    cursor: pointer;
}

.pc-csv-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 34px 38px 24px;
}

.pc-csv-header h2 {
    margin: 4px 0 8px;
    font-size: 30px;
    color: #0f172a;
}

.pc-csv-header p {
    margin: 0;
    color: #64748b;
}

.pc-section-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #2563eb;
}

.pc-csv-header-badge {
    padding: 8px 12px;
    border-radius: 999px;
    background: #dbeafe;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 700;
}

.pc-csv-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 20px;
    padding: 0 38px 38px;
}

.pc-csv-main,
.pc-csv-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pc-csv-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 22px;
}

.pc-csv-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.pc-csv-card-title strong {
    display: block;
    color: #0f172a;
    font-size: 15px;
}

.pc-csv-card-title span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 12px;
}

.pc-csv-required {
    padding: 7px 10px;
    border-radius: 8px;
    background: #f1f5f9;
    color: #475569 !important;
    white-space: nowrap;
}

.pc-csv-entities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.pc-csv-entity {
    text-align: left;
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: .2s ease;
}

.pc-csv-entity:hover {
    border-color: #93c5fd;
    transform: translateY(-1px);
}

.pc-csv-entity.active {
    border-color: #2563eb;
    background: #eff6ff;
    box-shadow: inset 0 0 0 1px #2563eb;
}

.pc-csv-entity strong {
    display: block;
    color: #0f172a;
    margin-bottom: 5px;
}

.pc-csv-entity span {
    display: block;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
}

.pc-csv-dropzone {
    min-height: 170px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    background: #f8fafc;
    cursor: pointer;
    text-align: center;
}

.pc-csv-dropzone:hover {
    border-color: #60a5fa;
    background: #eff6ff;
}

.pc-csv-dropzone input {
    display: none;
}

.pc-csv-upload-icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 13px;
    background: #dbeafe;
    color: #2563eb;
    font-size: 24px;
    font-weight: 800;
}

.pc-csv-dropzone strong {
    color: #0f172a;
}

.pc-csv-dropzone span {
    color: #64748b;
    font-size: 12px;
}

.pc-csv-file {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    padding: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.pc-csv-file-icon {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 900;
}

.pc-csv-file div:nth-child(2) {
    flex: 1;
}

.pc-csv-file strong,
.pc-csv-file span {
    display: block;
}

.pc-csv-file span {
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.pc-csv-file button {
    border: 0;
    background: transparent;
    color: #dc2626;
    cursor: pointer;
    font-weight: 700;
}

.pc-csv-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 14px;
}

.pc-csv-summary > div {
    padding: 13px;
    border-radius: 12px;
    background: #f8fafc;
}

.pc-csv-summary strong {
    display: block;
    color: #0f172a;
    font-size: 22px;
}

.pc-csv-summary span {
    color: #64748b;
    font-size: 11px;
}

.pc-csv-table-wrap {
    overflow: auto;
    max-height: 340px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.pc-csv-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.pc-csv-table th,
.pc-csv-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    white-space: nowrap;
}

.pc-csv-table th {
    position: sticky;
    top: 0;
    background: #f8fafc;
    color: #475569;
    font-weight: 800;
}

.pc-csv-table td {
    color: #334155;
}

.pc-csv-status {
    display: inline-block;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
}

.pc-csv-status.valid {
    background: #dcfce7;
    color: #15803d;
}

.pc-csv-status.invalid {
    background: #fee2e2;
    color: #b91c1c;
}

.pc-csv-empty {
    min-height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    color: #64748b;
    text-align: center;
}

.pc-csv-empty strong {
    color: #334155;
}

.pc-csv-more {
    padding: 10px;
    text-align: center;
    color: #64748b;
    font-size: 11px;
}

.pc-csv-help ol {
    margin: 0;
    padding-left: 20px;
}

.pc-csv-help li {
    margin-bottom: 11px;
    color: #475569;
    font-size: 12px;
    line-height: 1.5;
}

.pc-csv-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.pc-csv-columns span {
    padding: 6px 8px;
    border-radius: 7px;
    background: #f1f5f9;
    color: #475569;
    font-size: 11px;
}

.pc-csv-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.pc-btn-primary,
.pc-btn-secondary {
    border: 0;
    border-radius: 10px;
    padding: 11px 16px;
    cursor: pointer;
    font-weight: 700;
}

.pc-btn-primary {
    background: #2563eb;
    color: #fff;
}

.pc-btn-secondary {
    background: #e2e8f0;
    color: #334155;
}

@media (max-width: 900px) {
    .pc-csv-layout {
        grid-template-columns: 1fr;
    }

    .pc-csv-entities {
        grid-template-columns: 1fr;
    }

    .pc-csv-header {
        padding: 25px 20px 20px;
    }

    .pc-csv-layout {
        padding: 0 20px 25px;
    }
}

/* ============================================================
   ProjectControl — Movimento Financeiro
   Autor: Daniel Vieira
   ============================================================ */

.pc-movimento-modal {
    position: fixed;
    inset: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.pc-movimento-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .75);
    backdrop-filter: blur(5px);
}

.pc-movimento-content {
    position: relative;
    z-index: 2;
    width: min(1500px, 97vw);
    max-height: 95vh;
    overflow: auto;
    background: #f8fafc;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0,0,0,.3);
}

.pc-movimento-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 25px;
    cursor: pointer;
}

.pc-movimento-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 36px 22px;
}

.pc-movimento-header h2 {
    margin: 5px 0 7px;
    color: #0f172a;
    font-size: 30px;
}

.pc-movimento-header p {
    margin: 0;
    color: #64748b;
}

.pc-movimento-actions {
    display: flex;
    gap: 9px;
}

.pc-movimento-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(150px, 1fr));
    gap: 12px;
    margin: 0 36px 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.pc-movimento-filters label {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.pc-movimento-filters select {
    width: 100%;
    margin-top: 6px;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
}

.pc-mov-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(150px, 1fr));
    gap: 12px;
    padding: 0 36px 18px;
}

.pc-mov-kpi {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.pc-mov-kpi span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.pc-mov-kpi strong {
    display: block;
    margin: 8px 0 4px;
    color: #0f172a;
    font-size: 20px;
}

.pc-mov-kpi small {
    color: #94a3b8;
    font-size: 10px;
}

.pc-mov-kpi.positive strong {
    color: #15803d;
}

.pc-mov-kpi.negative strong {
    color: #b91c1c;
}

.pc-mov-kpi.highlight {
    border-color: #93c5fd;
    background: #eff6ff;
}

.pc-mov-kpi.highlight strong {
    color: #1d4ed8;
}

.pc-mov-kpi.warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.pc-mov-kpi.warning strong {
    color: #b45309;
}

.pc-movimento-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
    gap: 18px;
    padding: 0 36px 36px;
}

.pc-mov-card {
    overflow: hidden;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #fff;
}

.pc-mov-card-header {
    display: flex;
    justify-content: space-between;
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.pc-mov-card-header strong {
    display: block;
    color: #0f172a;
}

.pc-mov-card-header span {
    display: block;
    margin-top: 3px;
    color: #64748b;
    font-size: 11px;
}

.pc-mov-table-wrap {
    overflow: auto;
    max-height: 570px;
}

.pc-mov-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.pc-mov-table th,
.pc-mov-table td {
    padding: 10px 11px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    white-space: nowrap;
}

.pc-mov-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
}

.pc-mov-table td {
    color: #475569;
}

.pc-mov-table td strong {
    display: block;
    color: #334155;
}

.pc-mov-table td small {
    display: block;
    margin-top: 2px;
    color: #94a3b8;
    font-size: 9px;
}

.pc-mov-type {
    display: inline-block;
    padding: 5px 7px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.pc-mov-type.entrada {
    background: #dcfce7;
    color: #15803d;
}

.pc-mov-type.saida {
    background: #fee2e2;
    color: #b91c1c;
}

.pc-mov-value-positive {
    color: #15803d !important;
    font-weight: 800;
}

.pc-mov-value-negative {
    color: #b91c1c !important;
    font-weight: 800;
}

.pc-mov-empty {
    padding: 50px 20px;
    text-align: center;
    color: #64748b;
}

.pc-mov-work-summary {
    padding: 8px 18px 18px;
}

.pc-mov-work-row {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid #eef2f7;
}

.pc-mov-work-row:last-child {
    border-bottom: 0;
}

.pc-mov-work-row > div:first-child strong {
    display: block;
    color: #334155;
    font-size: 12px;
}

.pc-mov-work-row > div:first-child span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 10px;
}

.pc-mov-work-row small {
    display: block;
    margin-bottom: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.pc-mov-work-row > div:not(:first-child) strong {
    color: #334155;
    font-size: 11px;
}

@media (max-width: 1100px) {
    .pc-mov-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .pc-movimento-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .pc-movimento-header {
        flex-direction: column;
        padding: 25px 20px 18px;
    }

    .pc-movimento-filters {
        grid-template-columns: 1fr 1fr;
        margin: 0 20px 18px;
    }

    .pc-mov-kpis {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px 18px;
    }

    .pc-movimento-grid {
        padding: 0 20px 25px;
    }

    .pc-mov-work-row {
        grid-template-columns: 1fr 1fr;
    }
}

/* ============================================================
   ProjectControl — Financeiro Executivo
   Autor: Daniel Vieira
   ============================================================ */

.pc-financeiro-modal {
    position: fixed;
    inset: 0;
    z-index: 9997;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.pc-financeiro-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(5px);
}

.pc-financeiro-content {
    position: relative;
    z-index: 2;
    width: min(1500px, 97vw);
    max-height: 96vh;
    overflow: auto;
    padding-bottom: 30px;
    border-radius: 24px;
    background: #f8fafc;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .32);
}

.pc-financeiro-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 25px;
    cursor: pointer;
}

.pc-fin-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 36px 20px;
}

.pc-fin-header h2 {
    margin: 5px 0 7px;
    color: #0f172a;
    font-size: 30px;
}

.pc-fin-header p {
    margin: 0;
    color: #64748b;
}

.pc-fin-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pc-fin-actions select {
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
}

.pc-fin-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 0 36px 16px;
}

.pc-fin-kpi {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.pc-fin-kpi span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.pc-fin-kpi strong {
    display: block;
    margin: 8px 0 4px;
    color: #0f172a;
    font-size: 19px;
}

.pc-fin-kpi small {
    color: #94a3b8;
    font-size: 10px;
}

.pc-fin-kpi.positive strong {
    color: #15803d;
}

.pc-fin-kpi.negative strong {
    color: #b91c1c;
}

.pc-fin-kpi.highlight {
    border-color: #93c5fd;
    background: #eff6ff;
}

.pc-fin-kpi.highlight strong {
    color: #1d4ed8;
}

.pc-fin-execution {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    padding: 0 36px 18px;
}

.pc-fin-execution-card {
    padding: 17px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.pc-fin-execution-card > div:first-child {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.pc-fin-execution-card span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.pc-fin-execution-card strong {
    color: #0f172a;
    font-size: 19px;
}

.pc-fin-execution-card small {
    display: block;
    margin-top: 7px;
    color: #94a3b8;
    font-size: 10px;
}

.pc-fin-big-progress {
    height: 8px;
    margin-top: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #e2e8f0;
}

.pc-fin-big-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.pc-fin-big-progress.physical span {
    background: #0f766e;
}

.pc-fin-execution-card.attention {
    border-color: #fde68a;
    background: #fffbeb;
}

.pc-fin-gap {
    margin-top: 18px;
    color: #64748b;
    font-size: 11px;
    line-height: 1.5;
}

.pc-fin-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 18px;
    padding: 0 36px 18px;
}

.pc-fin-card {
    overflow: hidden;
    margin: 0 36px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #fff;
}

.pc-fin-grid .pc-fin-card {
    margin: 0;
}

.pc-fin-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    padding: 18px;
    border-bottom: 1px solid #e2e8f0;
}

.pc-fin-card-header strong {
    display: block;
    color: #0f172a;
}

.pc-fin-card-header span {
    display: block;
    margin-top: 4px;
    color: #64748b;
    font-size: 11px;
}

.pc-fin-card-badge {
    padding: 6px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569 !important;
}

.pc-fin-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 10px;
    min-height: 200px;
    padding: 24px 20px 5px;
}

.pc-fin-chart-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.pc-fin-bars {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    height: 160px;
}

.pc-fin-bar {
    width: 9px;
    min-height: 5px;
    border-radius: 4px 4px 0 0;
}

.pc-fin-bar.budget {
    background: #cbd5e1;
}

.pc-fin-bar.received {
    background: #60a5fa;
}

.pc-fin-bar.spent {
    background: #334155;
}

.pc-fin-chart-column > span {
    margin-top: 8px;
    color: #64748b;
    font-size: 10px;
}

.pc-fin-legend {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 5px 15px 18px;
}

.pc-fin-legend span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #64748b;
    font-size: 10px;
}

.pc-fin-legend i {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

.pc-fin-legend i.budget {
    background: #cbd5e1;
}

.pc-fin-legend i.received {
    background: #60a5fa;
}

.pc-fin-legend i.spent {
    background: #334155;
}

.pc-fin-category-list {
    padding: 18px;
}

.pc-fin-category {
    margin-bottom: 14px;
}

.pc-fin-category:last-child {
    margin-bottom: 0;
}

.pc-fin-category-head {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.pc-fin-category-head span {
    color: #475569;
    font-size: 11px;
}

.pc-fin-category-head strong {
    color: #334155;
    font-size: 11px;
}

.pc-fin-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #eef2f7;
}

.pc-fin-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.pc-fin-category small {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 9px;
}

.pc-fin-work-table-wrap {
    overflow: auto;
}

.pc-fin-work-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.pc-fin-work-table th,
.pc-fin-work-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    white-space: nowrap;
}

.pc-fin-work-table th {
    color: #64748b;
    background: #f8fafc;
    font-size: 10px;
    text-transform: uppercase;
}

.pc-fin-work-table td {
    color: #475569;
}

.pc-fin-work-table td strong {
    color: #334155;
}

.pc-fin-status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.pc-fin-status.normal {
    background: #dcfce7;
    color: #15803d;
}

.pc-fin-status.atencao {
    background: #fef3c7;
    color: #b45309;
}

.pc-fin-status.critico {
    background: #fee2e2;
    color: #b91c1c;
}

.pc-fin-alerts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 36px;
}

.pc-fin-alert {
    padding: 14px;
    border: 1px solid;
    border-radius: 13px;
}

.pc-fin-alert strong {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
}

.pc-fin-alert span {
    color: #64748b;
    font-size: 10px;
    line-height: 1.45;
}

.pc-fin-alert.attention {
    border-color: #fde68a;
    background: #fffbeb;
}

.pc-fin-alert.attention strong {
    color: #b45309;
}

.pc-fin-alert.info {
    border-color: #bfdbfe;
    background: #eff6ff;
}

.pc-fin-alert.info strong {
    color: #1d4ed8;
}

.pc-fin-alert.success {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.pc-fin-alert.success strong {
    color: #15803d;
}

@media (max-width: 1150px) {
    .pc-fin-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .pc-fin-execution {
        grid-template-columns: 1fr 1fr;
    }

    .pc-fin-grid {
        grid-template-columns: 1fr;
    }

    .pc-fin-alerts {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .pc-fin-header {
        flex-direction: column;
        padding: 25px 20px 18px;
    }

    .pc-fin-kpis {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px 16px;
    }

    .pc-fin-execution {
        grid-template-columns: 1fr;
        padding: 0 20px 18px;
    }

    .pc-fin-grid {
        padding: 0 20px 18px;
    }

    .pc-fin-card {
        margin-left: 20px;
        margin-right: 20px;
    }

    .pc-fin-alerts {
        padding: 0 20px;
    }

    .pc-fin-actions {
        width: 100%;
        flex-wrap: wrap;
    }
}

/* ============================================================
   ProjectControl — Obras + Contratos/APFs
   Autor: Daniel Vieira
   ============================================================ */

.pc-obras-contratos-modal {
    position: fixed;
    inset: 0;
    z-index: 9996;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
}

.pc-obras-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, .78);
    backdrop-filter: blur(5px);
}

.pc-obras-content {
    position: relative;
    z-index: 2;
    width: min(1550px, 97vw);
    max-height: 96vh;
    overflow: auto;
    padding-bottom: 30px;
    border-radius: 24px;
    background: #f8fafc;
    box-shadow: 0 30px 90px rgba(0,0,0,.32);
}

.pc-obras-close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 10;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #e2e8f0;
    color: #334155;
    font-size: 25px;
    cursor: pointer;
}

.pc-obras-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 32px 36px 20px;
}

.pc-obras-header h2 {
    margin: 5px 0 7px;
    color: #0f172a;
    font-size: 30px;
}

.pc-obras-header p {
    margin: 0;
    color: #64748b;
}

.pc-obras-header-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pc-obras-header-actions .pc-btn-secondary.active {
    background: #dbeafe;
    color: #1d4ed8;
}

.pc-obras-kpis {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    padding: 0 36px 18px;
}

.pc-obras-kpi {
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    background: #fff;
}

.pc-obras-kpi span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.pc-obras-kpi strong {
    display: block;
    margin: 8px 0 4px;
    color: #0f172a;
    font-size: 19px;
}

.pc-obras-kpi small {
    color: #94a3b8;
    font-size: 10px;
}

.pc-obras-kpi.positive strong {
    color: #15803d;
}

.pc-obras-kpi.negative strong {
    color: #b91c1c;
}

.pc-obras-kpi.highlight {
    border-color: #93c5fd;
    background: #eff6ff;
}

.pc-obras-kpi.highlight strong {
    color: #1d4ed8;
}

.pc-obras-filters {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 12px;
    margin: 0 36px 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    background: #fff;
}

.pc-obras-filters label {
    color: #475569;
    font-size: 11px;
    font-weight: 800;
}

.pc-obras-filters input,
.pc-obras-filters select {
    width: 100%;
    box-sizing: border-box;
    margin-top: 6px;
    padding: 10px 11px;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    background: #fff;
    color: #334155;
}

.pc-obras-table-wrap {
    overflow: auto;
    margin: 0 36px;
    border: 1px solid #e2e8f0;
    border-radius: 17px;
    background: #fff;
}

.pc-obras-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.pc-obras-table th,
.pc-obras-table td {
    padding: 13px 12px;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
    white-space: nowrap;
}

.pc-obras-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    color: #64748b;
    font-size: 10px;
    text-transform: uppercase;
}

.pc-obras-table td {
    color: #475569;
}

.pc-obras-table td strong {
    display: block;
    color: #334155;
}

.pc-obras-table td small {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 9px;
}

.pc-obras-contract {
    display: inline-block;
    padding: 5px 7px;
    border-radius: 7px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 800;
}

.pc-obras-positive {
    color: #15803d !important;
    font-weight: 800;
}

.pc-obras-negative {
    color: #b91c1c !important;
    font-weight: 800;
}

.pc-obras-progress {
    width: 70px;
    height: 6px;
    overflow: hidden;
    margin-bottom: 4px;
    border-radius: 999px;
    background: #e2e8f0;
}

.pc-obras-progress span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #2563eb;
}

.pc-obras-status {
    display: inline-block;
    padding: 5px 8px;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
}

.pc-obras-status.em-execucao,
.pc-obras-status.ativo {
    background: #dcfce7;
    color: #15803d;
}

.pc-obras-status.atencao {
    background: #fef3c7;
    color: #b45309;
}

.pc-obras-status.planejamento {
    background: #dbeafe;
    color: #1d4ed8;
}

.pc-obras-status.concluida,
.pc-obras-status.concluido {
    background: #e2e8f0;
    color: #475569;
}

.pc-obras-open {
    border: 0;
    padding: 7px 9px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 10px;
    font-weight: 800;
}

.pc-obras-open:hover {
    background: #dbeafe;
}

.pc-obras-empty {
    padding: 50px;
    text-align: center;
    color: #64748b;
}

@media (max-width: 1150px) {
    .pc-obras-kpis {
        grid-template-columns: repeat(3, 1fr);
    }

    .pc-obras-filters {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .pc-obras-header {
        flex-direction: column;
        padding: 25px 20px 18px;
    }

    .pc-obras-kpis {
        grid-template-columns: 1fr 1fr;
        padding: 0 20px 18px;
    }

    .pc-obras-filters {
        grid-template-columns: 1fr;
        margin: 0 20px 18px;
    }

    .pc-obras-table-wrap {
        margin: 0 20px;
    }
}

/* ============================================================
   ProjectControl — Orçamento + Execução
   Autor: Daniel Vieira
   ============================================================ */

.pc-orcamento-module {
  animation: pcFadeIn .25s ease;
}

.pc-orcamento-module .pc-module-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.pc-orcamento-module .pc-module-head h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.pc-orcamento-module .pc-module-head p {
  margin: 0;
  color: var(--pc-muted, #64748b);
}

.pc-orcamento-module .pc-module-actions {
  display: flex;
  gap: 10px;
}

.pc-filter-card {
  background: var(--pc-card, #fff);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 20px;
}

.pc-filter-grid {
  display: grid;
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(180px, 1fr));
  gap: 14px;
}

.pc-filter-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.pc-filter-grid label > span {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
}

.pc-filter-grid input,
.pc-filter-grid select {
  width: 100%;
  height: 42px;
  border: 1px solid #dbe2ea;
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: #172033;
  outline: none;
}

.pc-filter-grid input:focus,
.pc-filter-grid select:focus {
  border-color: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, .10);
}

.pc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.pc-kpi-card {
  background: var(--pc-card, #fff);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 16px;
  padding: 18px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.pc-kpi-card span {
  font-size: 12px;
  color: #64748b;
  font-weight: 700;
}

.pc-kpi-card strong {
  font-size: 23px;
  letter-spacing: -0.5px;
  color: #111827;
}

.pc-kpi-card small {
  color: #64748b;
  font-size: 11px;
}

.pc-panel {
  background: var(--pc-card, #fff);
  border: 1px solid var(--pc-border, #e2e8f0);
  border-radius: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}

.pc-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 20px 16px;
}

.pc-panel-head h2 {
  margin: 0 0 4px;
  font-size: 17px;
  color: #172033;
}

.pc-panel-head p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.pc-count {
  background: #f1f5f9;
  color: #475569;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
}

.pc-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.pc-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1050px;
}

.pc-table th {
  background: #f8fafc;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  padding: 12px 16px;
  border-top: 1px solid #edf1f5;
  border-bottom: 1px solid #edf1f5;
}

.pc-table td {
  padding: 14px 16px;
  border-bottom: 1px solid #edf1f5;
  color: #334155;
  font-size: 12px;
  vertical-align: middle;
}

.pc-table tbody tr:hover {
  background: #fafcff;
}

.pc-table td strong {
  display: block;
  color: #172033;
  font-size: 12px;
}

.pc-table td small {
  display: block;
  margin-top: 3px;
  color: #94a3b8;
  font-size: 10px;
}

.pc-progress-wrap {
  min-width: 160px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.pc-progress-wrap > strong {
  white-space: nowrap;
  font-size: 11px;
}

.pc-progress-track {
  position: relative;
  width: 115px;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.pc-progress-plan {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  background: #cbd5e1;
}

.pc-progress-value {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  border-radius: 999px;
  background: #334155;
}

.pc-muted {
  margin-top: 4px;
  color: #94a3b8;
}

.pc-status {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.pc-status-green {
  background: #dcfce7;
  color: #166534;
}

.pc-status-yellow {
  background: #fef3c7;
  color: #92400e;
}

.pc-status-red {
  background: #fee2e2;
  color: #991b1b;
}

.pc-tag {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 7px;
  background: #f1f5f9;
  color: #475569;
  font-size: 10px;
  font-weight: 700;
}

.pc-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  gap: 20px;
}

.pc-chart {
  padding: 4px 20px 16px;
}

.pc-chart-row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 10px;
  margin: 10px 0;
}

.pc-chart-row > span {
  font-size: 10px;
  color: #64748b;
  font-weight: 700;
}

.pc-chart-row > strong {
  font-size: 10px;
  text-align: right;
}

.pc-chart-bars {
  position: relative;
  height: 14px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.pc-chart-bar {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  border-radius: 999px;
}

.pc-chart-plan {
  background: #cbd5e1;
  z-index: 1;
}

.pc-chart-real {
  background: #334155;
  z-index: 2;
  opacity: .9;
}

.pc-chart-legend {
  display: flex;
  gap: 18px;
  padding: 0 20px 20px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.pc-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pc-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.pc-dot-plan {
  background: #cbd5e1;
}

.pc-dot-real {
  background: #334155;
}

.pc-indicator-list {
  padding: 0 20px 20px;
}

.pc-indicator {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
}

.pc-indicator:last-child {
  border-bottom: 0;
}

.pc-indicator span {
  color: #64748b;
  font-size: 12px;
}

.pc-indicator strong {
  color: #172033;
  font-size: 15px;
}

.pc-executive-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  padding: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.pc-executive-highlight h2 {
  margin: 5px 0 8px;
  font-size: 21px;
}

.pc-executive-highlight p {
  margin: 0;
  max-width: 650px;
  color: #64748b;
  line-height: 1.6;
  font-size: 12px;
}

.pc-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  align-items: center;
}

.pc-highlight-grid > div {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 15px;
}

.pc-highlight-grid span {
  display: block;
  color: #64748b;
  font-size: 10px;
  margin-bottom: 6px;
}

.pc-highlight-grid strong {
  font-size: 19px;
  color: #172033;
}

.pc-empty {
  text-align: center !important;
  padding: 45px !important;
  color: #94a3b8 !important;
}

@media (max-width: 1200px) {
  .pc-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pc-executive-highlight {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 850px) {
  .pc-filter-grid,
  .pc-two-col {
    grid-template-columns: 1fr;
  }

  .pc-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-orcamento-module .pc-module-head {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .pc-kpi-grid {
    grid-template-columns: 1fr;
  }

  .pc-highlight-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ProjectControl — Profissionais + Materiais/Serviços
   Autor: Daniel Vieira
   ============================================================ */

.pc-profissionais-module {
  animation: pcFadeIn .25s ease;
}

.pc-filter-grid-extended {
  grid-template-columns: minmax(280px, 2fr) repeat(2, minmax(200px, 1fr));
}

.pc-allocation-list {
  padding: 0 20px 20px;
  max-height: 470px;
  overflow-y: auto;
}

.pc-allocation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 13px 0;
  border-bottom: 1px solid #edf1f5;
}

.pc-allocation-item:last-child {
  border-bottom: 0;
}

.pc-allocation-item strong {
  display: block;
  color: #172033;
  font-size: 12px;
}

.pc-allocation-item span {
  display: block;
  color: #64748b;
  font-size: 10px;
  margin-top: 4px;
}

.pc-resource-summary {
  padding: 0 20px 20px;
}

.pc-resource-line {
  padding: 14px 0;
  border-bottom: 1px solid #edf1f5;
}

.pc-resource-line:last-child {
  border-bottom: 0;
}

.pc-resource-line > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 8px;
}

.pc-resource-line span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.pc-resource-line strong {
  color: #172033;
  font-size: 12px;
}

.pc-resource-track {
  height: 7px;
  width: 100%;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.pc-resource-track span {
  display: block;
  height: 100%;
  background: #334155;
  border-radius: 999px;
}

.pc-profissionais-module .pc-table {
  min-width: 1100px;
}

.pc-profissionais-module .pc-table td {
  white-space: nowrap;
}

.pc-profissionais-module .pc-table td:nth-child(2),
.pc-profissionais-module .pc-table td:nth-child(8),
.pc-profissionais-module .pc-table td:nth-child(9) {
  white-space: normal;
}

@media (max-width: 850px) {
  .pc-filter-grid-extended {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   ProjectControl — Relatórios + Alertas + Insights
   Autor: Daniel Vieira
   ============================================================ */

.pc-relatorios-module,
.pc-alertas-module {
  animation: pcFadeIn .25s ease;
}

.pc-report-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px;
  margin-bottom: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.pc-report-selector button {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 9px 13px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pc-report-selector button:hover {
  background: #e2e8f0;
}

.pc-report-selector button.active {
  background: #172033;
  color: #fff;
}

.pc-report-selector select {
  height: 36px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.pc-report-sheet {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 20px;
}

.pc-report-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-bottom: 1px solid #edf1f5;
}

.pc-report-header h2 {
  margin: 5px 0 5px;
  font-size: 22px;
  color: #172033;
}

.pc-report-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

.pc-report-date {
  color: #94a3b8;
  font-size: 10px;
  white-space: nowrap;
}

.pc-report-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: #e2e8f0;
}

.pc-report-kpis > div {
  background: #fff;
  padding: 16px;
}

.pc-report-kpis span {
  display: block;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.pc-report-kpis strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 16px;
}

.pc-report-section {
  padding: 22px 24px;
  border-top: 1px solid #edf1f5;
}

.pc-report-section h3 {
  margin: 0 0 9px;
  color: #172033;
  font-size: 15px;
}

.pc-report-section p {
  margin: 7px 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.65;
}

.pc-report-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 15px;
}

.pc-report-metric-grid > div {
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 15px;
}

.pc-report-metric-grid span {
  display: block;
  color: #64748b;
  font-size: 10px;
}

.pc-report-metric-grid strong {
  display: block;
  margin-top: 7px;
  color: #172033;
  font-size: 16px;
}

.pc-alert-list {
  padding: 0 20px 20px;
}

.pc-alert-item {
  padding: 16px;
  margin-bottom: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.pc-alert-item:last-child {
  margin-bottom: 0;
}

.pc-alert-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
}

.pc-alert-top > span:last-child {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.pc-alert-item h3 {
  margin: 0 0 6px;
  font-size: 13px;
  color: #172033;
}

.pc-alert-item p {
  margin: 0 0 9px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.pc-alert-item small {
  color: #64748b;
  font-size: 10px;
}

.pc-alert-alto {
  border-left: 3px solid #991b1b;
}

.pc-alert-medio {
  border-left: 3px solid #92400e;
}

.pc-alert-baixo {
  border-left: 3px solid #166534;
}

.pc-insight-list {
  padding: 0 20px 20px;
}

.pc-insight-item {
  padding: 16px 0;
  border-bottom: 1px solid #edf1f5;
}

.pc-insight-item:last-child {
  border-bottom: 0;
}

.pc-insight-type {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.pc-insight-item h3 {
  margin: 8px 0 5px;
  font-size: 13px;
  color: #172033;
}

.pc-insight-item p {
  margin: 0;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

@media (max-width: 1200px) {
  .pc-report-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pc-report-metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .pc-report-header {
    flex-direction: column;
  }

  .pc-report-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pc-report-metric-grid {
    grid-template-columns: 1fr;
  }
}

@media print {
  .pc-module-head,
  .pc-report-selector {
    display: none !important;
  }

  .pc-report-sheet {
    border: 0;
    box-shadow: none;
  }
}

/* ============================================================
   ProjectControl — Busca + Apresentação + Tour
   Autor: Daniel Vieira
   ============================================================ */

#pc-commercial-tools {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 5000;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px;
  border: 1px solid #dbe2ea;
  border-radius: 13px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 35px rgba(15, 23, 42, .14);
  backdrop-filter: blur(12px);
}

.pc-commercial-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  background: transparent;
  color: #475569;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.pc-commercial-button:hover {
  background: #f1f5f9;
  color: #172033;
}

.pc-commercial-button span:first-child {
  font-size: 15px;
}

.pc-commercial-button kbd {
  padding: 3px 5px;
  border: 1px solid #dbe2ea;
  border-radius: 5px;
  background: #f8fafc;
  color: #64748b;
  font-size: 9px;
}

.pc-commercial-primary {
  background: #172033;
  color: #fff;
}

.pc-commercial-primary:hover {
  background: #273449;
  color: #fff;
}

.pc-global-search {
  display: none;
}

body.pc-search-open {
  overflow: hidden;
}

body.pc-search-open .pc-global-search {
  display: block;
}

.pc-search-backdrop {
  position: fixed;
  inset: 0;
  z-index: 7000;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(4px);
}

.pc-search-dialog {
  position: fixed;
  z-index: 7001;
  top: 10vh;
  left: 50%;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 30px));
  max-height: 76vh;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .28);
}

.pc-search-header {
  padding: 15px;
  border-bottom: 1px solid #edf1f5;
}

.pc-search-input-wrap {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 47px;
  padding: 0 12px;
  border: 1px solid #dbe2ea;
  border-radius: 11px;
  background: #f8fafc;
}

.pc-search-icon {
  color: #64748b;
  font-size: 21px;
}

.pc-search-input-wrap input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #172033;
  font-size: 14px;
}

.pc-search-input-wrap kbd {
  padding: 4px 7px;
  border: 1px solid #dbe2ea;
  border-radius: 5px;
  background: #fff;
  color: #64748b;
  font-size: 9px;
}

.pc-search-shortcuts {
  display: flex;
  gap: 14px;
  padding: 9px 17px;
  color: #94a3b8;
  font-size: 9px;
  border-bottom: 1px solid #edf1f5;
}

.pc-search-results {
  max-height: 58vh;
  overflow-y: auto;
  padding: 7px;
}

.pc-search-result {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.pc-search-result:hover {
  background: #f8fafc;
}

.pc-search-result-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
  font-size: 11px;
  font-weight: 900;
}

.pc-search-result-main {
  min-width: 0;
  flex: 1;
}

.pc-search-result-main strong {
  display: block;
  overflow: hidden;
  color: #172033;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-search-result-main small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #94a3b8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pc-search-result-type {
  color: #94a3b8;
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.pc-search-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 45px 20px;
  text-align: center;
}

.pc-search-empty strong {
  color: #172033;
  font-size: 13px;
}

.pc-search-empty span {
  color: #94a3b8;
  font-size: 11px;
}

#pc-presentation-layer {
  display: none;
}

body.pc-presentation-open {
  overflow: hidden;
}

body.pc-presentation-open #pc-presentation-layer {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}

.pc-presentation-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 25px;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
}

.pc-presentation-toolbar strong {
  display: block;
  margin-top: 3px;
  color: #172033;
  font-size: 14px;
}

.pc-presentation-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pc-presentation-actions button {
  min-width: 35px;
  height: 35px;
  border: 1px solid #dbe2ea;
  border-radius: 8px;
  background: #fff;
  color: #475569;
  cursor: pointer;
  font-weight: 800;
}

.pc-presentation-actions button:hover {
  background: #f1f5f9;
}

.pc-presentation-actions button:last-child {
  padding: 0 13px;
}

.pc-presentation-actions span {
  padding: 0 8px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
}

.pc-presentation-content {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 30px;
  overflow-y: auto;
}

.pc-presentation-slide {
  width: min(1050px, 100%);
  text-align: center;
}

.pc-presentation-slide h1 {
  margin: 10px 0;
  color: #172033;
  font-size: clamp(34px, 5vw, 64px);
  letter-spacing: -2px;
}

.pc-presentation-subtitle {
  margin: 0 auto;
  max-width: 700px;
  color: #64748b;
  font-size: 17px;
  line-height: 1.6;
}

.pc-presentation-indicators {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
  margin-top: 45px;
}

.pc-presentation-indicators > div {
  padding: 24px 15px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .05);
}

.pc-presentation-indicators strong {
  display: block;
  color: #172033;
  font-size: 25px;
}

.pc-presentation-indicators span {
  display: block;
  margin-top: 7px;
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.pc-presentation-message {
  margin: 35px auto 0;
  max-width: 750px;
  color: #475569;
  font-size: 14px;
  line-height: 1.7;
}

#pc-tour-layer {
  display: none;
}

body.pc-tour-open {
  overflow: hidden;
}

body.pc-tour-open #pc-tour-layer {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: block;
}

.pc-tour-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .52);
  backdrop-filter: blur(2px);
}

.pc-tour-card {
  position: fixed;
  left: 50%;
  bottom: 38px;
  transform: translateX(-50%);
  width: min(570px, calc(100vw - 30px));
  padding: 22px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 25px 70px rgba(15, 23, 42, .28);
}

.pc-tour-progress {
  width: 100%;
  height: 4px;
  margin-bottom: 18px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.pc-tour-progress span {
  display: block;
  height: 100%;
  background: #172033;
  transition: width .2s ease;
}

.pc-tour-card h2 {
  margin: 7px 0;
  color: #172033;
  font-size: 19px;
}

.pc-tour-card p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.7;
}

.pc-tour-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 20px;
}

.pc-tour-actions > button {
  border: 0;
  background: transparent;
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
}

.pc-tour-actions > div {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pc-tour-actions span {
  color: #94a3b8;
  font-size: 10px;
  font-weight: 700;
}

.pc-tour-target {
  position: relative !important;
  z-index: 9001 !important;
  border-radius: 10px !important;
  box-shadow:
    0 0 0 4px #fff,
    0 0 0 7px #172033,
    0 12px 40px rgba(15, 23, 42, .3) !important;
}

@media (max-width: 800px) {
  #pc-commercial-tools {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-content: center;
  }

  .pc-commercial-button {
    flex: 1;
    justify-content: center;
  }

  .pc-commercial-button kbd {
    display: none;
  }

  .pc-presentation-indicators {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 28px;
  }

  .pc-presentation-slide h1 {
    letter-spacing: -1px;
  }
}

@media (max-width: 500px) {
  .pc-search-shortcuts {
    display: none;
  }

  .pc-presentation-toolbar {
    padding: 12px 15px;
  }

  .pc-presentation-toolbar > div:first-child {
    display: none;
  }

  .pc-presentation-indicators {
    grid-template-columns: 1fr;
  }

  .pc-tour-card {
    bottom: 15px;
  }
}
