/* ========================================
   TAWROS - Layout Principal
   ======================================== */

/* === LAYOUT GRID === */
body {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    grid-template-rows: 100vh;
    height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    transition: grid-template-columns 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

body.sidebar-collapsed {
    grid-template-columns: 74px 1fr;
}

/* === SIDEBAR - ESPECIFICAÇÕES EXATAS DO FIGMA === */
.sidebar {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    align-items: flex-start;
    background: var(--sidebar-bg);
    border-right: 1px solid var(--sidebar-border);
    box-shadow: var(--shadow-sidebar);
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    overflow-x: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
    width: 74px;
    overflow-y: hidden;
    overflow-x: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    display: flex;
    padding: 20px var(--sidebar-padding);
    align-items: center;
    justify-content: center;
    gap: var(--spacing-8);
    align-self: stretch;
    border-bottom: 1px solid var(--sidebar-border);
    min-height: 64px;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 12px 12px 12px;
    min-height: 63px;
}

.logo {
    height: 24px;
    width: auto;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-full {
    opacity: 1;
}

.logo-compact {
    display: none;
    opacity: 0;
    width: 40px;
    height: 30.8px;
    transition: opacity 0.2s ease;
    margin-left: 5px;
}

.sidebar.collapsed .logo-full {
    opacity: 0;
    display: none;
}

.sidebar.collapsed .logo-compact {
    display: block;
    opacity: 1;
}

.search-container {
    position: relative;
    display: flex;
    padding: var(--sidebar-padding);
    align-items: center;
    gap: var(--spacing-8);
    align-self: stretch;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .search-container {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding: 0;
    overflow: hidden;
}

.search-icon {
    position: absolute;
    left: 28px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--figma-text-secondary);
    pointer-events: none;
    width: 16px;
    height: 16px;
}

/* === BOTÃO DE BUSCA COLAPSADO === */
.search-button-collapsed {
    display: none;
    opacity: 0;
    width: 48px;
    height: 40px;
    margin: 0 auto;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--figma-text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    flex-shrink: 0;
}

.sidebar.collapsed .search-button-collapsed {
    display: flex;
    opacity: 1;
    margin: 12px 12px 0 12px;
}

.search-button-collapsed:hover {
    background: rgba(6, 73, 116, 0.1);
    color: var(--figma-text-primary);
}

.search-button-collapsed i {
    width: 24px;
    height: 24px;
}

/* === NAVEGAÇÃO - ESPECIFICAÇÕES DO FIGMA === */
.sidebar-nav {
    display: flex;
    padding: 12px 12px 24px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    flex: 1 0 0;
    align-self: stretch;
    overflow-y: auto;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                gap 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .sidebar-nav {
    padding: 12px;
    gap: 8px;
    align-items: center;
    overflow-y: hidden;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    padding: 12px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    min-height: 48px;
    border-radius: 6px;
    color: var(--figma-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    position: relative;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 8px 12px;
    width: 48px;
    height: 40px;
}

.nav-text {
    white-space: nowrap;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .nav-text {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar.collapsed .dropdown-arrow {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar.collapsed .nav-submenu {
    display: none !important;
}

.nav-item:hover {
    background: rgba(6, 73, 116, 0.1);
    color: var(--figma-text-primary);
}

.nav-item:hover .nav-icon {
    color: var(--figma-text-primary);
}

.nav-item.active {
    background: rgba(6, 73, 116, 0.1);
    color: var(--figma-text-primary);
}

.nav-icon {
    width: var(--sidebar-icon-size);
    height: var(--sidebar-icon-size);
    color: var(--figma-text-secondary);
    flex-shrink: 0;
    transition: width 0.2s ease, height 0.2s ease;
}

.sidebar.collapsed .nav-icon {
    width: 18px;
    height: 18px;
}

.nav-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.nav-dropdown {
    justify-content: space-between;
}

.nav-dropdown .dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--figma-text-secondary);
    transition: transform var(--transition-base);
    transform: rotate(-90deg);
}

.nav-dropdown.open .dropdown-arrow {
    transform: rotate(0deg);
}

.nav-group {
    display: flex;
    flex-direction: column;
    gap: 0;
    align-self: stretch;
}

/* === SUBMENU - COM ANIMAÇÃO SUAVE === */
.nav-submenu {
    display: flex;
    padding: 4px 0 4px 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.nav-dropdown.open + .nav-submenu {
    max-height: 500px;
    opacity: 1;
}

.nav-subitem {
    display: flex;
    padding: 12px 12px 12px 44px;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    min-height: 48px;
    border-radius: 6px;
    color: var(--figma-text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: all var(--transition-base);
    cursor: pointer;
}

.nav-subitem:hover {
    background: rgba(6, 73, 116, 0.1);
    color: var(--figma-text-primary);
}

.nav-subitem.active {
    background: rgba(6, 73, 116, 0.1);
    color: var(--figma-text-primary);
    font-weight: 500;
}

/* === FOOTER DA SIDEBAR - ESPECIFICAÇÕES DO FIGMA === */
.sidebar-footer {
    display: flex;
    padding: var(--sidebar-padding);
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-8);
    align-self: stretch;
    border-top: 1px solid var(--sidebar-border);
    position: relative;
    transition: padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .sidebar-footer {
    padding: 12px;
    align-items: center;
}

.user-profile-container {
    position: relative;
    width: 100%;
}

.user-profile {
    display: flex;
    padding: var(--spacing-4);
    align-items: center;
    gap: var(--spacing-12);
    width: 100%;
    height: 48px;
    border-radius: var(--spacing-8);
    transition: background var(--transition-base);
    cursor: pointer;
    border: none;
    background: transparent;
    text-align: left;
    position: relative;
}

.sidebar.collapsed .user-profile {
    justify-content: center;
    padding: var(--spacing-4);
}

.user-profile:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-profile.open .dropdown-arrow {
    transform: rotate(180deg);
}

.sidebar.collapsed .user-info {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar.collapsed .user-profile .dropdown-arrow {
    opacity: 0;
    position: absolute;
    pointer-events: none;
}

.sidebar.collapsed .user-dropdown {
    display: none;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    flex-shrink: 0;
    overflow: hidden;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed .user-avatar {
    width: 50px;
    height: 50px;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

.user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    flex: 1 0 0;
    min-width: 0;
}

.user-name {
    color: var(--figma-text-primary);
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: var(--figma-text-secondary);
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile .dropdown-arrow {
    width: 16px;
    height: 16px;
    color: var(--figma-text-secondary);
    flex-shrink: 0;
    transition: transform var(--transition-base);
}

/* === USER DROPDOWN MENU === */
.user-dropdown {
    position: absolute;
    bottom: 100%;
    left: var(--spacing-8);
    right: var(--spacing-8);
    margin-bottom: var(--spacing-8);
    background: var(--figma-surface-primary);
    border: 1px solid var(--figma-border-light);
    border-radius: var(--spacing-8);
    box-shadow: 0px 4px 16px rgba(0, 0, 0, 0.12);
    padding: var(--spacing-8);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 1000;
}

.user-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-12);
    padding: var(--spacing-8) var(--spacing-12);
    border-radius: 6px;
    color: var(--figma-text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    transition: background var(--transition-base);
    cursor: pointer;
}

.user-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

.user-dropdown-item.logout {
    color: #dc2626;
}

.user-dropdown-item.logout:hover {
    background: rgba(220, 38, 38, 0.08);
}

.dropdown-item-icon {
    width: 18px;
    height: 18px;
    color: var(--figma-text-secondary);
    flex-shrink: 0;
}

.user-dropdown-item.logout .dropdown-item-icon {
    color: #dc2626;
}

.user-dropdown-divider {
    height: 1px;
    background: var(--figma-border-light);
    margin: var(--spacing-8) 0;
}

/* === CONTEÚDO PRINCIPAL === */
.main-content {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* === HEADER - ESPECIFICAÇÕES DO FIGMA === */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-16) var(--spacing-24);
    background-color: var(--figma-surface-primary);
    border-bottom: 1px solid var(--figma-border-light);
    height: 64px;
    min-height: 64px;
    flex-shrink: 0;
    z-index: var(--z-sticky);
}

.header-left,
.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-16);
}

.menu-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    background: #f3f4f6;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.menu-toggle:hover {
    background: #e5e7eb;
}

.menu-toggle i {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1 0 0;
    align-self: stretch;
    width: 18px;
    height: 18px;
}

.page-title {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-semibold);
    color: var(--figma-text-primary);
    line-height: 1;
}

.icon-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: #f3f4f6;
    border: 1px solid transparent;
    border-radius: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-button:hover {
    background: #e5e7eb;
    border-color: transparent;
}

.icon-button i {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0;
}

.help-button {
    width: auto;
    padding: 8px 12px;
    gap: 6px;
}

.help-button span {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
}

.help-button:hover span {
    color: var(--figma-text-primary);
}

/* === DASHBOARD CONTENT === */
/* === DASHBOARD CONTENT - ESPECIFICAÇÕES DO FIGMA === */
.dashboard-content {
    flex: 1;
    padding: 12px;
    gap: 12px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: #f5f5f5;
}

/* === PERFORMANCE SUMMARY SECTION === */
.section {
    padding: 16px;
    background: #ffffff;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.section-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    color: var(--figma-text-primary);
    margin: 0;
}

.time-filter {
    display: flex;
    gap: 4px;
    background: #f3f4f6;
    padding: 4px;
    border-radius: 8px;
}

.time-filter-btn {
    padding: 6px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 50px;
}

.time-filter-btn:hover {
    background: #e5e7eb;
}

.time-filter-btn.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

/* === METRICS GRID - ESPECIFICAÇÕES DO FIGMA === */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.metric-card {
    padding: 16px;
    background: #f9f9f9;
    border: 1px solid transparent;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.metric-label {
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: var(--figma-text-primary);
}

.more-button {
    width: 16px;
    height: 16px;
    border: none;
    background: transparent;
    color: var(--figma-text-secondary);
    cursor: pointer;
    font-size: 16px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-value {
    font-size: 28px;
    font-weight: 600;
    line-height: 34px;
    color: var(--figma-text-primary);
}

.metric-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    line-height: 16px;
}

.metric-change.positive {
    color: #16a34a;
}

.metric-change.negative {
    color: #dc2626;
}

.change-arrow {
    font-size: 14px;
}

.change-value {
    font-weight: 600;
}

.change-period {
    color: var(--figma-text-secondary);
}

/* === CHARTS ROW === */
.charts-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.charts-row-three {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.chart-card {
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 353px;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    height: 17px;
}

.chart-title {
    font-family: 'Archivo', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 17.4px;
    letter-spacing: -0.16px;
    color: #141f1f;
    margin: 0;
}

.chart-filter {
    padding: 8px 12px;
    padding-right: 32px;
    border: 1px solid transparent;
    border-radius: 6px;
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 18px;
    font-family: 'Archivo', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #111827;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    appearance: none;
}

.chart-filter:hover {
    background-color: rgba(0, 104, 171, 0.1);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    border-color: transparent;
}

.chart-filter:focus {
    background-color: #f3f4f6;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23111827' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    border-color: transparent;
}

.chart-filter option {
    background-color: #ffffff;
    color: #111827;
    padding: 10px 12px;
    border: none;
}

.chart-filter option:checked {
    background: linear-gradient(rgba(0, 104, 171, 0.1), rgba(0, 104, 171, 0.1));
    color: #0068ab;
    font-weight: 500;
}

/* Tentativa de remover borda do dropdown (limitado pelo navegador) */
.chart-filter::-ms-expand {
    border: none;
}

select.chart-filter:focus::-ms-value {
    background: transparent;
    border: none;
}

.chart-content {
    position: relative;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.chart-content canvas {
    width: 100% !important;
    height: 100% !important;
}

/* === LINHA VERTICAL DO PONTO === */
.point-line {
    position: absolute;
    width: 2px;
    background: transparent;
    border-left: 2px dashed #fbbf24;
    display: none;
    z-index: 500;
    pointer-events: none;
}

.point-line.show {
    display: block;
}

/* === GRAPH TOOLTIP === */
.graph-tooltip {
    position: absolute;
    width: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
    pointer-events: none;
    padding: 12px 16px;
}

.graph-tooltip.show {
    display: block;
}

.tooltip-date-header {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 16px;
    color: #6b7280;
    margin-bottom: 8px;
    white-space: nowrap;
}

.tooltip-main-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tooltip-value-large {
    font-family: 'Archivo', sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    color: #111827;
}

.tooltip-comparison {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #10b981;
    padding: 2px 8px;
    border-radius: 12px;
    width: fit-content;
}

.tooltip-arrow {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.tooltip-percentage {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 600;
    line-height: 14px;
    color: #ffffff;
}

.tooltip-comparison-text {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    color: #6b7280;
    white-space: nowrap;
}

/* === BOTTOM ROW === */
.bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: var(--spacing-xl);
}

/* === PRODUCTION CARD === */
.production-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.production-tabs {
    display: flex;
    gap: 8px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.production-tab {
    flex: 1;
    padding: 6px 16px;
    border: none;
    background: #f3f4f6;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 40px;
}

.production-tab:hover {
    background: #e5e7eb;
}

.production-tab.active {
    background: #ffffff;
    color: #111827;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.production-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.production-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
}

.production-item:first-child {
    border-top: 1px solid #e5e7eb;
}

.item-indicator {
    width: 3px;
    height: 28px;
    background: #0068ab;
    border-radius: 100px;
    box-shadow: inset -0.25px -0.25px 0.5px rgba(0, 0, 0, 0.25),
                inset 0.25px 0.25px 0.5px rgba(255, 255, 255, 0.7);
    flex-shrink: 0;
}

.item-info {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    flex: 1;
}

.item-name {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0;
    color: #111827;
    min-width: 100px;
}

.item-value {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    line-height: 14px;
    letter-spacing: 0;
    color: #6b7280;
    text-align: center;
    flex: 1;
}

.item-percentage {
    padding: 3px 10px;
    background: #e0f2fe;
    border: 1px solid #0ea5e9;
    border-radius: 4px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    color: #0284c7;
    box-shadow: none;
    min-width: 42px;
    text-align: center;
}

/* === GROWTH CARD === */
.growth-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.growth-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.growth-header {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-direction: row;
}

.growth-value {
    font-family: 'Archivo', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1;
    color: #111827;
}

.growth-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.growth-badge > .growth-percentage-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    background: #10b981;
    border-radius: 12px;
}

.growth-arrow {
    width: 12px;
    height: 12px;
    color: #ffffff;
}

.growth-percentage {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    color: #ffffff;
}

.growth-subtitle {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #6b7280;
    margin-top: 0;
}

.growth-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
}

.legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.legend-dot.germination {
    background-color: #0b3c49;
}

.legend-dot.development {
    background-color: #f6c03c;
}

.legend-dot.transplant {
    background-color: #0068ab;
}

#growthChart {
    width: 100%;
    height: 180px;
    margin-top: 8px;
}

/* === SUGGESTIONS CARD === */
.suggestions-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.suggestions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.suggestion-item {
    display: grid;
    grid-template-columns: 32px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 10px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.suggestion-item:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}

.suggestion-icon-container {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f6c03c 0%, #12987b 100%);
    border-radius: 6px;
    flex-shrink: 0;
}

.suggestion-icon {
    width: 16px;
    height: 16px;
    color: #ffffff;
}

.suggestion-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.suggestion-title {
    font-family: 'Archivo', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    color: #111827;
}

.suggestion-description {
    font-family: 'Archivo', sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 14px;
    color: #6b7280;
}

.suggestion-action {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.suggestion-action i {
    width: 14px;
    height: 14px;
    color: #6b7280;
}

.suggestion-item:hover .suggestion-action {
    background: transparent;
}

.suggestion-item:hover .suggestion-action i {
    color: #0068ab;
}

/* === CHART TOOLTIP === */
.chart-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    z-index: 10;
}

.tooltip-date {
    font-size: var(--font-size-xs);
    color: var(--text-secondary);
    margin-bottom: var(--spacing-xs);
}

.tooltip-value {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-bold);
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
}

.tooltip-comparison {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-xs);
    color: var(--success-green);
}

.comparison-arrow {
    font-weight: var(--font-weight-bold);
}

/* === RESPONSIVIDADE === */

/* Tablets (768px - 1024px) */
@media (max-width: 1024px) {
    :root {
        --sidebar-width: 200px;
    }

    .bottom-row {
        grid-template-columns: 1fr 1fr;
    }

    .suggestions-card {
        grid-column: 1 / -1;
    }
}

/* Tablets Portrait (768px) */
@media (max-width: 768px) {
    body {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: -100%;
        top: 0;
        height: 100vh;
        width: var(--sidebar-width);
        z-index: var(--z-modal);
        transition: left var(--transition-slow);
    }

    .sidebar.open {
        left: 0;
    }

    .menu-toggle {
        display: block;
    }

    .main-content {
        grid-column: 1;
    }

    .charts-row {
        grid-template-columns: 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }

    .metrics-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile (até 640px) */
@media (max-width: 640px) {
    .page-header {
        padding: var(--spacing-lg);
    }

    .dashboard-content {
        padding: var(--spacing-lg);
    }

    .page-title {
        font-size: var(--font-size-xl);
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .production-item {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    .production-bar {
        grid-column: 1 / -1;
    }

    .header-right .user-greeting {
        display: none;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .production-tabs {
        width: 100%;
    }
}

/* Mobile pequeno (até 375px) */
@media (max-width: 375px) {
    .header-right {
        gap: var(--spacing-sm);
    }

    .icon-button {
        width: 32px;
        height: 32px;
        font-size: var(--font-size-base);
    }
}

/* === OVERLAY PARA MOBILE === */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-modal) - 1);
}

@media (max-width: 768px) {
    .sidebar-overlay.active {
        display: block;
    }
}
