/*!******************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./app/javascript/components/Dashboard/styles.css ***!
  \******************************************************************************************************************************/
@import url(https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap);
/*!**********************************************************************************************************************************!*\
  !*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[2].use[1]!./app/javascript/components/Dashboard/styles.css (1) ***!
  \**********************************************************************************************************************************/
:root {
  --primary-color: #1e293b;
  --secondary-color: #475569;
  --background-color: #fff;
  --card-background: #ffffff;
  --success-color: #22c55e;
  --warning-color: #f97316;
  --danger-color: #ef4444;
  --gold-color: #c4af63;
  --border-color: #e2e8f0;
  --text-color: #1e293b;
  --text-muted: #64748b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background-color: var(--background-color);
  color: var(--text-color);
}

.dashboard-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-gauges {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.dashboard-gauge-wrap {
  flex: 0 1 280px;
  max-width: 320px;
  min-height: 200px;
}

.dashboard-gauge-container {
  width: 100%;
  height: 200px;
}

/* Profile card (avatar + gauge + métricas) */
.profile-card {
  --profile-gauge-width: 148px;
  --profile-gauge-height: 128px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  padding: 1.25rem 1.5rem;
  max-width: 480px;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
}

.profile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.profile-card-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.profile-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
  overflow: hidden;
}

.profile-card-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-card-user-info {
  min-width: 0;
}

.profile-card-name {
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-color);
}

.profile-card-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.125rem;
}

.profile-card-year-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--border-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.profile-card-year-btn:hover {
  background: #e2e8f0;
  color: var(--secondary-color);
}

.profile-card-year-icon,
.profile-card-edit-icon {
  font-size: 0.75rem;
  opacity: 0.8;
}

.profile-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

.profile-card-gauge {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  overflow: visible;
}

.profile-card-gauge .dashboard-gauges {
  margin-bottom: 0;
  justify-content: flex-start;
  width: 100%;
}

.profile-card-gauge .dashboard-gauge-wrap {
  flex: 0 1 auto;
  width: min(var(--profile-gauge-width), 100%);
  max-width: min(var(--profile-gauge-width), 100%);
  min-height: 0;
}

.profile-card-gauge .dashboard-gauge-container {
  width: 100%;
  height: var(--profile-gauge-height);
  min-height: var(--profile-gauge-height);
  max-width: 100%;
}

