/* syncx.css — chrome comun SyncX: top-bar, KPI, tabs, tabel, badges, modal, butoane.
   Partajat de toate paginile. Sidebar-ul e separat, in sidebar.js. */

* { margin: 0; padding: 0; box-sizing: border-box; }
        body { font-family: 'Inter', sans-serif; background: #F1F1F1; min-height: 100vh; display: flex; }
        .sidebar { width: 260px; background: linear-gradient(180deg, #4A9C9C 0%, #3d8888 100%); min-height: 100vh; padding: 20px 0; position: fixed; left: 0; top: 0; z-index: 1000; }
        .logo { color: white; font-size: 1.4rem; font-weight: 700; padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
        .logo small { display: block; font-size: 0.7rem; opacity: 0.7; font-weight: 400; margin-top: 4px; }
        .menu-section { padding: 0 12px; margin-bottom: 20px; }
        .menu-label { color: rgba(255,255,255,0.5); font-size: 0.72rem; font-weight: 600; text-transform: uppercase; padding: 0 8px; margin-bottom: 8px; letter-spacing: 0.5px; }
        .menu-item { display: flex; align-items: center; padding: 12px 16px; color: rgba(255,255,255,0.85); text-decoration: none; border-radius: 8px; margin-bottom: 4px; transition: all 0.2s; cursor: pointer; font-size: 0.9rem; }
        .menu-item:hover { background: rgba(255,255,255,0.1); color: white; }
        .menu-item.active { background: rgba(255,255,255,0.2); color: white; font-weight: 600; }
        .menu-item span.icon { margin-right: 10px; font-size: 1.1rem; }
        .main-content { margin-left: 260px; flex: 1; min-height: 100vh; }
        .top-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; background: white; border-bottom: 1px solid #DDDFE3; }
        .breadcrumb { font-size: 0.85rem; color: #6C7A89; }
        .breadcrumb strong { color: #1A1A1A; }
        .user-info { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: #363A41; }
        .user-avatar { width: 32px; height: 32px; background: #4A9C9C; color: white; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; }
        .page-header { padding: 24px 28px 20px; }
        .page-title { font-size: 1.6rem; font-weight: 700; color: #1A1A1A; margin-bottom: 4px; }
        .page-subtitle { font-size: 0.85rem; color: #6C7A89; }
        .kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 0 28px; margin-bottom: 24px; }
        .kpi-card { background: white; border: 1px solid #DDDFE3; border-radius: 4px; padding: 16px 20px; border-left: 4px solid #4A9C9C; }
        .kpi-card.yellow { border-left-color: #D97706; }
        .kpi-card.green { border-left-color: #059669; }
        .kpi-card.purple { border-left-color: #7C3AED; }
        .kpi-label { font-size: 0.72rem; color: #6C7A89; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
        .kpi-value { font-size: 1.8rem; font-weight: 700; color: #1A1A1A; line-height: 1; }
        .kpi-sub { font-size: 0.75rem; color: #6C7A89; margin-top: 6px; }
        .tabs { display: flex; gap: 0; padding: 0 28px; margin-bottom: 0; }
        .tab { padding: 11px 24px; font-size: 0.85rem; font-weight: 500; color: #6C7A89; cursor: pointer; border: 1px solid #DDDFE3; border-bottom: none; background: #F1F1F1; border-radius: 4px 4px 0 0; margin-right: -1px; transition: all 0.15s; }
        .tab:hover { color: #1A1A1A; }
        .tab.active { background: white; color: #1A1A1A; font-weight: 600; border-bottom: 1px solid white; position: relative; z-index: 1; }
        .card { background: white; border: 1px solid #DDDFE3; border-radius: 4px; margin: 0 28px 28px; }
        .card-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid #DDDFE3; gap: 16px; flex-wrap: wrap; }
        .card-title { font-size: 0.9rem; font-weight: 600; color: #1A1A1A; }
        .card-actions { display: flex; align-items: center; gap: 10px; }
        .search-box { display: flex; align-items: center; gap: 8px; border: 1px solid #DDDFE3; border-radius: 4px; padding: 6px 12px; background: white; }
        .search-box input { border: none; outline: none; font-size: 0.82rem; color: #363A41; width: 240px; font-family: 'Inter', sans-serif; }
        .select-box { padding: 6px 12px; border: 1px solid #DDDFE3; border-radius: 4px; font-size: 0.82rem; font-family: 'Inter', sans-serif; background: white; color: #363A41; cursor: pointer; }
        table { width: 100%; border-collapse: collapse; }
        th { padding: 10px 16px; text-align: left; font-size: 0.7rem; font-weight: 600; color: #6C7A89; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid #DDDFE3; background: #F8F9FA; }
        td { padding: 12px 16px; font-size: 0.85rem; color: #363A41; border-bottom: 1px solid #EAECEF; }
        tr:last-child td { border-bottom: none; }
        tr:hover td { background: #F8F9FA; }
        .right { text-align: right; }
        .center { text-align: center; }
        .num { font-variant-numeric: tabular-nums; font-weight: 600; color: #1A1A1A; }
        .num-big { color: #059669; }
        .badge { display: inline-block; padding: 3px 10px; border-radius: 4px; font-size: 0.72rem; font-weight: 600; }
        .badge-green { background: #D1FAE5; color: #059669; }
        .badge-yellow { background: #FEF3C7; color: #D97706; }
        .badge-blue { background: #DBEAFE; color: #1e40af; }
        .badge-gray { background: #F3F4F6; color: #374151; }
        .btn { padding: 6px 14px; border-radius: 4px; font-size: 0.8rem; font-weight: 600; cursor: pointer; border: none; font-family: 'Inter', sans-serif; transition: opacity 0.15s; text-decoration: none; display: inline-block; }
        .btn:hover { opacity: 0.85; }
        .btn-primary { background: #4A9C9C; color: white; }
        .company-name { font-weight: 600; color: #1A1A1A; margin-bottom: 2px; }
        .company-email { font-size: 0.75rem; color: #6C7A89; }
        .rank-badge { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #F3F4F6; color: #6C7A89; font-weight: 700; font-size: 0.75rem; }
        .rank-badge.top1 { background: #FEF3C7; color: #D97706; }
        .rank-badge.top2 { background: #DBEAFE; color: #1e40af; }
        .rank-badge.top3 { background: #D1FAE5; color: #059669; }
        .modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.45); display: none; justify-content: center; align-items: center; z-index: 3000; }
        .modal-overlay.active { display: flex; }
        .modal { background: white; border-radius: 4px; width: 900px; max-width: 96%; max-height: 92vh; overflow-y: auto; border: 1px solid #DDDFE3; }
        .modal-header { padding: 16px 20px; border-bottom: 1px solid #DDDFE3; display: flex; justify-content: space-between; align-items: center; }
        .modal-header h2 { font-size: 1rem; font-weight: 700; color: #1A1A1A; }
        .modal-close { width: 26px; height: 26px; border-radius: 4px; border: 1px solid #DDDFE3; background: white; cursor: pointer; font-size: 1rem; display: flex; align-items: center; justify-content: center; color: #6C7A89; }
        .modal-body { padding: 18px 20px; }
        .info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
        .info-label { font-size: 0.72rem; color: #6C7A89; font-weight: 600; text-transform: uppercase; margin-bottom: 4px; }
        .info-value { font-size: 0.9rem; color: #1A1A1A; font-weight: 500; }
        .info-value a { color: #4A9C9C; text-decoration: none; }
        .info-value a:hover { text-decoration: underline; }
        .section-title { font-size: 0.85rem; font-weight: 700; color: #1A1A1A; margin: 16px 0 8px; padding-bottom: 6px; border-bottom: 1px solid #EAECEF; }
        .loading { text-align: center; padding: 40px; color: #6C7A89; font-style: italic; }
.modal-overlay.hidden{display:none !important}

/* pipeline: 5 KPI cards pe un rand */
#stats-container.kpi-row { grid-template-columns: repeat(5, 1fr); }