.profile-card-metrics {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.profile-card-metric {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  color: var(--secondary-color);
}

.profile-card-metric-icon {
  font-size: 1rem;
  color: var(--text-muted);
  width: 1.25rem;
}

.profile-card-metric-value {
  font-weight: 600;
  color: var(--text-color);
}

/* Org chart (hierarquia) */
.org-chart {
  position: relative;
  padding: 2rem 1rem 3rem;
  max-width: 100%;
  --org-chart-line: #64748b;
  --org-chart-plus-bg: #22c55e;
}

.org-chart-svg {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}

.org-chart-svg .org-chart-plus-circle {
  pointer-events: auto;
  cursor: pointer;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.org-chart-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2.5rem;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.org-chart-level-0 {
  margin-bottom: 2rem;
}

.org-chart-level-1 {
  margin-bottom: 2rem;
  justify-content: center;
}

.org-chart-level-2 {
  justify-content: center;
}

.org-chart-node-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 360px;
  flex: 0 0 360px;
}

.org-chart-node-wrap .profile-card {
  width: 100%;
  max-width: 100%;
}

.org-chart-node-connector {
  position: absolute;
  left: 50%;
  width: 1px;
  height: 1px;
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
}

.org-chart-connector-top {
  top: 0;
}

.org-chart-connector-bottom {
  bottom: 0;
}

.org-chart-level-2-spacer {
  flex: 1;
  min-width: 60px;
  max-width: 200px;
}

.org-chart-level-2-children {
  display: flex;
  gap: 2.5rem;
  justify-content: center;
}

.header-container {
  animation: slide-up 0.5s ease-out;
}

.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.header-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.header-subtitle {
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-size: 0.75rem;
}

.header-year-selector {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 37px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-loading-status {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--secondary-color);
  white-space: nowrap;
}

.dashboard-year-spinner {
  width: 16px;
  height: 16px;
  margin-left: 8px;
  border: 2px solid #e2e8f0;
  border-top-color: var(--gold-color);
  border-radius: 50%;
  animation: dashboard-spin 0.8s linear infinite;
}

.header-metrics {
  display: flex;
  gap: 1rem;
}

.metric-labels {
  display: flex;
  gap: 20px;
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.department-grid {
  display: grid;
  gap: 1rem;
  transition: opacity 0.5s;
  opacity: 1;
}

.department-row {
  background-color: var(--card-background);
  border-radius: 0.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.department-content {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.department-gold {
  background-color: var(--gold-color);
  color: white;
}

.department-info {
  display: flex;
  padding: 1rem;
  align-items: center;
  gap: 11rem;
}

.department-name {
  font-weight: 500;
  width: 9rem;
  font-size: 0.75rem;
}

.department-name-gold {
  color: white;
}

.department-chart-container {
  flex: 1;
  padding-left: 1rem;
}

.month-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.125rem;
  height: 2rem;
  margin-bottom: 0.25rem;
}

.month-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 12px;
}

.month-label {
  font-size: 0.5625rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-right: 1rem;
}

.metric-box {
  width: 4rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  color: white;
}

.metric-value {
  font-weight: 700;
  font-size: 0.6rem;
}

.metric-high {
  background-color: #22c55e;
}

.metric-medium {
  background-color: #60a5fa;
}

.metric-low {
  background-color: #ef4444;
}

.mini-chart-container {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 22px;
}

.mini-chart-bar {
  width: 3px;
  border-top-left-radius: 1px;
  border-top-right-radius: 1px;
  transition: all 0.3s;
}

.mini-chart-success {
  background-color: #22c55e;
}

.mini-chart-primary {
  background-color: #60a5fa;
}

.mini-chart-warning {
  background-color: #93c5fd;
}

.mini-chart-danger {
  background-color: #ef4444;
}

.mini-chart-gold {
  background-color: var(--gold-color);
}

.opacity-0 {
  opacity: 0;
}

/* Animations */
@keyframes slide-up {
  0% {
    transform: translateY(10px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes chart-bar {
  0% {
    height: 0%;
  }
  100% {
    height: var(--chart-height);
  }
}

@keyframes dashboard-spin {
  to {
    transform: rotate(360deg);
  }
}

.animate-chart-bar {
  animation: chart-bar 1s ease-out forwards;
}

.dashboard-data-region {
  position: relative;
}

.dashboard-loading-state {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  color: var(--text-color);
  text-align: center;
}

.dashboard-loading-state p {
  max-width: 440px;
  margin: 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.dashboard-loading-spinner {
  width: 42px;
  height: 42px;
  border: 4px solid #e2e8f0;
  border-top-color: var(--gold-color);
  border-radius: 50%;
  animation: dashboard-spin 0.8s linear infinite;
}

.dashboard-error-message {
  margin: 3rem 0;
  padding: 2rem;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  text-align: center;
}

.dashboard-error-message p {
  margin: 0;
}

/* Summary Cards */
.summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
  animation: slide-up 0.5s ease-out;
}

.summary-card {
  background-color: var(--card-background);
  border-radius: 0.5rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--border-color);
}

.summary-card-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-color);
  margin-bottom: 0.5rem;
}

.summary-card-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 0.25rem;
}

.summary-card-description {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Areas Table */
.areas-table-container {
  margin-top: 2rem;
  animation: slide-up 0.5s ease-out;
}

.areas-table {
  width: 100%;
  border-collapse: collapse;
  background-color: var(--card-background);
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.areas-table thead {
  background-color: #f8fafc;
  border-bottom: 2px solid var(--border-color);
}

.areas-table th {
  padding: 1rem;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.areas-table tbody tr {
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s;
}

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

.areas-table tbody tr.row-company {
  background-color: rgba(196, 175, 99, 0.1);
}

.areas-table tbody tr.row-company:hover {
  background-color: rgba(196, 175, 99, 0.15);
}

.table-cell {
  padding: 1rem;
  font-size: 0.875rem;
  color: var(--text-color);
}

.cell-area {
  min-width: 150px;
}

.area-name {
  font-weight: 500;
  color: var(--text-color);
}

.area-name-company {
  font-weight: 600;
  color: var(--gold-color);
}

.cell-evolution {
  min-width: 300px;
}

.evolution-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.evolution-container .month-chart {
  display: flex;
  align-items: flex-end;
  gap: 0.125rem;
  height: 2rem;
}

.evolution-average {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.cell-realization {
  min-width: 120px;
}

.realization-value {
  font-weight: 600;
  font-size: 0.875rem;
}

.realization-high {
  color: var(--success-color);
}

.realization-medium {
  color: var(--warning-color);
}

.realization-low {
  color: var(--danger-color);
}

.cell-note,
.cell-total {
  min-width: 100px;
  font-weight: 500;
}

.cell-trend {
  text-align: center;
  min-width: 60px;
}

.trend-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trend-indicator svg {
  display: block;
}

/* No Data Message */
.no-data-message {
  margin: 3rem 0;
  text-align: center;
  padding: 2rem;
  background-color: var(--card-background);
  border-radius: 0.5rem;
  border: 1px solid var(--border-color);
}

.no-data-message p {
  font-size: 1rem;
  color: var(--text-muted);
  margin: 0;
}


/*# sourceMappingURL=app_javascript_components_sync_recursive_.css.map*/